Commit 2ab9d83
perf/aux: Fix AUX buffer serialization
Ole reported that event->mmap_mutex is strictly insufficient to
serialize the AUX buffer, add a per RB mutex to fully serialize it.
Note that in the lock order comment the perf_event::mmap_mutex order
was already wrong, that is, it nesting under mmap_lock is not new with
this patch.
Fixes: 45bfb2e ("perf: Add AUX area to ring buffer for raw data streams")
Reported-by: Ole <ole@binarygecko.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent e240b0f commit 2ab9d83
3 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
1258 | | - | |
1259 | 1258 | | |
| 1259 | + | |
| 1260 | + | |
1260 | 1261 | | |
1261 | 1262 | | |
1262 | 1263 | | |
| |||
6373 | 6374 | | |
6374 | 6375 | | |
6375 | 6376 | | |
6376 | | - | |
6377 | | - | |
6378 | | - | |
| 6377 | + | |
| 6378 | + | |
6379 | 6379 | | |
6380 | 6380 | | |
6381 | | - | |
| 6381 | + | |
6382 | 6382 | | |
6383 | 6383 | | |
6384 | 6384 | | |
| |||
6395 | 6395 | | |
6396 | 6396 | | |
6397 | 6397 | | |
6398 | | - | |
| 6398 | + | |
6399 | 6399 | | |
6400 | 6400 | | |
6401 | 6401 | | |
| |||
6483 | 6483 | | |
6484 | 6484 | | |
6485 | 6485 | | |
| 6486 | + | |
6486 | 6487 | | |
6487 | 6488 | | |
6488 | 6489 | | |
| |||
6531 | 6532 | | |
6532 | 6533 | | |
6533 | 6534 | | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
6534 | 6538 | | |
6535 | 6539 | | |
6536 | 6540 | | |
| |||
6681 | 6685 | | |
6682 | 6686 | | |
6683 | 6687 | | |
| 6688 | + | |
| 6689 | + | |
6684 | 6690 | | |
6685 | 6691 | | |
6686 | 6692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
0 commit comments