public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH io_uring 1/1] io_uring/zcrx: fix page array leak
@ 2026-02-01 21:18 Pavel Begunkov
  2026-02-02 15:21 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Begunkov @ 2026-02-01 21:18 UTC (permalink / raw)
  To: io-uring; +Cc: asml.silence, axboe, netdev

d9f595b9a65e ("io_uring/zcrx: fix leaking pages on sg init fail") fixed
a page leakage but didn't free the page array, release it as well.

Fixes: b84621d96ee02 ("io_uring/zcrx: allocate sgtable for umem areas")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 io_uring/zcrx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index 8a9df72bc094..0c4b339f712e 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -209,6 +209,7 @@ static int io_import_umem(struct io_zcrx_ifq *ifq,
 					GFP_KERNEL_ACCOUNT);
 	if (ret) {
 		unpin_user_pages(pages, nr_pages);
+		kvfree(pages);
 		return ret;
 	}
 
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH io_uring 1/1] io_uring/zcrx: fix page array leak
  2026-02-01 21:18 [PATCH io_uring 1/1] io_uring/zcrx: fix page array leak Pavel Begunkov
@ 2026-02-02 15:21 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2026-02-02 15:21 UTC (permalink / raw)
  To: io-uring, Pavel Begunkov; +Cc: netdev


On Sun, 01 Feb 2026 21:18:53 +0000, Pavel Begunkov wrote:
> d9f595b9a65e ("io_uring/zcrx: fix leaking pages on sg init fail") fixed
> a page leakage but didn't free the page array, release it as well.
> 
> 

Applied, thanks!

[1/1] io_uring/zcrx: fix page array leak
      commit: 0ae91d8ab70922fb74c22c20bedcb69459579b1c

Best regards,
-- 
Jens Axboe




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-02 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01 21:18 [PATCH io_uring 1/1] io_uring/zcrx: fix page array leak Pavel Begunkov
2026-02-02 15:21 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox