summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 10:02:27 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 10:13:49 -1000
commit05b163dab2bca452ef61e6ee6b12183c67f01aca (patch)
tree5ab66d123d56c1d68071379b764035a347f1973b /scripts/Makefile.thinlto
parentbb4e937ff6857ca9277d35683682ea4c1f75ff2a (diff)
downloadlinux-05b163dab2bca452ef61e6ee6b12183c67f01aca.tar.gz
linux-05b163dab2bca452ef61e6ee6b12183c67f01aca.zip
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