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: assert area type in io_zcrx_iov_page

Add a simple debug assertion to io_zcrx_iov_page() making it's not
trying to return pages for a dmabuf area.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/c3c30a926a18436a399a1768f3cc86c76cd17fa7.1751466461.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
1b4dc1ff b84621d9

+2
+2
io_uring/zcrx.c
··· 44 44 { 45 45 struct io_zcrx_area *area = io_zcrx_iov_to_area(niov); 46 46 47 + lockdep_assert(!area->mem.is_dmabuf); 48 + 47 49 return area->mem.pages[net_iov_idx(niov)]; 48 50 } 49 51