aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorSergei Trofimovich <[email protected]>2021-04-09 20:27:32 +0000
committerLinus Torvalds <[email protected]>2021-04-09 21:54:23 +0000
commit7ad1e366167837daeb93d0bacb57dee820b0b898 (patch)
treede3fd1892ce5e6e033661d7bdac856c8a71bffa1 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentocfs2: fix deadlock between setattr and dio_end_io_write (diff)
downloadkernel-7ad1e366167837daeb93d0bacb57dee820b0b898.tar.gz
kernel-7ad1e366167837daeb93d0bacb57dee820b0b898.zip
ia64: fix user_stack_pointer() for ptrace()
ia64 has two stacks: - memory stack (or stack), pointed at by by r12 - register backing store (register stack), pointed at by ar.bsp/ar.bspstore with complications around dirty register frame on CPU. In [1] Dmitry noticed that PTRACE_GET_SYSCALL_INFO returns the register stack instead memory stack. The bug comes from the fact that user_stack_pointer() and current_user_stack_pointer() don't return the same register: ulong user_stack_pointer(struct pt_regs *regs) { return regs->ar_bspstore; } #define current_user_stack_pointer() (current_pt_regs()->r12) The change gets both back in sync. I think ptrace(PTRACE_GET_SYSCALL_INFO) is the only affected user by this bug on ia64. The change fixes 'rt_sigreturn.gen.test' strace test where it was observed initially. Link: https://bugs.gentoo.org/769614 [1] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sergei Trofimovich <[email protected]> Reported-by: Dmitry V. Levin <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions