Skip to content

An updated version of the load_unaligned_zeropad() fix

Kirill A. Shutemov lkml 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 14 repliesApplied
  2. v33 patches 7 repliesSuperseded
  3. v23 patches 8 repliesSuperseded

Changes in v4 from the cover letter

- Allow unaligned MMIO access, but fail split page accesses;
- Explicit switch() in ve_instr_len() helper;
- Update comments;

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3x86/tdx: Fix early #VE handlingarch/x86/coco/tdx/tdx.c+5 -10 replies
2/3x86/tdx: Clarify RIP adjustments in #VE handlerarch/x86/coco/tdx/tdx.c+123 -550 replies
3/3x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared pagearch/x86/coco/tdx/tdx.c+14 -114 replies

Reviews trailers per patch

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

PatchKuppuswamy Sathyanarayanan
1/3R-b
2/3
3/3

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

Read the v4 thread

Cover letter [PATCHv4 0/3] An updated version of the load_unaligned_zeropad() fix

An updated version of the load_unaligned_zeropad() fix.

v4:
- Allow unaligned MMIO access, but fail split page accesses;
- Explicit switch() in ve_instr_len() helper;
- Update comments;
v3:
- Rework load_unaligned_zeropad() fix: fail misaligned MMIO accesses instead of upfront exception fixups;
- Add ve_instr_len() helper to wrap access to ve->instr_len;
- Add Reviewed-by from Sathya;
v2:
- Clarify RIP adjustments during #VE handling;
- Fix early #VE handling;
- Fix comment and commit message;

Kirill A. Shutemov (3):
x86/tdx: Fix early #VE handling
x86/tdx: Clarify RIP adjustments in #VE handler
x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page

 arch/x86/coco/tdx/tdx.c | 187 +++++++++++++++++++++++++++++-----------
 1 file changed, 136 insertions(+), 51 deletions(-)
Signature · 1 line
2.35.1