public inbox for linux-modules@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Improve handling of the __klp_{objects,funcs} sections in modules
@ 2026-01-21  8:28 Petr Pavlu
  2026-01-21  8:28 ` [PATCH v2 1/2] livepatch: Fix having __klp_objects relics in non-livepatch modules Petr Pavlu
  2026-01-21  8:28 ` [PATCH v2 2/2] livepatch: Free klp_{object,func}_ext data after initialization Petr Pavlu
  0 siblings, 2 replies; 5+ messages in thread
From: Petr Pavlu @ 2026-01-21  8:28 UTC (permalink / raw)
  To: Josh Poimboeuf, Jiri Kosina, Miroslav Benes, Petr Mladek,
	Joe Lawrence
  Cc: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen,
	Aaron Tomlin, Peter Zijlstra, live-patching, linux-modules,
	linux-kernel

Changes since v1 [1]:
- Generalize the helper function that locates __klp_objects in a module
  to allow it to find objects in other sections as well.

[1] https://lore.kernel.org/linux-modules/20260114123056.2045816-1-petr.pavlu@suse.com/

Petr Pavlu (2):
  livepatch: Fix having __klp_objects relics in non-livepatch modules
  livepatch: Free klp_{object,func}_ext data after initialization

 include/linux/livepatch.h           |  3 +++
 kernel/livepatch/core.c             | 20 ++++++++++++++++++++
 scripts/livepatch/init.c            | 18 +++++++-----------
 scripts/module.lds.S                |  9 ++-------
 tools/objtool/check.c               |  2 +-
 tools/objtool/include/objtool/klp.h | 10 +++++-----
 tools/objtool/klp-diff.c            |  2 +-
 7 files changed, 39 insertions(+), 25 deletions(-)


base-commit: 0f61b1860cc3f52aef9036d7235ed1f017632193
-- 
2.52.0


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

end of thread, other threads:[~2026-01-22  8:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21  8:28 [PATCH v2 0/2] Improve handling of the __klp_{objects,funcs} sections in modules Petr Pavlu
2026-01-21  8:28 ` [PATCH v2 1/2] livepatch: Fix having __klp_objects relics in non-livepatch modules Petr Pavlu
2026-01-21 21:04   ` Josh Poimboeuf
2026-01-22  8:34     ` Petr Pavlu
2026-01-21  8:28 ` [PATCH v2 2/2] livepatch: Free klp_{object,func}_ext data after initialization Petr Pavlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox