summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/snapshot.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-10-26 17:00:36 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-01 21:11:07 -0400
commite84843489c15bf9d39eec3a9a95870f98a71ac24 (patch)
treeb7455d729872ef95a438e9001b8dabb16d17c8cc /fs/bcachefs/snapshot.c
parent5c1ab40e76dd873bfbfbe4df98ca3e08de31d30d (diff)
downloadlinux-stable-e84843489c15bf9d39eec3a9a95870f98a71ac24.tar.gz
linux-stable-e84843489c15bf9d39eec3a9a95870f98a71ac24.tar.bz2
linux-stable-e84843489c15bf9d39eec3a9a95870f98a71ac24.zip
bcachefs: Fix a kasan splat in bch2_dev_add()
This fixes a use after free - mi is dangling after the resize call. Additionally, resizing the device's member info section was useless - we were attempting to preallocate the space required before adding it to the filesystem superblock, but there's other sections that we should have been preallocating as well for that to work. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.c')
0 files changed, 0 insertions, 0 deletions