exit: Expose "oops_count" to sysfs
authorKees Cook <keescook@chromium.org>
Thu, 17 Nov 2022 23:43:23 +0000 (15:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:41 +0000 (07:24 +0100)
commit46cacd7913c86f84b784dc2e0151bfaefde315d7
tree6e6a6060523148df1ba5ea936278cf684be47f7a
parent767997ef5dc0de5f395b69f5f26eb8b01c65ae1a
exit: Expose "oops_count" to sysfs

commit 9db89b41117024f80b38b15954017fb293133364 upstream.

Since Oops count is now tracked and is a fairly interesting signal, add
the entry /sys/kernel/oops_count to expose it to userspace.

Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Jann Horn <jannh@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221117234328.594699-3-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-kernel-oops_count [new file with mode: 0644]
MAINTAINERS
kernel/exit.c