Add two parameter to specify how many times a kexec kernel can be loaded.

These parameter allow hardening the system.

While we are at it, fix a documentation issue and refactor some code.

To: Jonathan Corbet <cor...@lwn.net>
To: Eric Biederman <ebied...@xmission.com>
Cc: linux-...@vger.kernel.org
Cc: linux-ker...@vger.kernel.org
Cc: kexec@lists.infradead.org
Cc: Joel Fernandes (Google) <j...@joelfernandes.org>
Cc: Sergey Senozhatsky <senozhat...@chromium.org>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ross Zwisler <zwis...@kernel.org>
To: Philipp Rudo <pr...@redhat.com>
To: Guilherme G. Piccoli <gpicc...@igalia.com>
Signed-off-by: Ricardo Ribalda <riba...@chromium.org>

---
Changes in v3:
- s/paramter/parameter/ Thanks Ghilherme!
- s/permited/permitted/ Thanks Joel!
- Link to v2: 
https://lore.kernel.org/r/20221114-disable-kexec-reset-v2-0-c498313c1...@chromium.org

Changes in v2:
- Instead of kexec_reboot_disabled, add two new counters (Thanks Philipp!)
- Link to v1: 
https://lore.kernel.org/r/20221114-disable-kexec-reset-v1-0-fb51d20cf...@chromium.org

---
Ricardo Ribalda (3):
      Documentation: sysctl: Correct kexec_load_disabled
      kexec: Factor out kexec_load_permitted
      kexec: Introduce parameters load_limit_reboot and load_limit_panic

 Documentation/admin-guide/kernel-parameters.txt | 14 ++++
 Documentation/admin-guide/sysctl/kernel.rst     |  7 +-
 include/linux/kexec.h                           |  3 +-
 kernel/kexec.c                                  |  2 +-
 kernel/kexec_core.c                             | 98 ++++++++++++++++++++++++-
 kernel/kexec_file.c                             |  2 +-
 6 files changed, 119 insertions(+), 7 deletions(-)
---
base-commit: 479174d402bcf60789106eedc4def3957c060bad
change-id: 20221114-disable-kexec-reset-19b7e117338f

Best regards,
-- 
Ricardo Ribalda <riba...@chromium.org>

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to