]> git.baikalelectronics.ru Git - kernel.git/commit
exit: Allow oops_limit to be disabled
authorKees Cook <keescook@chromium.org>
Thu, 2 Feb 2023 04:42:50 +0000 (20:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:50 +0000 (07:52 +0100)
commit8ab8101ebb1ede32dbb066798ead8d65fd2c6afd
tree06e39ecceac7fbb5b4f01e7b4c0df7af89a5fde7
parent97fe27f51026cb5a8c99858ffb598231c51c5614
exit: Allow oops_limit to be disabled

commit 082af635508e8bffc27a5fa232212972b79ca287 upstream.

In preparation for keeping oops_limit logic in sync with warn_limit,
have oops_limit == 0 disable checking the Oops counter.

Cc: Jann Horn <jannh@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-doc@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/admin-guide/sysctl/kernel.rst
kernel/exit.c