Commit 5f2a8a7
ring-buffer: Fix buffer locking in ring_buffer_subbuf_order_set()
BugLink: https://bugs.launchpad.net/bugs/2119603
commit 40ee2afafc1d9fe3aa44a6fbe440d78a5c96a72e upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CVE-2025-38101
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>1 parent 35841b6 commit 5f2a8a7
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6716 | 6716 | | |
6717 | 6717 | | |
6718 | 6718 | | |
6719 | | - | |
| 6719 | + | |
6720 | 6720 | | |
6721 | 6721 | | |
6722 | 6722 | | |
| |||
6821 | 6821 | | |
6822 | 6822 | | |
6823 | 6823 | | |
6824 | | - | |
6825 | 6824 | | |
6826 | 6825 | | |
6827 | 6826 | | |
| |||
6830 | 6829 | | |
6831 | 6830 | | |
6832 | 6831 | | |
6833 | | - | |
6834 | 6832 | | |
6835 | 6833 | | |
6836 | 6834 | | |
| |||
0 commit comments