Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/zcrx: check unsupported flags on import

The imoorted zcrx registration path checks for ZCRX_REG_IMPORT, as it
should, but doesn't reject any unsupported flags. Fix that.

Cc: stable@vger.kernel.org
Fixes: 00d91481279fb ("io_uring/zcrx: share an ifq between rings")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
7496e658 5d540e45

+2
+2
io_uring/zcrx.c
··· 677 677 return -EINVAL; 678 678 if (reg->if_rxq || reg->rq_entries || reg->area_ptr || reg->region_ptr) 679 679 return -EINVAL; 680 + if (reg->flags & ~ZCRX_REG_IMPORT) 681 + return -EINVAL; 680 682 681 683 fd = reg->if_idx; 682 684 CLASS(fd, f)(fd);