]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/scs: Deal with 64-bit relative offsets in FDE frames
authorArd Biesheuvel <ardb@kernel.org>
Wed, 6 Nov 2024 18:55:16 +0000 (19:55 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 8 Nov 2024 16:37:55 +0000 (16:37 +0000)
commit60de7a647fc51b8467f6fb1a8abfe4cab1c95687
treea4f7d729885233f9c6db80777af3861feffd2214
parentccf54058f5328e6da5ecc61c961bf68bbb7d865b
arm64/scs: Deal with 64-bit relative offsets in FDE frames

In some cases, the compiler may decide to emit DWARF FDE frames with
64-bit signed fields for the code offset and range fields. This may
happen when using the large code model, for instance, which permits
an executable to be spread out over more than 4 GiB of address space.

Whether this is the case can be inferred from the augmentation data in
the CIE frame, so decode this data before processing the FDE frames.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Tested-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20241106185513.3096442-7-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/pi/patch-scs.c