Re: mmap, SIGBUS, and handling it

Dave Gilbert (gilbertd@treblig.org)
Fri, 10 May 2002 16:56:03 +0100


David S. Miller wrote:
> From: Mihai RUSU <dizzy@roedu.net>
> Date: Fri, 10 May 2002 18:37:21 +0300 (EEST)
>
> PS: why signal(SIGBUS,SIG_IGN) doesnt work, but a user handler its called
> if set with signal(SIGBUS,handle_sigbus) ?
>
> 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.

Dave

-
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/