linux/fs/f2fs
Eric Biggers c919330dd5 f2fs: fix double free of f2fs_sb_info
kill_f2fs_super() is called even if f2fs_fill_super() fails.
f2fs_fill_super() frees the struct f2fs_sb_info, so it must set
sb->s_fs_info to NULL to prevent it from being freed again.

Fixes: 275dca4630 ("f2fs: move release of block devices to after kill_block_super()")
Reported-by:  <syzbot+8f477ac014ff5b32d81f@syzkaller.appspotmail.com>
Closes: https://lore.kernel.org/lkml/0000000000006cb174060ec34502@google.com
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/linux-f2fs-devel/20240113005747.38887-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
2024-01-12 18:55:09 -08:00
..
acl.c
acl.h
checkpoint.c
compress.c f2fs update for 6.8-rc1 2024-01-11 20:39:15 -08:00
data.c f2fs update for 6.8-rc1 2024-01-11 20:39:15 -08:00
debug.c
dir.c
extent_cache.c
f2fs.h f2fs: introduce f2fs_invalidate_internal_cache() for cleanup 2023-12-11 13:34:55 -08:00
file.c f2fs update for 6.8-rc1 2024-01-11 20:39:15 -08:00
gc.c f2fs: Add error handling for negative returns from do_garbage_collect 2023-12-26 13:06:40 -08:00
gc.h
hash.c
inline.c
inode.c f2fs update for 6.8-rc1 2024-01-11 20:39:15 -08:00
iostat.c
iostat.h
Kconfig
Makefile
namei.c f2fs update for 6.8-rc1 2024-01-11 20:39:15 -08:00
node.c f2fs: fix to check return value of f2fs_recover_xattr_data 2023-12-15 15:09:17 -08:00
node.h
recovery.c f2fs: fix write pointers on zoned device after roll forward 2023-12-04 17:18:00 -08:00
segment.c f2fs: Use wait_event_freezable_timeout() for freezable kthread 2023-12-26 13:05:56 -08:00
segment.h
shrinker.c
super.c f2fs: fix double free of f2fs_sb_info 2024-01-12 18:55:09 -08:00
sysfs.c f2fs: show more discard status by sysfs 2023-12-26 13:07:26 -08:00
verity.c
xattr.c f2fs: fix to check return value of f2fs_recover_xattr_data 2023-12-15 15:09:17 -08:00
xattr.h