On Mon, 25 Nov 2024 23:10:31 +0000, Pavel Begunkov wrote: > io_pages_unmap() is a bit tricky in trying to figure whether the pages > were previously vmap'ed or not. In particular If there is juts one page > it belives there is no need to vunmap. Paired io_pages_map(), however, > could've failed io_mem_alloc_compound() and attempted to > io_mem_alloc_single(), which does vmap, and that leads to unpaired vmap. > > The solution is to fail if io_mem_alloc_compound() can't allocate a > single page. That's the easiest way to deal with it, and those two > functions are getting removed soon, so no need to overcomplicate it. > > [...] Applied, thanks! [1/1] io_uring: fix corner case forgetting to vunmap commit: 43eef70e7e2ac74e7767731dd806720c7fb5e010 Best regards, -- Jens Axboe