aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDmitriy Vyukov <[email protected]>2015-09-08 10:52:44 +0200
committerJeff Kirsher <[email protected]>2015-12-12 23:09:48 -0800
commit9eab46b7cb8d0b0dcf014bf7b25e0e72b9e4d929 (patch)
tree33d44739cb702dddf3d371285c3ff4b24f134c7e /tools/perf/scripts/python
parent18f7ce5412027232890143ccfae23668d0872d27 (diff)
e1000: fix data race between tx_ring->next_to_clean
e1000_clean_tx_irq cleans buffers and sets tx_ring->next_to_clean, then e1000_xmit_frame reuses the cleaned buffers. But there are no memory barriers when buffers gets recycled, so the recycled buffers can be corrupted. Use smp_store_release to update tx_ring->next_to_clean and smp_load_acquire to read tx_ring->next_to_clean to properly hand off buffers from e1000_clean_tx_irq to e1000_xmit_frame. The data race was found with KernelThreadSanitizer (KTSAN). Signed-off-by: Dmitry Vyukov <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions