diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 17:17:16 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-12 19:16:22 +0200 |
| commit | 886f1aa6e6b30a02901aa7f140149d466e10a873 (patch) | |
| tree | 04cfb757e8d63d1b51294af8674044e40147f027 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 057e3c350a9185df598c88b4081168ed047c9247 (diff) | |
| download | linux-886f1aa6e6b30a02901aa7f140149d466e10a873.tar.gz linux-886f1aa6e6b30a02901aa7f140149d466e10a873.zip | |
btrfs: zoned: fix block group reference leak in btrfs_repair_one_zone()
btrfs_repair_one_zone() hands the block group reference taken by
btrfs_lookup_block_group() over to relocating_repair_kthread(), which
drops it. However the return value of kthread_run() is not checked, so
when the kernel thread fails to spawn, nothing executes the put and the
block group reference is leaked.
Check kthread_run() and drop the reference if the thread failed to
start.
Fixes: f7ef5287a63d ("btrfs: zoned: relocate block group to repair IO failure in zoned filesystems")
CC: stable@vger.kernel.org
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
