diff options
author | Jens Axboe <[email protected]> | 2022-07-15 15:54:47 -0600 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-07-24 18:39:18 -0600 |
commit | 4f6a94d337408f23e199eee7d35ed6edc201df0c (patch) | |
tree | ec0244303b6a45dc26dce70b243cf40ad261d6fc /drivers/gpu/drm/amd/amdgpu | |
parent | 48904229928d941ce1db181b991948387ab463cd (diff) |
net: fix compat pointer in get_compat_msghdr()
A previous change enabled external users to copy the data before
calling __get_compat_msghdr(), but didn't modify get_compat_msghdr() or
__io_compat_recvmsg_copy_hdr() to take that into account. They are both
stil passing in the __user pointer rather than the copied version.
Ensure we pass in the kernel struct, not the pointer to the user data.
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 1a3e4e94a1b9 ("net: copy from user before calling __get_compat_msghdr")
Reported-by: Marek Szyprowski <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions