live-patching.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] livepatch: some improvements
@ 2025-02-27  2:47 Yafang Shao
  2025-02-27  2:47 ` [PATCH v3 1/2] livepatch: Add comment to clarify klp_add_nops() Yafang Shao
  2025-02-27  2:47 ` [PATCH v3 2/2] livepatch: Replace tasklist_lock with RCU Yafang Shao
  0 siblings, 2 replies; 9+ messages in thread
From: Yafang Shao @ 2025-02-27  2:47 UTC (permalink / raw)
  To: jpoimboe, jikos, mbenes, pmladek, joe.lawrence; +Cc: live-patching, Yafang Shao

  #1: Clarify klp_add_nops()
  #2: Replace the tasklist_lock with RCU in the KLP transition

v2->v3:
- Skip the newly fokred tasks during klp_check_and_switch_task() (Josh)
- Fix the local variable patch_state in the ftrace handler (Josh)

v1->v2: https://lore.kernel.org/live-patching/20250223062046.2943-1-laoar.shao@gmail.com/
- Enhance the comment in #1 for better clarity and detail. (Petr)
- Replace the tasklist_lock with RCU (Josh)
- Remove the fix for RCU warnings as the root cause is currently unclear.
  Once the root cause is identified, I will submit the fix separately.

v1: https://lore.kernel.org/live-patching/20250211062437.46811-1-laoar.shao@gmail.com/

Yafang Shao (2):
  livepatch: Add comment to clarify klp_add_nops()
  livepatch: Replace tasklist_lock with RCU

 include/linux/livepatch.h     |  4 ++--
 kernel/fork.c                 |  2 +-
 kernel/livepatch/core.c       |  9 ++++++---
 kernel/livepatch/patch.c      |  8 +++++++-
 kernel/livepatch/transition.c | 35 ++++++++++++++---------------------
 kernel/livepatch/transition.h |  1 +
 6 files changed, 31 insertions(+), 28 deletions(-)

-- 
2.43.5


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

end of thread, other threads:[~2025-03-04 15:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27  2:47 [PATCH v3 0/2] livepatch: some improvements Yafang Shao
2025-02-27  2:47 ` [PATCH v3 1/2] livepatch: Add comment to clarify klp_add_nops() Yafang Shao
2025-02-27 14:45   ` Petr Mladek
2025-03-04 15:48     ` Petr Mladek
2025-02-27  2:47 ` [PATCH v3 2/2] livepatch: Replace tasklist_lock with RCU Yafang Shao
2025-02-27 16:22   ` Petr Mladek
2025-02-28  2:38     ` Yafang Shao
2025-02-28  6:23       ` Yafang Shao
2025-03-04 14:43   ` Miroslav Benes

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).