diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2026-08-24 18:47:58 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-09-07 18:35:48 +0200 |
| commit | 776924b2d9c451fc9dcc40673d17ff255bbc0fef (patch) | |
| tree | f1d248c1a586eda3ddcdac1824b4fc670998bb42 /scripts | |
| parent | 6a7a45b1d94799a5eb8e6d26e65cf31a3fcda9e5 (diff) | |
| download | linux-776924b2d9c451fc9dcc40673d17ff255bbc0fef.tar.gz linux-776924b2d9c451fc9dcc40673d17ff255bbc0fef.zip | |
btrfs: set space_info before adding new free space in btrfs_make_block_group()
btrfs_make_block_group() calls btrfs_add_new_free_space() before
assigning cache->space_info. On a zoned filesystem that ends up in
__btrfs_add_free_space_zoned(), which dereferences
block_group->space_info and thus hits a NULL pointer dereference when a
non-initial free space range is added (e.g. during relocation).
Assign cache->space_info before the btrfs_add_new_free_space() call.
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
