Re: [PATCH] mm: trigger panic on bad page or PTE states if panic_on_oops

From: Kirill A. Shutemov
Date: Mon Mar 16 2015 - 07:00:48 EST


On Mon, Mar 16, 2015 at 09:37:01AM +0100, Christian Borntraeger wrote:
> while debugging a memory management problem it helped a lot to
> get a system dump as early as possible for bad page states.
>
> Lets assume that if panic_on_oops is set then the system should
> not continue with broken mm data structures.

bed_pte is not an oops.

Probably we should consider putting VM_BUG() at the end of these
functions instead.

--
Kirill A. Shutemov
--
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/