]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/cmd: don't expose entire cmd async data
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 19 Mar 2025 06:12:48 +0000 (06:12 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Mar 2025 15:25:55 +0000 (09:25 -0600)
commit5f14404bfa245a156915ee44c827edc56655b067
treefee2fd21984b3f69fb43d0f2c9f090838faeecc6
parent575e7b0629d4bd485517c40ff20676180476f5f9
io_uring/cmd: don't expose entire cmd async data

io_uring needs private bits in cmd's ->async_data, and they should never
be exposed to drivers as it'd certainly be abused. Leave struct
io_uring_cmd_data for the drivers but wrap it into a structure. It's a
prep patch and doesn't do anything useful yet.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20250319061251.21452-3-sidong.yang@furiosa.ai
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/opdef.c
io_uring/uring_cmd.c
io_uring/uring_cmd.h