aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-11-05 22:34:37 +0100
committerIngo Molnar <[email protected]>2023-11-30 20:06:17 +0100
commit2adeed985a42ff3334e6898c8c0827e7626c1336 (patch)
tree666b5cdb2790388a3aac880a4022a78172612c4d /lib/test_fortify/write_overflow-strncpy-src.c
parent17bce3b2ae2d52e8c5c12274ce4c3a631ce9e66b (diff)
x86/callthunks: Fix and unify call thunks assembly snippets
Currently thunk debug macros explicitly define %gs: segment register prefix for their percpu variables. This is not compatible with !CONFIG_SMP, which requires non-prefixed percpu variables. Fix call thunks debug macros to use PER_CPU_VAR macro from percpu.h to conditionally use %gs: segment register prefix, depending on CONFIG_SMP. Finally, unify ASM_ prefixed assembly macros with their non-prefixed variants. With support of %rip-relative relocations in place, call thunk templates allow %rip-relative addressing, so unified assembly snippet can be used everywhere. Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions