summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorChristian Aurich Zanettini Martins <christian.aurichzm@gmail.com>2026-11-04 19:25:58 -0300
committerSteven Rostedt <rostedt@goodmis.org>2026-11-18 10:26:07 -0500
commit63714f698ffa52563a8978636c2e05929736b608 (patch)
tree10ce7175e88b443f8783c76995025591860bede9 /rust/kernel/alloc/kvec/errors.rs
parentaebb7274476403040d582c61478df8f4a7bf9cd3 (diff)
ring-buffer: Do not WARN when trace_rb_cpu_prepare() fails to allocate
Creating a tracing instance allocates the buffers of the other CPUs through trace_rb_cpu_prepare(), which WARNs if the allocation fails. But __rb_allocate_pages() bails out on purpose when si_mem_available() is too low or the task gets killed, so a mkdir in instances/ with a large trace_buf_size is enough to trigger it: WARNING: kernel/trace/ring_buffer.c:8094 at trace_rb_cpu_prepare+0xf1/0x100 The same failure for the current CPU, or in ring_buffer_resize(), just returns -ENOMEM. Use pr_warn() here instead. Link: https://patch.msgid.link/20261104222558.863948-1-christian.aurichzm@gmail.com Fixes: b32614c03413 ("tracing/rb: Convert to hotplug state machine") Reported-by: syzbot+fbe07bcf949966f3c00f@syzkaller.appspotmail.com Closes: https://lore.kernel.org/all/6a707c4f.13bfb6d0.1ecdd5.027e.GAE@google.com/ Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions