diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:23:24 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:23:24 -1000 |
| commit | 678a0299d81c2ce8ef12f55ef7a722026b38a6e0 (patch) | |
| tree | c4bba66f437ea31be1c1d5d80840aee73524182a /scripts/Makefile.thinlto | |
| parent | edc483b611264ec6fd3b522a477d5fb1250299da (diff) | |
| download | linux-678a0299d81c2ce8ef12f55ef7a722026b38a6e0.tar.gz linux-678a0299d81c2ce8ef12f55ef7a722026b38a6e0.zip | |
uprobes: Use get_user() in is_trap_at_addr()
is_trap_at_addr() reads the instruction at a user address with
__get_user(), inside pagefault_disable() since the caller holds
mmap_lock. There is no access_ok() in front of it, and nothing here
needs the unchecked version: with page faults disabled, get_user()'s
might_fault() check returns early, so that is no reason to avoid it
either.
Use get_user(), which also checks that the address is a user address,
and on x86 avoids the lfence that __get_user() does.
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
