Skip to content
Commit 40ee2afa authored by Dmitry Antipov's avatar Dmitry Antipov Committed by Steven Rostedt (Google)
Browse files

ring-buffer: Fix buffer locking in ring_buffer_subbuf_order_set()

Enlarge the critical section in ring_buffer_subbuf_order_set() to
ensure that error handling takes place with per-buffer mutex held,
thus preventing list corruption and other concurrency-related issues.

Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
Link: https://lore.kernel.org/20250606112242.1510605-1-dmantipov@yandex.ru


Reported-by: default avatar <syzbot+05d673e83ec640f0ced9@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=05d673e83ec640f0ced9


Fixes: f9b94daa ("ring-buffer: Set new size of the ring buffer sub page")
Signed-off-by: default avatarDmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent a9d0aab5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment