Skip to content

arch: patch_text: Fixup last cpu should be master

[email protected] linux-arch linux-arm-kernel linux-csky linux-riscv lkml stable 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyIn review
  2. v3 posting 4/41 patch 0 repliesSuperseded
  3. v3 posting 3/41 patch 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v3 posting 2/41 patch7 repliesSuperseded
v3 posting 1/41 patch0 repliesSuperseded
v21 patch5 repliesSuperseded
v1 RFC1 patch4 repliesSuperseded

Changes in v4 from the cover letter

- Add "Fixes:" for stable fixup
- Add cover letter for the patch series

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm64: patch_text: Fixup last cpu should be masterarch/arm64/kernel/patching.c+2 -20 replies
2/4riscv: patch_text: Fixup last cpu should be masterarch/riscv/kernel/patch.c+1 -10 replies
3/4xtensa: patch_text: Fixup last cpu should be masterarch/xtensa/kernel/jump_label.c+1 -10 replies
4/4csky: patch_text: Fixup last cpu should be masterarch/csky/kernel/probes/kprobes.c+1 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCatalin MarinasMasami HiramatsuMax Filippov
1/4R-b R-b
2/4R-b
3/4R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH V4 0/4] arch: patch_text: Fixup last cpu should be master

From: Guo Ren <[email protected]>

These patch_text implementations are using stop_machine_cpuslocked infrastructure with atomic cpu_count. The original idea: When the master CPU patch_text, the others should wait for it. But current implementation is using the first CPU as master, which couldn't guarantee the remaining CPUs are waiting. This patch changes the last CPU as the master to solve the potential risk.

Changes in v4:
- Add "Fixes:" for stable fixup
- Add cover letter for the patch series

Changes in v3:
- Separate the patch for different arch.

Changes in v2:
- Fixup num_online_cpus() - 1 is not last cpu

Guo Ren (4):
arm64: patch_text: Fixup last cpu should be master
riscv: patch_text: Fixup last cpu should be master
xtensa: patch_text: Fixup last cpu should be master
csky: patch_text: Fixup last cpu should be master

 arch/arm64/kernel/patching.c      | 4 ++--
 arch/csky/kernel/probes/kprobes.c | 2 +-
 arch/riscv/kernel/patch.c         | 2 +-
 arch/xtensa/kernel/jump_label.c   | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1