diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-08-11 08:30:19 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-08-20 11:39:25 +0100 |
commit | 344179fc7ef427910de438affbf3703fed51fe5a (patch) | |
tree | 63bd7fff6b11fa5e87f938332269992695754cae /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |
parent | 2423de2e6f4d8676b6f6e43dee437461023ca6a1 (diff) | |
download | linux-344179fc7ef427910de438affbf3703fed51fe5a.tar.bz2 |
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 <hch@lst.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions