Skip to content

x86/alternative: Patch a single alternative location only once

Juergen Gross lkml 4 versions – Applied

Status from this message: The following commit has been merged into the x86/alternatives branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesApplied
  2. v43 patches 4 repliesSuperseded
  3. v33 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v21 patch1 replySuperseded

Changes in v5 from the cover letter

- dropped patch 1 of V4, as already applied
- small cosmetic changes (Boris Petkov)

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2x86/alternative: Use helper functions for patching alternativesarch/x86/kernel/alternative.c+87 -550 replies
2/2x86/alternative: Patch a single alternative location only oncearch/x86/kernel/alternative.c+26 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] x86/alternative: Patch a single alternative location only once

Instead of patching a single location potentially multiple times in case of nested ALTERNATIVE()s, do the patching only after having evaluated all alt_instr instances for that location.

Changes in V2:
- complete rework (Boris Petkov)

Changes in V3:
- split former V2 patch into 2 by introducing a helper function (Boris Petkov)
- repost the small cleanup patch 1 which was taken before, but has somehow vanished from the tip x86/alternative branch (it is still in the tip master branch, but I couldn't find it in any other tip branch).

Changes in V4:
- use 3 helpers instead of 1 (Boris Petkov)

Changes in V5:
- dropped patch 1 of V4, as already applied
- small cosmetic changes (Boris Petkov)

Juergen Gross (2):
x86/alternative: Use helper functions for patching alternatives x86/alternative: Patch a single alternative location only once

 arch/x86/kernel/alternative.c | 149 +++++++++++++++++++++-------------
 1 file changed, 92 insertions(+), 57 deletions(-)
Signature · 1 line
2.51.0