diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-20 10:05:11 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-20 10:13:50 -1000 |
| commit | 52907f0e4765cba370ef07d536cf4e4ecea8c0ba (patch) | |
| tree | 65965c806082ca90661858cf5bd793ed3d5be782 /scripts/Makefile.thinlto | |
| parent | 2f0bb47c0007d9293154e192a0598f8978a97b96 (diff) | |
| download | linux-52907f0e4765cba370ef07d536cf4e4ecea8c0ba.tar.gz linux-52907f0e4765cba370ef07d536cf4e4ecea8c0ba.zip | |
powerpc/signal64: use scoped user access in setup_trampoline()
setup_trampoline() writes the seven words of the on-stack sigreturn
trampoline with __put_user(), relying on the frame having been checked
when the frame setup opened its user write access. It is called after
that access has been closed again, so each of the seven writes opens and
closes user access on its own.
Write them inside one scoped_user_write_access_size() covering the
whole trampoline instead. Everything in it is a store, so a write-only
window is enough, and the instruction cache flush stays outside 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
