Commit 40ee2af
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: syzbot+05d673e83ec640f0ced9@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=05d673e83ec640f0ced9
Fixes: f9b94da ("ring-buffer: Set new size of the ring buffer sub page")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent a9d0aab commit 40ee2af
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6795 | 6795 | | |
6796 | 6796 | | |
6797 | 6797 | | |
6798 | | - | |
| 6798 | + | |
6799 | 6799 | | |
6800 | 6800 | | |
6801 | 6801 | | |
| |||
6900 | 6900 | | |
6901 | 6901 | | |
6902 | 6902 | | |
6903 | | - | |
6904 | 6903 | | |
6905 | 6904 | | |
6906 | 6905 | | |
| |||
6909 | 6908 | | |
6910 | 6909 | | |
6911 | 6910 | | |
6912 | | - | |
6913 | 6911 | | |
6914 | 6912 | | |
6915 | 6913 | | |
| |||
0 commit comments