summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 19:24:22 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 08:07:29 -1000
commit7170bd79ca52afbe1e0258f3080401385a6b3c49 (patch)
tree1e55e4fd7e420fcd5a61b8a4ccaecc7ce6e883f9 /tools/perf/scripts/python/stackcollapse.py
parent0c5db8acc6e99627a645a395f96b921d5558bf32 (diff)
macintosh: ans-lcd: use get_user() for reading user bytes
anslcd_write() checks the user buffer with access_ok() and then reads it one byte at a time with __get_user(), writing each byte to the LCD in between. The ANSLCD_SENDCTRL ioctl does the same with the ioctl argument, but with no access_ok() at all, so on architectures where __get_user() does not check the address it will read from any address it is given. Use get_user() in both places. The ignored return values stay as they were: a fault still reads as zero, which ends the SENDCTRL loop. 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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions