]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/kbuf: reject zero sized provided buffers
authorJens Axboe <axboe@kernel.dk>
Mon, 7 Apr 2025 13:51:23 +0000 (07:51 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:43:39 +0000 (10:43 +0200)
commitbe562a7f7f16c31e7301def6a7c62e79104e832b
treec00c101aa408662a119bd3eb276a4dadb57290ad
parent43736338e370db26c8d864e4770ba378081dae1f
io_uring/kbuf: reject zero sized provided buffers

commit cf960726eb65e8d0bfecbcce6cf95f47b1ffa6cc upstream.

This isn't fixing a real issue, but there's also zero point in going
through group and buffer setup, when the buffers are going to be
rejected once attempted to get used.

Cc: stable@vger.kernel.org
Reported-by: syzbot+58928048fd1416f1457c@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/kbuf.c