arm64: Dynamic shadow call stack fixes
Status from this message: Applied to arm64 (for-next/scs), thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | arm64/scs: Fix handling of DWARF augmentation data in CIE/FDE framesarch/ arch/ arch/ | +50 | 2 replies | |
| 2/3 | arm64/scs: Deal with 64-bit relative offsets in FDE framesarch/ | +32 | 0 replies | |
| 3/3 | arm64/scs: Drop unused prototype __pi_scs_patch_vmlinux()arch/ | +0 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Sami Tolvanen |
|---|---|
| Series | R-b T-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] arm64: Dynamic shadow call stack fixes
From: Ard Biesheuvel <[email protected]>
When building modules using the large code model, the emitted DWARF metadata uses large fields for the code references too, and this is currently not being handled.
The CIE header frame contains metadata that describes the size of these fields, and so this should be parsed and taken into account when processing the FDE frames (patch #2)
But first, the handling of this CIE frame header needs to be fixed, as it currently [inadvertently] used hardcoded defaults for some values that happen to always match what Clang emits in practice (patch #1)
Ard Biesheuvel (3):
arm64/scs: Fix handling of DWARF augmentation data in CIE/FDE frames arm64/scs: Deal with 64-bit relative offsets in FDE frames arm64/scs: Drop unused prototype __pi_scs_patch_vmlinux()
arch/arm64/include/asm/scs.h | 8 +- arch/arm64/kernel/module.c | 10 ++- arch/arm64/kernel/pi/patch-scs.c | 93 ++++++++++++++------ 3 files changed, 80 insertions(+), 31 deletions(-)
Signature · 1 line
2.47.0.277.g8800431eea-goog