summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2026-07-27 22:26:36 +0200
committerMikulas Patocka <mpatocka@redhat.com>2026-07-27 22:26:36 +0200
commit44b43ec132f1cf3275ecc182d0c82f50c3c4c3d5 (patch)
tree928f1a00e09172d72e50276c061d0cc43a347add /tools/perf/scripts/python/stackcollapse.py
parenta46fd918f7907ecdfd1b1d03210463eef80f0def (diff)
dm: fix resume-vs-remove race
If the user issues the resume ioctl and the remove ioctl at the same time, it may be possible that the device is resumed after it is suspended in __dm_destroy. The result is that the table is destroyed without calling the postsuspend method. Dm targets expect that they may be removed only after the postsuspend method method was called. If we break this expectation, it can cause misbehavior in various targets. For example - in the dm-integrity target, the reboot notifier is not unregistered, leading to use-after-free. Fix this bug by refusing to resume if the device is being destroyed. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions