diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:23:18 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:23:18 -1000 |
| commit | ae78eff333746326e630e505d7fac0d237e644ef (patch) | |
| tree | 5fedc5998b5394d65b8af49ad80464034e07566c /kernel/stacktrace.c | |
| parent | b040da2a0046ae64eeeed256b4465f231d5ee6de (diff) | |
compat: use scoped user access in get_compat_sigevent()
get_compat_sigevent() does one access_ok() on the user structure and
then reads four fields with __get_user(). Each of those reads enables
and disables user access on its own, so the single range check no longer
buys anything.
Read the fields inside a scoped_user_read_access() instead.
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 'kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions
