summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2026-07-27 22:27:07 +0200
committerMikulas Patocka <mpatocka@redhat.com>2026-07-27 22:27:07 +0200
commit5380c7f6335cc6d77eb77d065105e81155c4d9d3 (patch)
tree279c5be2f3718e03699ca94b8f60f5b898a54686 /tools/perf/scripts/python
parent44b43ec132f1cf3275ecc182d0c82f50c3c4c3d5 (diff)
dm: fix race when loading and unloading a table
If the userspace calls two concurrent table load ioctls and one of them succeeds and the other fails, there is a race condition because dm_setup_md_queue walks &md->table_devices without any lock. If the walk races with dm_table_destroy -> free_devices -> dm_put_table_device, there is access to invalid memory. Fix this race by extending the lock over the list walk. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions