]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/net: unify *mshot_prep calls with compat
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 26 Feb 2025 11:41:20 +0000 (11:41 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2025 14:27:56 +0000 (07:27 -0700)
commit51e158d40589f3576c598e67a741d398d1ca2189
tree2635eee5ac193f8dffb9594d38d7584bb3ff149e
parent0c623f489987c76726b8ec0e089a89df53caea3b
io_uring/net: unify *mshot_prep calls with compat

Instead of duplicating a io_recvmsg_mshot_prep() call in the compat
path, let the common code handle it. For that, copy necessary compat
fields into struct user_msghdr. Note, it zeroes user_msghdr to be on the
safe side as compat is not that interesting and overhead shouldn't be
high.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/94e62386dec570f83b4a4270a46ac60bc415fb71.1740569495.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c