summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 19:23:42 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 19:23:42 -1000
commit7941b97fdd890fb027a1b6f589e9d86c7ca8a33f (patch)
tree157d8feedbed0c7f00228b94bd800518a0ecb4cc /scripts/Makefile.thinlto
parent9da9f342a897a2d43ad947d4073b1912800ab436 (diff)
downloadlinux-7941b97fdd890fb027a1b6f589e9d86c7ca8a33f.tar.gz
linux-7941b97fdd890fb027a1b6f589e9d86c7ca8a33f.zip
x86/stacktrace: Use scoped user access in copy_stack_frame()
copy_stack_frame() reads the two words of a user stack frame with __get_user(), after an __access_ok() on the frame and inside pagefault_disable(), since the user stack walk can run in atomic context. Do the two reads in a scoped_user_read_access() instead. It nests inside the pagefault_disable() section, does the range check itself, and needs only a single stac/clac pair for both loads. This is part of getting rid of __get_user() and __put_user() entirely. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions