diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:23:13 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:23:13 -1000 |
| commit | 5c8590157b85d4030c40de6c00f9739a676ba8b0 (patch) | |
| tree | c62195e099db9be0ba795f7a5d8e120996b8e943 /scripts/Makefile.thinlto | |
| parent | c03c1a14507dfaf8b856c2608f9ac216021fc222 (diff) | |
| download | linux-5c8590157b85d4030c40de6c00f9739a676ba8b0.tar.gz linux-5c8590157b85d4030c40de6c00f9739a676ba8b0.zip | |
signal: use scoped user access for old-style sigaction
The old sigaction() system call and its compat counterpart do one
access_ok() on the user structure and then a series of __get_user() or
__put_user() calls on its fields. That was an optimization back when
each of those was a single memory access. These days each of them
enables and disables user access on its own (stac/clac on x86), so the
up-front check saves nothing.
Convert them to scoped_user_{read,write}_access() with
unsafe_{get,put}_user(), which does the range check once and puts a
single stac/clac pair around plain moves.
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
