aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2020-10-27 00:03:18 +0000
committerLinus Torvalds <[email protected]>2020-10-27 16:57:46 +0000
commit38dc5079da7081e8b09b14e255e9da82c451a531 (patch)
treef1c872f5a3cad39a3ac3d69766f3ccb0b56916f0 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentscsi: qla2xxx: remove incorrect sparse #ifdef (diff)
downloadkernel-38dc5079da7081e8b09b14e255e9da82c451a531.tar.gz
kernel-38dc5079da7081e8b09b14e255e9da82c451a531.zip
Fix compat regression in process_vm_rw()
The removal of compat_process_vm_{readv,writev} didn't change process_vm_rw(), which always assumes it's not doing a compat syscall. Instead of passing in 'false' unconditionally for 'compat', make it conditional on in_compat_syscall(). [ Both Al and Christoph point out that trying to access a 64-bit process from a 32-bit one cannot work anyway, and is likely better prohibited, but that's a separate issue - Linus ] Fixes: c3973b401ef2 ("mm: remove compat_process_vm_{readv,writev}") Reported-and-tested-by: Kyle Huey <[email protected]> Signed-off-by: Jens Axboe <[email protected]> Acked-by: Al Viro <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions