aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2023-07-24 23:03:29 +0000
committerLinus Torvalds <[email protected]>2023-07-25 22:29:01 +0000
commit9f9116406120638b4d8db3831ffbc430dd2e1e95 (patch)
tree4cdd0de09f66d3a7f24334c606eb2791288152ee /fs/jbd2/commit.c
parentMerge tag 'nfsd-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/l... (diff)
downloadkernel-9f9116406120638b4d8db3831ffbc430dd2e1e95.tar.gz
kernel-9f9116406120638b4d8db3831ffbc430dd2e1e95.zip
x86/traps: Fix load_unaligned_zeropad() handling for shared TDX memory
Commit c4e34dd99f2e ("x86: simplify load_unaligned_zeropad() implementation") changes how exceptions around load_unaligned_zeropad() handled. The kernel now uses the fault_address in fixup_exception() to verify the address calculations for the load_unaligned_zeropad(). It works fine for #PF, but breaks on #VE since no fault address is passed down to fixup_exception(). Propagating ve_info.gla down to fixup_exception() resolves the issue. See commit 1e7769653b06 ("x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page") for more context. Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Michael Kelley <[email protected]> Fixes: c4e34dd99f2e ("x86: simplify load_unaligned_zeropad() implementation") Acked-by: Dave Hansen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions