[PATCH v2 0/3] ring-buffer: Use kvmalloc variants for big allocations

From: Vincent Donnefort

Date: Fri Nov 27 2026 - 10:13:45 EST


Several allocations in the ring buffer code scale with buffer capacity
or sub-buffer order and require high-order contiguous physical memory
when using plain kmalloc. Under memory fragmentation or with large
buffers, these allocations can fail unnecessarily.

This series converts those allocations to their kvmalloc equivalents.

Changelog:

v2:
* Drop "ring-buffer: Drop redundant ring_buffer_iter::event_size". (Steven)
* Rebase on 7.4-rc4.

v1 (https://lore.kernel.org/all/20260922072944.1281427-1-vdonnefort@xxxxxxxxxx/)

Vincent Donnefort (3):
ring-buffer: Use kvzalloc_objs for user mapping arrays
ring-buffer: Use kvzalloc_objs for remote buffer subbuf_ids
ring-buffer: Use kvmalloc for ring_buffer_iter::event

kernel/trace/ring_buffer.c | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)


base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.56.1.839.g22a8290db9-goog