linux/fs/bcachefs
Kent Overstreet e84843489c 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>
2023-11-01 21:11:07 -04:00
..
acl.c
acl.h
alloc_background.c bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
alloc_background.h
alloc_foreground.c
alloc_foreground.h
alloc_types.h
backpointers.c bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
backpointers.h
bbpos_types.h bcachefs: move: convert to bbpos 2023-10-31 12:18:37 -04:00
bbpos.h bcachefs: move: convert to bbpos 2023-10-31 12:18:37 -04:00
bcachefs_format.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
bcachefs_ioctl.h
bcachefs.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
bkey_buf.h
bkey_cmp.h
bkey_methods.c bcachefs: Fix btree_node_type enum 2023-10-31 12:18:37 -04:00
bkey_methods.h bcachefs: All triggers are BTREE_TRIGGER_WANTS_OLD_AND_NEW 2023-10-31 12:18:37 -04:00
bkey_sort.c
bkey_sort.h
bkey.c
bkey.h
bset.c
bset.h
btree_cache.c bcachefs: Fix shrinker names 2023-10-31 12:18:37 -04:00
btree_cache.h bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
btree_gc.c bcachefs: Fix ca->oldest_gen allocation 2023-10-31 12:18:37 -04:00
btree_gc.h
btree_io.c bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
btree_io.h
btree_iter.c bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
btree_iter.h bcachefs: Fix btree_node_type enum 2023-10-31 12:18:37 -04:00
btree_journal_iter.c
btree_journal_iter.h
btree_key_cache.c bcachefs: Fix shrinker names 2023-10-31 12:18:37 -04:00
btree_key_cache.h
btree_locking.c
btree_locking.h
btree_trans_commit.c bcachefs: All triggers are BTREE_TRIGGER_WANTS_OLD_AND_NEW 2023-10-31 12:18:37 -04:00
btree_types.h bcachefs: Fix btree_node_type enum 2023-10-31 12:18:37 -04:00
btree_update_interior.c
btree_update_interior.h
btree_update.c
btree_update.h
btree_write_buffer_types.h
btree_write_buffer.c
btree_write_buffer.h
buckets_types.h
buckets_waiting_for_journal_types.h
buckets_waiting_for_journal.c
buckets_waiting_for_journal.h
buckets.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
buckets.h bcachefs: All triggers are BTREE_TRIGGER_WANTS_OLD_AND_NEW 2023-10-31 12:18:37 -04:00
chardev.c bcachefs: move: convert to bbpos 2023-10-31 12:18:37 -04:00
chardev.h
checksum.c
checksum.h
clock_types.h
clock.c
clock.h
compress.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
compress.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
counters.c
counters.h
darray.h
data_update.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
data_update.h bcachefs: move: convert to bbpos 2023-10-31 12:18:37 -04:00
debug.c bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
debug.h
dirent.c
dirent.h
disk_groups_types.h bcachefs: bch2_disk_path_to_text() no longer takes sb_lock 2023-10-31 12:18:37 -04:00
disk_groups.c bcachefs: bch2_disk_path_to_text() no longer takes sb_lock 2023-10-31 12:18:37 -04:00
disk_groups.h bcachefs: bch2_disk_path_to_text() no longer takes sb_lock 2023-10-31 12:18:37 -04:00
ec_types.h
ec.c
ec.h
errcode.c
errcode.h bcachefs: Guard against unknown compression options 2023-10-31 12:18:37 -04:00
error.c
error.h
extent_update.c
extent_update.h
extents_types.h
extents.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
extents.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
eytzinger.h
fifo.h
fs-common.c
fs-common.h
fs-io-buffered.c
fs-io-buffered.h
fs-io-direct.c
fs-io-direct.h
fs-io-pagecache.c
fs-io-pagecache.h
fs-io.c
fs-io.h
fs-ioctl.c
fs-ioctl.h
fs.c
fs.h
fsck.c bcachefs: Check for too-large encoded extents 2023-10-31 12:18:37 -04:00
fsck.h bcachefs: Check for too-large encoded extents 2023-10-31 12:18:37 -04:00
inode.c bcachefs: bch2_inum_opts_get() 2023-10-31 12:18:38 -04:00
inode.h bcachefs: bch2_inum_opts_get() 2023-10-31 12:18:38 -04:00
io_misc.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
io_misc.h
io_read.c
io_read.h
io_write_types.h
io_write.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
io_write.h
journal_io.c bcachefs: bch2_btree_id_str() 2023-10-31 12:18:37 -04:00
journal_io.h
journal_reclaim.c
journal_reclaim.h
journal_sb.c
journal_sb.h
journal_seq_blacklist.c
journal_seq_blacklist.h
journal_types.h
journal.c bcachefs: Ensure devices are always correctly initialized 2023-10-31 12:18:37 -04:00
journal.h bcachefs: Ensure devices are always correctly initialized 2023-10-31 12:18:37 -04:00
Kconfig
keylist_types.h
keylist.c
keylist.h
logged_ops.c
logged_ops.h
lru.c
lru.h
Makefile
mean_and_variance_test.c
mean_and_variance.c
mean_and_variance.h
migrate.c
migrate.h
move_types.h bcachefs: move: move_stats refactoring 2023-10-31 12:18:38 -04:00
move.c bcachefs: move: move_stats refactoring 2023-10-31 12:18:38 -04:00
move.h bcachefs: move: move_stats refactoring 2023-10-31 12:18:38 -04:00
movinggc.c bcachefs: move: move_stats refactoring 2023-10-31 12:18:38 -04:00
movinggc.h
nocow_locking_types.h
nocow_locking.c
nocow_locking.h
opts.c bcachefs: Guard against unknown compression options 2023-10-31 12:18:37 -04:00
opts.h bcachefs: Guard against unknown compression options 2023-10-31 12:18:37 -04:00
printbuf.c bcachefs: Fix bch2_prt_bitflags() 2023-10-31 12:18:37 -04:00
printbuf.h
quota_types.h
quota.c
quota.h
rebalance_types.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
rebalance.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
rebalance.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
recovery_types.h bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
recovery.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
recovery.h
reflink.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
reflink.h
replicas_types.h
replicas.c
replicas.h
sb-clean.c
sb-clean.h
sb-members.c bcachefs: Fix kasan splat in members_v1_get() 2023-11-01 21:11:07 -04:00
sb-members.h
seqmutex.h
siphash.c
siphash.h
six.c six locks: Lock contended tracepoints 2023-10-30 22:26:45 -04:00
six.h
snapshot.c bcachefs: Don't run bch2_delete_dead_snapshots() unnecessarily 2023-10-31 12:18:37 -04:00
snapshot.h bcachefs: Don't run bch2_delete_dead_snapshots() unnecessarily 2023-10-31 12:18:37 -04:00
str_hash.h
subvolume_types.h
subvolume.c bcachefs: Don't run bch2_delete_dead_snapshots() unnecessarily 2023-10-31 12:18:37 -04:00
subvolume.h
super_types.h bcachefs: Split out disk_groups_types.h 2023-10-31 12:18:37 -04:00
super-io.c
super-io.h
super.c bcachefs: Fix a kasan splat in bch2_dev_add() 2023-11-01 21:11:07 -04:00
super.h
sysfs.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
sysfs.h
tests.c
tests.h
trace.c bcachefs: move: move_stats refactoring 2023-10-31 12:18:38 -04:00
trace.h bcachefs: move: move_stats refactoring 2023-10-31 12:18:38 -04:00
two_state_shared_lock.c
two_state_shared_lock.h
util.c
util.h
varint.c
varint.h
vstructs.h
xattr.c bcachefs: rebalance_work 2023-11-01 21:11:05 -04:00
xattr.h