aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <[email protected]>2023-12-05 02:50:10 -0800
committerBorislav Petkov (AMD) <[email protected]>2024-01-31 22:02:05 +0100
commit58c80cc55e079933205597ecf846583c5e6e4946 (patch)
tree2b54393d01a8e565e0baa10a21be3a0fdea1f332 /lib/test_fortify/write_overflow-strncpy-src.c
parentad41a14cc2d66229479d73e4a7dc1fda26827666 (diff)
x86/fred: Make exc_page_fault() work for FRED
On a FRED system, the faulting address (CR2) is passed on the stack, to avoid the problem of transient state. Thus the page fault address is read from the FRED stack frame instead of CR2 when FRED is enabled. Signed-off-by: H. Peter Anvin (Intel) <[email protected]> Signed-off-by: Xin Li <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Shan Kang <[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