diff options
| author | Yaohan Li <shunsheng1218@gmail.com> | 2026-11-04 17:15:42 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-05 20:21:18 +0100 |
| commit | c4965effbe15f837a8089e79c0fc17ab19363cce (patch) | |
| tree | d6be08d304249456e09480aaa8e06e8536abeb0b /tools/perf/scripts/python | |
| parent | 406d576cc457203cf86eac7f17839b2efec81db4 (diff) | |
dm: avoid double-dropping the zone reset submission reference
On an error in __send_zone_reset_all(), the submission reference
held by the dm_io can be decremented there and again by the caller's
error path. If another clone is still outstanding, the second drop
can release the dm_io before that clone completes.
Only drop the submission reference in __send_zone_reset_all() on
success. On failure, leave the reference for the caller's existing
error handling to release once.
The error path was reproduced under KASAN with an injected GFP_NOIO
allocation failure while another zone-reset clone remained in
flight. With the change, the same failure was reported normally,
without the observed use-after-free, and ordinary zone resets
continued to work.
Fixes: 81e7706345f06 ("dm: handle REQ_OP_ZONE_RESET_ALL")
Cc: stable@vger.kernel.org
Assisted-by: ZCode:GLM-4
Signed-off-by: Yaohan Li <shunsheng1218@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
