[PATCH v3 0/2] livepatch: Reduce tasklist_lock contention

From: Yafang Shao

Date: Thu Nov 26 2026 - 02:29:02 EST


Patch #1 fixes a pre-existing issue on PREEMPT_RT, which patch #2 relies on
Patch #2 reduces the lock contention in the livepatch transition

Changes:

v2->v3:
- fixes a pre-existing issue on RT (sashiko-bot)

v2: https://lore.kernel.org/live-patching/20261123024119.16154-1-laoar.shao@xxxxxxxxx/

v1->v2:
- improve further by skipping the second pass if the first pass fail
(Josh)
- fix race between klp_try_complete_transition() and
klp_copy_process() (sashiko-bot)

v1: https://lore.kernel.org/live-patching/20261117130848.65142-1-laoar.shao@xxxxxxxxx/

Yafang Shao (2):
livepatch: Protect the per-CPU stack buffer in klp_check_stack()
livepatch: Avoid blocking tasklist_lock too long

kernel/livepatch/transition.c | 74 ++++++++++++++++++++++++++++-------
1 file changed, 59 insertions(+), 15 deletions(-)

--
2.52.0