linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] module: logging and code improvements
@ 2025-08-29  8:49 Jinchao Wang
  2025-08-29  8:49 ` [PATCH v3 1/4] module: signing: Use pr_err for signature rejection Jinchao Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Jinchao Wang @ 2025-08-29  8:49 UTC (permalink / raw)
  To: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen,
	linux-modules, linux-kernel
  Cc: Jinchao Wang

This series of patches cleans up and refactors the kernel's module loading
code. The goal is to make the subsystem's logging clearer and its internal
logic more straightforward for developers to understand.

The patches in this series: 

- module: signing: Use pr_err for signature rejection
  Makes module signature rejection messages more visible.
- module: show why force load fails 
  Adds a reason to the error message when force loading is disabled.
- module: centralize no-versions force load check
  Refactors the code to centralize the "no versions" force load check.
- module: separate vermagic and livepatch checks
  Improves code organization by separating vermagic and livepatch checks.

---
Changes from v2:
- show mod->name in try_to_force_load
- fix a introduced bug in patch 3

Changes from v1:
- A patch was dropped because it was based on a misunderstanding
  of the ignore versioning flag's original intent.

v2:
https://lore.kernel.org/all/20250825091545.18607-1-wangjinchao600@gmail.com/

v1 :
https://lore.kernel.org/all/20250822125454.1287066-1-wangjinchao600@gmail.com

Jinchao Wang (4):
  module: signing: Use pr_err for signature rejection
  module: show why force load fails
  module: centralize no-versions force load check
  module: separate vermagic and livepatch checks

 kernel/module/main.c    | 14 ++++++++------
 kernel/module/signing.c |  2 +-
 kernel/module/version.c | 10 ++++++++--
 3 files changed, 17 insertions(+), 9 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-09-02  2:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-29  8:49 [PATCH v3 0/4] module: logging and code improvements Jinchao Wang
2025-08-29  8:49 ` [PATCH v3 1/4] module: signing: Use pr_err for signature rejection Jinchao Wang
2025-09-01  9:25   ` Petr Pavlu
2025-09-01 18:18   ` Daniel Gomez
2025-09-02  1:57     ` Jinchao Wang
2025-08-29  8:49 ` [PATCH v3 2/4] module: show why force load fails Jinchao Wang
2025-09-01  9:26   ` Petr Pavlu
2025-09-01 18:29   ` Daniel Gomez
2025-09-02  2:06     ` Jinchao Wang
2025-08-29  8:49 ` [PATCH v3 3/4] module: centralize no-versions force load check Jinchao Wang
2025-09-01  9:30   ` Petr Pavlu
2025-08-29  8:49 ` [PATCH v3 4/4] module: separate vermagic and livepatch checks Jinchao Wang
2025-09-01  9:34   ` Petr Pavlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).