summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorZihan Xi <zihanx@nebusec.ai>2026-09-16 15:29:28 +0000
committerPaulo Alcantara <pc@manguebit.org>2026-09-21 21:40:17 -0300
commit6c5c547f037bc18f0b8d0b5db5a648f8f630ce85 (patch)
tree93ea5f5f1503e42039e26152d783fba127683ff8 /tools/perf/scripts/python/bin/stackcollapse-report
parentd2ff5fb93ea83034025850266b5eed391f96b825 (diff)
downloadlinux-next-6c5c547f037bc18f0b8d0b5db5a648f8f630ce85.tar.gz
linux-next-6c5c547f037bc18f0b8d0b5db5a648f8f630ce85.zip
smb: client: close completed creates on compound wait errors
compound_send_recv() waits for responses in order. If a later wait is interrupted, or if a later MID fails during response synchronization, an earlier CREATE may already have opened a remote handle. The earlier mid is then released without invoking handle_cancelled_mid(), leaving the remote handle open because no FID was copied to the caller. Mark completed earlier mids as cancelled when a compound wait or MID synchronization aborts. Keep their response buffers attached while the MIDs are synchronized, and transfer them only after synchronization of the processed responses, so the release path can inspect successful CREATE responses and queue SMB2_close() after a later failure. Account for a remote open only after the close work is allocated and before it is queued, since the caller has not yet updated num_remote_opens. Mark the create+close compound used by smb2_unlink() so it is not closed again. Non-CREATE responses and compounds that already include a close keep their existing behavior. Fixes: e0bba0b85481 ("cifs: add compound_send_recv()") Cc: stable@vger.kernel.org Reported-by: Vega <vega@nebusec.ai> Assisted-by: LLM Co-developed-by: Luxing Yin <root@tr0jan.top> Signed-off-by: Luxing Yin <root@tr0jan.top> Signed-off-by: Zihan Xi <zihanx@nebusec.ai> Tested-by: Frank Sorenson <sorenson@redhat.com> Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions