mbox series

[next,v2,0/6] exit: Put an upper limit on how often we can oops

Message ID 20221109194404.gonna.558-kees@kernel.org (mailing list archive)
Headers show
Series exit: Put an upper limit on how often we can oops | expand

Message

Kees Cook Nov. 9, 2022, 8 p.m. UTC
Hi,

This builds on Jann's v1 patch[1]. Changes in v2:
- move sysctl into kernel/exit.c (where it belongs)
- expand Documentation slightly

New stuff in v2:
- expose oops_count to sysfs
- consolidate panic_on_warn usage
- introduce warn_limit
- expose warn_count to sysfs

[1] https://lore.kernel.org/lkml/20221107201317.324457-1-jannh@google.com

Jann Horn (1):
  exit: Put an upper limit on how often we can oops

Kees Cook (5):
  panic: Separate sysctl logic from CONFIG_SMP
  exit: Expose "oops_count" to sysfs
  panic: Consolidate open-coded panic_on_warn checks
  panic: Introduce warn_limit
  panic: Expose "warn_count" to sysfs

 .../ABI/testing/sysfs-kernel-oops_count       |  6 ++
 .../ABI/testing/sysfs-kernel-warn_count       |  6 ++
 Documentation/admin-guide/sysctl/kernel.rst   | 17 ++++++
 MAINTAINERS                                   |  2 +
 include/linux/panic.h                         |  1 +
 kernel/exit.c                                 | 60 +++++++++++++++++++
 kernel/kcsan/report.c                         |  3 +-
 kernel/panic.c                                | 44 +++++++++++++-
 kernel/sched/core.c                           |  3 +-
 lib/ubsan.c                                   |  3 +-
 mm/kasan/report.c                             |  4 +-
 mm/kfence/report.c                            |  3 +-
 12 files changed, 139 insertions(+), 13 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-kernel-oops_count
 create mode 100644 Documentation/ABI/testing/sysfs-kernel-warn_count

Comments

Luis Chamberlain Nov. 9, 2022, 9:16 p.m. UTC | #1
On Wed, Nov 09, 2022 at 12:00:43PM -0800, Kees Cook wrote:
> Hi,
> 
> This builds on Jann's v1 patch[1]. Changes in v2:
> - move sysctl into kernel/exit.c (where it belongs)
> - expand Documentation slightly
> 
> New stuff in v2:
> - expose oops_count to sysfs
> - consolidate panic_on_warn usage
> - introduce warn_limit
> - expose warn_count to sysfs
> 
> [1] https://lore.kernel.org/lkml/20221107201317.324457-1-jannh@google.com
> 
> Jann Horn (1):
>   exit: Put an upper limit on how often we can oops
> 
> Kees Cook (5):
>   panic: Separate sysctl logic from CONFIG_SMP
>   exit: Expose "oops_count" to sysfs
>   panic: Consolidate open-coded panic_on_warn checks
>   panic: Introduce warn_limit
>   panic: Expose "warn_count" to sysfs

For all:

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis