]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/net: ensure vectored buffer node import is tied to notification
authorJens Axboe <axboe@kernel.dk>
Mon, 24 Nov 2025 17:59:02 +0000 (10:59 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Nov 2025 17:59:02 +0000 (10:59 -0700)
commitf6041803a831266a2a5a5b5af66f7de0845bcbf3
tree1eb3ddc1b354d0794fc4a8b3f712820bc7ff1d70
parent46447367a52965e9d35f112f5b26fc8ff8ec443d
io_uring/net: ensure vectored buffer node import is tied to notification

When support for vectored registered buffers was added, the import
itself is using 'req' rather than the notification io_kiocb, sr->notif.
For non-vectored imports, sr->notif is correctly used. This is important
as the lifetime of the two may be different. Use the correct io_kiocb
for the vectored buffer import.

Cc: stable@vger.kernel.org
Fixes: 23371eac7d9a ("io_uring/net: implement vectored reg bufs for zctx")
Reported-by: Google Big Sleep <big-sleep-vuln-reports+bigsleep-463332873@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c