exit: Expose "oops_count" to sysfs
authorKees Cook <keescook@chromium.org>
Tue, 24 Jan 2023 18:51:04 +0000 (10:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:27:21 +0000 (08:27 +0100)
commit339f8a8e521179dbe53b6e2a19b775aed4c4a4d0
tree24d47c10dba574b2c08d75677153a63e106c865a
parentf80fb0001f1134e9a66400cdf77bb49dc42b481e
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: Eric Biggers <ebiggers@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/ABI/testing/sysfs-kernel-oops_count [new file with mode: 0644]
kernel/exit.c