diff options
| author | Yang Xiuwei <yangxiuwei@kylinos.cn> | 2026-07-30 09:09:09 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-08-03 20:39:39 -0600 |
| commit | ca5a01eee34c7cbe0f531a613b0292a3ad1a419b (patch) | |
| tree | 2cc4c418adfaa16801bffee5dc109905c1b2d576 /tools/perf/scripts/python/stackcollapse.py | |
| parent | a8a79eba22dc4c11f2877bcf9e8557f6d95541ac (diff) | |
ublk: validate auto buf reg before taking uring_cmd
With UBLK_F_AUTO_BUF_REG, invalid sqe->addr can fail after
ublk_fill_io_cmd() has set UBLK_IO_FLAG_ACTIVE. The uring_cmd is
completed while the tag stays active, which can hang teardown.
Split validation from buffer apply so the check has no side effects,
then take the uring_cmd and store the already-validated buffer. Apply
the same order in FETCH so io->buf is not written before __ublk_fetch()
state checks.
Fixes: 52460dda3a77 ("ublk: move auto buffer register handling into one dedicated helper")
Suggested-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
