• Alexander Viro's avatar
    [PATCH] amd64 compat annotations · ae774bbf
    Alexander Viro authored
     * new helper - ptr_to_compat(); inverse to compat_ptr(), with proper
       typechecking.  A lot of open-coded equivalents replaced with using
       that one.
     * a couple of severely misguiding places got back to sanity - we had
       basically
    	put_user((long)p, &foo->compat_uptr_t_field);
    
    That will, of course, cast (long)p further - to u32, but that fact is
    carefully obfuscated...  Sanitized by replacing (long)p in such places
    with ptr_to_compat(p); fortunately, there hadn't been many of those...
    Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ae774bbf
sys_ia32.c 28.9 KB