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.

Merge tag 'io_uring-6.6-2023-10-20' of git://git.kernel.dk/linux

Pull io_uring fix from Jens Axboe:
"Just a single fix for a bug report that came in, fixing a case where
failure to init a ring with IORING_SETUP_NO_MMAP can trigger a NULL
pointer dereference"

* tag 'io_uring-6.6-2023-10-20' of git://git.kernel.dk/linux:
io_uring: fix crash with IORING_SETUP_NO_MMAP and invalid SQ ring address

+6
+6
io_uring/io_uring.c
··· 2674 2674 2675 2675 if (!pages) 2676 2676 return; 2677 + 2677 2678 page_array = *pages; 2679 + if (!page_array) 2680 + return; 2681 + 2678 2682 for (i = 0; i < npages; i++) 2679 2683 unpin_user_page(page_array[i]); 2680 2684 kvfree(page_array); ··· 2762 2758 ctx->sq_sqes = NULL; 2763 2759 } else { 2764 2760 io_pages_free(&ctx->ring_pages, ctx->n_ring_pages); 2761 + ctx->n_ring_pages = 0; 2765 2762 io_pages_free(&ctx->sqe_pages, ctx->n_sqe_pages); 2763 + ctx->n_sqe_pages = 0; 2766 2764 } 2767 2765 } 2768 2766