diff options
| author | Dawei Li <[email protected]> | 2022-11-04 16:05:36 +0000 |
|---|---|---|
| committer | Sumit Semwal <[email protected]> | 2022-11-22 12:57:56 +0000 |
| commit | 432e25902b9651622578c6248e549297d03caf66 (patch) | |
| tree | bf5e6a786ea8732887a9353820ae872fc8cefef2 /tools/perf/scripts/python/futex-contention.py | |
| parent | dma-buf: Use dma_fence_unwrap_for_each when importing fences (diff) | |
| download | kernel-432e25902b9651622578c6248e549297d03caf66.tar.gz kernel-432e25902b9651622578c6248e549297d03caf66.zip | |
dma-buf: fix racing conflict of dma_heap_add()
Racing conflict could be:
task A task B
list_for_each_entry
strcmp(h->name))
list_for_each_entry
strcmp(h->name)
kzalloc kzalloc
...... .....
device_create device_create
list_add
list_add
The root cause is that task B has no idea about the fact someone
else(A) has inserted heap with same name when it calls list_add,
so a potential collision occurs.
Fixes: c02a81fba74f ("dma-buf: Add dma-buf heaps framework")
Signed-off-by: Dawei Li <[email protected]>
Acked-by: Andrew Davis <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Sumit Semwal <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/TYCP286MB2323873BBDF88020781FB986CA3B9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions
