aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-08-11 07:30:19 +0000
committerRussell King (Oracle) <[email protected]>2021-08-20 10:39:25 +0000
commit344179fc7ef427910de438affbf3703fed51fe5a (patch)
tree63bd7fff6b11fa5e87f938332269992695754cae /tools/perf/scripts/python/net_dropmonitor.py
parentARM: 9115/1: mm/maccess: fix unaligned copy_{from,to}_kernel_nofault (diff)
downloadkernel-344179fc7ef427910de438affbf3703fed51fe5a.tar.gz
kernel-344179fc7ef427910de438affbf3703fed51fe5a.zip
ARM: 9106/1: traps: use get_kernel_nofault instead of set_fs()
ARM uses set_fs() and __get_user() to allow the stack dumping code to access possibly invalid pointers carefully. These can be changed to the simpler get_kernel_nofault(), and allow the eventual removal of set_fs(). dump_instr() will print either kernel or user space pointers, depending on how it was called. For dump_mem(), I assume we are only interested in kernel pointers, and the only time that this is called with user_mode(regs)==true is when the regs themselves are unreliable as a result of the condition that caused the trap. Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions