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: 275dca4630c1 ("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
..
2023-11-04 09:20:04 -10:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:11:35 -08:00
2024-01-10 16:34:17 -08:00
2024-01-11 13:58:04 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:11:35 -08:00
2023-10-30 09:47:13 -10:00
2023-11-07 12:11:26 -08:00
2023-11-03 22:24:11 +09:00
2023-11-07 12:11:26 -08:00
2024-01-08 11:11:51 -08:00
2024-01-10 10:17:23 -08:00
2023-12-29 11:58:34 -08:00
2023-11-03 15:15:47 -10:00
2024-01-10 17:44:36 -08:00
2024-01-10 17:44:36 -08:00
2024-01-11 20:11:35 -08:00
2024-01-10 17:44:36 -08:00
2023-11-07 12:11:26 -08:00
2024-01-11 20:11:35 -08:00
2024-01-10 17:44:36 -08:00
2023-10-30 09:47:13 -10:00
2024-01-11 20:27:41 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 10:07:29 -08:00
2024-01-10 17:44:36 -08:00
2024-01-10 17:44:36 -08:00
2023-12-21 13:17:54 +01:00
2023-10-30 19:28:19 -10:00
2023-10-30 19:28:19 -10:00
2024-01-11 20:11:35 -08:00
2024-01-10 17:44:36 -08:00
2024-01-11 20:11:35 -08:00
2023-12-12 14:24:14 +01:00
2023-10-30 09:14:19 -10:00
2024-01-11 20:00:22 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:00:22 -08:00
2024-01-10 17:44:36 -08:00
2023-11-25 02:49:43 -05:00
2024-01-08 11:11:51 -08:00
2024-01-10 17:44:36 -08:00
2024-01-08 10:57:34 -08:00
2024-01-10 10:24:49 -08:00
2024-01-10 17:44:36 -08:00