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/kbuf: account ring io_buffer_list memory

Follow the non-ringed pbuf struct io_buffer_list allocations and account
it against the memcg. There is low chance of that being an actual
problem as ring provided buffer should either pin user memory or
allocate it, which is already accounted.

Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3985218b50d341273cafff7234e1a7e6d0db9808.1747150490.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
475a8d30 8fb7aee0

+1 -1
+1 -1
io_uring/kbuf.c
··· 621 621 io_destroy_bl(ctx, bl); 622 622 } 623 623 624 - free_bl = bl = kzalloc(sizeof(*bl), GFP_KERNEL); 624 + free_bl = bl = kzalloc(sizeof(*bl), GFP_KERNEL_ACCOUNT); 625 625 if (!bl) 626 626 return -ENOMEM; 627 627