summaryrefslogtreecommitdiff
path: root/scripts/dummy-tools/python3
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-08-06 22:13:02 +0100
committerSteven Rostedt <rostedt@goodmis.org>2026-08-08 22:23:45 -0400
commitbf98d7b0d5a99991e47e66cee4eb1d3fa514be97 (patch)
treed7a3d1a878959b3a450e537ff8271db1716d8b22 /scripts/dummy-tools/python3
parent7c727dfce6be04dd009b29091a4a17d952dbfe03 (diff)
ring-buffer: Prevent subbuf order change when resizing is disabled
Because ring_buffer_subbuf_order_set() frees buffer pages, we can't allow it when resizing is disabled. A non-consuming reader is at risk of use-after-free (rb_advance_iter()). Return -EBUSY on resize_disabled, matching ring_buffer_resize() behaviour. Cc: stable@vger.kernel.org Fixes: f9b94daa542a ("ring-buffer: Set new size of the ring buffer sub page") Link: https://patch.msgid.link/20260806211306.3704194-3-vdonnefort@google.com Reported-by: syzbot+e0cc44465d6bae735679@syzkaller.appspotmail.com Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions