Re: [patch] i386: fix recursive fault in page-fault handler

Linus Torvalds
2006-07-17T18:07:21Z

On Mon, 17 Jul 2006, Chuck Ebbert wrote:
>
> Krzysztof Halasa reported recursive faults in do_page_fault()
> causing a stream of partial oops messages on the console. Fix
> by adding a fixup for that code.

This patch is really too ugly to live. Does it even work? If 'tsk' is
broken, I'd expect the die() to oops anyway - it does

if (notify_die(DIE_OOPS, str, regs, err,
current->thread.trap_no, SIGSEG...

anyway (where that "current->thread.trap_no" gets dereferenced).

Linus