summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2026-08-24 18:47:58 +0200
committerDavid Sterba <dsterba@suse.com>2026-09-07 18:35:48 +0200
commit776924b2d9c451fc9dcc40673d17ff255bbc0fef (patch)
treef1d248c1a586eda3ddcdac1824b4fc670998bb42 /scripts/Makefile.thinlto
parent6a7a45b1d94799a5eb8e6d26e65cf31a3fcda9e5 (diff)
downloadlinux-stable-776924b2d9c451fc9dcc40673d17ff255bbc0fef.tar.gz
linux-stable-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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions