Re: mmap, SIGBUS, and handling it

From: David S. Miller (davem@redhat.com)
Date: Fri May 10 2002 - 10:48:09 EST


   From: "Dave Gilbert (Home)" <gilbertd@treblig.org>
   Date: Fri, 10 May 2002 16:56:03 +0100

   David S. Miller wrote:
> How would you like the kernel to "ignore" a page fault that cannot be
> serviced?
   
   Well imagining you really wanted to do it you could skip a store
   instruction or put a dummy value in the register that something is being
   loaded into.

What is a suitable dummy value? Zero? That would likely lead to a
segfault if the value being loaded is supposed to be some pointer.

There is no reasonable behavior other than to kill the process if it
has not specified it's own handler.
-
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 : Tue May 14 2002 - 12:00:14 EST