OSDN Git Service

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>
Mon, 25 Jul 2022 00:39:17 +0000 (18:39 -0600)
commit72c531f8ef3052c682d39dc21dcb5576afda208c
treefa5f25b57b6ac98b2af9048f4e604d6547d27f37
parent7fa875b8e53c288d616234b9daf417b0650ce1cc
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