Skip to content

livepatch: some improvements

Yafang Shao live-patching 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v22 patches 2 repliesSuperseded
  3. v13 patches 26 repliesSuperseded

Changes in v3 from the cover letter

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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2livepatch: Add comment to clarify klp_add_nops()kernel/livepatch/core.c+6 -32 replies
2/2livepatch: Replace tasklist_lock with RCUinclude/linux/livepatch.h kernel/fork.c kernel/livepatch/patch.c +2 more+25 -254 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPetr Mladek
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] livepatch: some improvements

#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/[email protected]/
- 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/[email protected]/

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(-)
Signature · 1 line
2.43.5