Re: Finding user/kernel pointer bugs [no html]

From: Timothy Miller
Date: Thu Jun 10 2004 - 10:12:06 EST




Linus Torvalds wrote:

If you really want to force user space accesses to follow certain rules, make them longs or structs (or at least void *) (depending on architecture) so that only the proper user-space-access functions can interpret them.


.. and this would be a total disaster.

Think about it. The user pointer isn't just a "value". It has a type it points to. We want to do


Makes sense. Too many things my short-sighted suggestion didn't account for.


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