summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 09:26:44 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 09:26:44 -1000
commit8eb93b8a67181827611d2a242de5983a04f2bc8c (patch)
tree44e9d617c122280b4967daf3882149269689784e /scripts/Makefile.thinlto
parent939e5a481a881e989714754ca65ac35f195e8e34 (diff)
downloadlinux-8eb93b8a67181827611d2a242de5983a04f2bc8c.tar.gz
linux-8eb93b8a67181827611d2a242de5983a04f2bc8c.zip
alpha: use get_kernel_nofault() in dik_show_code()
dik_show_code() dumps the instructions around the PC when the kernel dies. Both callers, die_if_kernel() and the kernel unaligned-access handler, only get there for a kernel-mode PC: die_if_kernel() returns early for user mode, and user-mode unaligned traps go to do_entUnaUser() instead. It reads that kernel text with __get_user() through a cast to a user pointer. That works only because alpha's __get_user() does no address check, and it predates get_kernel_nofault(), which is the interface for exactly this: a kernel address that may not be mapped, read with page faults disabled. 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