diff options
| author | Kent Overstreet <[email protected]> | 2023-10-26 21:00:36 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-11-02 01:11:07 +0000 |
| commit | e84843489c15bf9d39eec3a9a95870f98a71ac24 (patch) | |
| tree | b7455d729872ef95a438e9001b8dabb16d17c8cc /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Fix kasan splat in members_v1_get() (diff) | |
| download | kernel-e84843489c15bf9d39eec3a9a95870f98a71ac24.tar.gz kernel-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 <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
