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: [email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Tzvetomir Stoyanov <[email protected]>
Link: https://lore.kernel.org/[email protected]
Reported-by: [email protected]
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 <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent a9d0aab commit 40ee2af
1 file changed
+1
-3
lines changed| 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