]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf029d9c481b5c3f94d7922f9d2b40bbe489d6fed
treefa5f25b57b6ac98b2af9048f4e604d6547d27f37
parent973e8a30d9a4125e4e1b12a1ca7d288bfa87ed2f
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