diff options
| author | 2026-10-20 10:02:27 -1000 | |
|---|---|---|
| committer | 2026-10-20 10:13:49 -1000 | |
| commit | 05b163dab2bca452ef61e6ee6b12183c67f01aca (patch) | |
| tree | 5ab66d123d56c1d68071379b764035a347f1973b /scripts/Makefile.thinlto | |
| parent | s390: use get_user()/put_user() instead of the unchecked variants (diff) | |
powerpc/powernv: use get_user()/put_user() in the LPC debugfs files
lpc_debug_read() and lpc_debug_write() check the user buffer with
access_ok() once and then move it one access at a time with
__put_user() or __get_user(), with an OPAL call in between each. Each
of those accesses opens and closes user access on its own, so the
up-front check saves nothing.
Use put_user() and get_user(). The access_ok() stays, so a bad buffer
still fails before any LPC cycle is done.
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
