diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-12-05 12:28:09 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-12-05 13:18:54 +0100 |
commit | 3b6f99a94b04b389292590840d96342b7dd08941 (patch) | |
tree | 31e17a3ffa6f2f3a1fa3acee44a16ed15de94b87 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0d9b9a328cb605419ed046d341dc2a3d66ee0256 (diff) |
x86/boot: Disable UBSAN in early boot code
The early boot code runs from a 1:1 mapping of memory, and may execute
before the kernel virtual mapping is even up. This means absolute symbol
references cannot be permitted in this code.
UBSAN injects references to global data structures into the code, and
without -fPIC, those references are emitted as absolute references to
kernel virtual addresses. Accessing those will fault before the kernel
virtual mapping is up, so UBSAN needs to be disabled in early boot code.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20241205112804.3416920-13-ardb+git@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions