Re: [PATCH][COMPAT] compat_sys_fcntl{,64} 1/9 Generic part

From: David S. Miller (davem@redhat.com)
Date: Wed Mar 12 2003 - 06:46:45 EST


On Tue, 2003-03-11 at 21:26, Linus Torvalds wrote:

> Yes, this looks much more sane. If you _really_ want to be anal about
> typechecking (and also checking that nobody can possibly use a user
> pointer incorrectly), you make
>
> typedef struct {
> unsigned int val;
> } compat_uptr_t;

Be careful, these kind of "int in a struct" things end up being
passed to functions on the stack instead of registers :-(

This is why we don't do any of the fancy type-checking
page table types on Sparc unless you edit the header files.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:30 EST