net: copy from user before calling __get_compat_msghdr
authorDylan Yudaken <dylany@fb.com>
Thu, 14 Jul 2022 11:02:57 +0000 (04:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:47:09 +0000 (08:47 -0600)
commitb787fa827a0ec445471ef9e31fbe63e7bba6023d
tree518bd3e5dca2e177c5806769133e3f2e81e52136
parentff0c5d2a70a210bab0d245719c07938c2bbd2b9b
net: copy from user before calling __get_compat_msghdr

this is in preparation for multishot receive from io_uring, where it needs
to have access to the original struct user_msghdr.

functionally this should be a no-op.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220714110258.1336200-3-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/net/compat.h
io_uring/net.c
net/compat.c