On Wed, 9 Feb 2005, Daniel Jacobowitz wrote:
On Tue, Feb 08, 2005 at 06:10:18PM -0800, Andrew Morton wrote:

It's asking for a lot of unwritable zeroed space.  See this:

  LOAD           0x000000 0x08048000 0x08048000 0xb7354 0x1b7354 R E 0x1000
  LOAD           0x0b7354 0x08200354 0x08200354 0x1e3e4 0x1f648 RW  0x1000

clear_user's probably not the right way to provide the extra zeroing.

Indeed, clear_user() refuses to zero data when it's not writable to the user process ...

unsigned long
clear_user(void __user *to, unsigned long n)
{
        might_sleep();
        if (access_ok(VERIFY_WRITE, to, n))
                __do_clear_user(to, n);
        return n;
}

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to