summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 19:23:44 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 19:23:44 -1000
commit0f697d307cab76512f504b3aa0aa5df0205fd50b (patch)
tree5a2935a107e04aa4e0a6c78f70ef4b604aa9c09c /scripts/Makefile.thinlto
parent7941b97fdd890fb027a1b6f589e9d86c7ca8a33f (diff)
downloadlinux-0f697d307cab76512f504b3aa0aa5df0205fd50b.tar.gz
linux-0f697d307cab76512f504b3aa0aa5df0205fd50b.zip
perf/x86: Use scoped user access for the user callchain frames
The user callchain walkers read each two-word stack frame with __get_user(), after checking the frame with valid_user_frame(), which is just __access_ok(). They run with page faults disabled, since they can be called from NMI context. Read each frame inside a scoped_user_read_access() instead, which does the range check itself and needs only a single stac/clac pair for both loads. That leaves valid_user_frame() unused, so remove it. 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