diff options
| author | Fan Wu <fanwu01@zju.edu.cn> | 2026-09-22 08:13:18 +0000 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-10-16 12:17:08 +0200 |
| commit | e7ccc777a040343b80f95f4cc5c12ce1df3187f4 (patch) | |
| tree | 35300b3987aa18084678799fc5b5b6c84581c674 /tools/lib/python | |
| parent | 15c20483d91589f868fe7a72aec4b97dc68b931b (diff) | |
virtio_fs: read the vring size under virtio_fs_mutex in ->get_tree
The vring size was read after virtio_fs_find_instance() had dropped
virtio_fs_mutex, so a concurrent virtio_fs_remove() could free the
virtqueue first. The reference from the lookup keeps the virtio_fs
alive, but not its virtqueues.
Hold the mutex across the lookup and the read.
This issue was found by an in-house static analysis tool.
Fixes: a7f0d7aab0b4 ("virtiofs: split requests that exceed virtqueue size")
Cc: stable@vger.kernel.org
Assisted-by: Codex:gpt-5.6
Co-developed-by: Song Li <songl@zju.edu.cn>
Signed-off-by: Song Li <songl@zju.edu.cn>
Signed-off-by: Fan Wu <fanwu01@zju.edu.cn>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
