From: Pavel Begunkov Date: Tue, 16 Sep 2025 14:28:03 +0000 (+0100) Subject: io_uring/zcrx: account niov arrays to cgroup X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31bf77dcc3810e08bcc7d15470e92cdfffb7f7f1;p=thirdparty%2Fkernel%2Fstable.git io_uring/zcrx: account niov arrays to cgroup net_iov / freelist / etc. arrays can be quite long, make sure they're accounted. Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index 07a114f9a5424..6799b5f33c96d 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -428,17 +428,17 @@ static int io_zcrx_create_area(struct io_zcrx_ifq *ifq, ret = -ENOMEM; area->nia.niovs = kvmalloc_array(nr_iovs, sizeof(area->nia.niovs[0]), - GFP_KERNEL | __GFP_ZERO); + GFP_KERNEL_ACCOUNT | __GFP_ZERO); if (!area->nia.niovs) goto err; area->freelist = kvmalloc_array(nr_iovs, sizeof(area->freelist[0]), - GFP_KERNEL | __GFP_ZERO); + GFP_KERNEL_ACCOUNT | __GFP_ZERO); if (!area->freelist) goto err; area->user_refs = kvmalloc_array(nr_iovs, sizeof(area->user_refs[0]), - GFP_KERNEL | __GFP_ZERO); + GFP_KERNEL_ACCOUNT | __GFP_ZERO); if (!area->user_refs) goto err;