Re: [PATCH 1/1] mm: sysctl: add panic_on_mm_error sysctl

From: Tetsuo Handa
Date: Mon Jan 27 2020 - 05:43:44 EST


On 2020/01/27 19:11, Grzegorz Halat wrote:
> diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
> index def074807cee..2fecd6b2547e 100644
> --- a/Documentation/admin-guide/sysctl/kernel.rst
> +++ b/Documentation/admin-guide/sysctl/kernel.rst
> @@ -61,6 +61,7 @@ show up in /proc/sys/kernel:
> - overflowgid
> - overflowuid
> - panic
> +- panic_on_mm_error

Maybe panic_on_inconsistent_mm is better, for an MM error sounds too generic
(e.g. is page allocation failure an error, is OOM killer an error,
is NULL pointer dereference an error, is use-after-free access an error) ?

Also, should this be in /proc/sys/vm/ than /proc/sys/kernel/ ?

> - panic_on_oops
> - panic_on_stackoverflow
> - panic_on_unrecovered_nmi