Chao Yu
4250fe65b2
f2fs: fix shift-out-of-bounds in sanity_check_raw_super()
...
commit e584bbe821229a3e7cc409eecd51df66f9268c21 upstream.
syzbot reported a bug which could cause shift-out-of-bounds issue,
fix it.
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x107/0x163 lib/dump_stack.c:120
ubsan_epilogue+0xb/0x5a lib/ubsan.c:148
__ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:395
sanity_check_raw_super fs/f2fs/super.c:2812 [inline]
read_raw_super_block fs/f2fs/super.c:3267 [inline]
f2fs_fill_super.cold+0x16c9/0x16f6 fs/f2fs/super.c:3519
mount_bdev+0x34d/0x410 fs/super.c:1366
legacy_get_tree+0x105/0x220 fs/fs_context.c:592
vfs_get_tree+0x89/0x2f0 fs/super.c:1496
do_new_mount fs/namespace.c:2896 [inline]
path_mount+0x12ae/0x1e70 fs/namespace.c:3227
do_mount fs/namespace.c:3240 [inline]
__do_sys_mount fs/namespace.c:3448 [inline]
__se_sys_mount fs/namespace.c:3425 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3425
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Reported-by: syzbot+ca9a785f8ac472085994@syzkaller.appspotmail.com
Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-06 14:48:38 +01:00
..
2020-11-05 11:43:34 +01:00
2019-07-19 11:33:22 -07:00
2020-09-09 19:12:34 +02:00
2020-12-30 11:50:54 +01:00
2019-10-25 00:03:11 -04:00
2019-08-30 07:27:17 -07:00
2019-08-30 07:27:17 -07:00
2021-01-06 14:48:36 +01:00
2020-11-05 11:43:36 +01:00
2020-12-30 11:51:40 +01:00
2020-12-30 11:51:40 +01:00
2019-09-19 09:42:37 -07:00
2020-05-27 17:46:30 +02:00
2019-11-23 21:44:49 -05:00
2021-01-06 14:48:35 +01:00
2020-09-17 13:47:55 +02:00
2019-09-03 09:30:56 -04:00
2020-10-29 09:58:03 +01:00
2020-02-28 17:22:26 +01:00
2020-12-02 08:49:53 +01:00
2019-08-30 07:27:17 -07:00
2020-12-30 11:51:23 +01:00
2019-11-10 11:56:05 -05:00
2020-09-09 19:12:30 +02:00
2021-01-06 14:48:36 +01:00
2021-01-06 14:48:38 +01:00
2020-06-17 16:40:36 +02:00
2019-08-30 07:27:17 -07:00
2019-07-10 18:43:43 -07:00
2020-11-01 12:01:05 +01:00
2020-12-11 13:23:32 +01:00
2020-04-17 10:50:22 +02:00
2019-08-30 08:11:25 -07:00
2020-09-03 11:26:48 +02:00
2020-10-29 09:58:06 +01:00
2019-09-19 09:42:37 -07:00
2020-11-18 19:20:30 +01:00
2021-01-06 14:48:37 +01:00
2020-12-30 11:51:40 +01:00
2020-08-19 08:16:12 +02:00
2020-12-30 11:51:16 +01:00
2020-08-21 13:05:37 +02:00
2020-12-30 11:51:16 +01:00
2020-12-30 11:51:22 +01:00
2020-12-30 11:51:22 +01:00
2020-06-17 16:40:29 +02:00
2020-06-17 16:40:24 +02:00
2020-10-29 09:58:03 +01:00
2020-11-18 19:20:30 +01:00
2019-08-30 08:11:25 -07:00
2019-07-19 10:42:02 -07:00
2020-08-21 13:05:29 +02:00
2020-07-22 09:33:12 +02:00
2020-12-16 10:56:58 +01:00
2020-08-19 08:16:27 +02:00
2019-08-30 07:27:17 -07:00
2019-08-30 07:27:17 -07:00
2020-12-30 11:51:00 +01:00
2020-10-29 09:57:53 +01:00
2021-01-06 14:48:38 +01:00
2020-08-26 10:40:51 +02:00
2019-09-19 10:06:57 -07:00
2019-07-19 10:42:02 -07:00
2019-08-30 07:27:18 -07:00
2019-10-12 20:49:07 -04:00
2021-01-06 14:48:35 +01:00
2020-11-05 11:43:29 +01:00
2020-08-21 13:05:37 +02:00
2019-09-17 11:48:24 -04:00
2019-08-12 19:33:50 -07:00
2020-11-24 13:29:18 +01:00
2020-06-17 16:40:24 +02:00
2019-07-19 10:42:02 -07:00
2020-02-11 04:35:12 -08:00
2020-06-03 08:21:27 +02:00
2020-09-03 11:26:39 +02:00
2019-07-19 10:42:02 -07:00
2020-10-01 13:17:55 +02:00
2020-11-05 11:43:24 +01:00
2020-01-14 20:08:18 +01:00
2020-01-09 10:20:05 +01:00
2020-12-11 13:23:30 +01:00
2020-10-29 09:57:45 +01:00
2020-03-05 16:43:36 +01:00
2020-10-01 13:17:19 +02:00
2019-10-14 15:04:01 -07:00
2020-01-12 12:21:37 +01:00
2020-02-11 04:35:37 -08:00
2020-10-07 08:01:31 +02:00
2020-11-05 11:43:13 +01:00
2019-08-07 21:51:47 -04:00
2019-08-19 11:00:39 -04:00
2020-05-27 17:46:12 +02:00
2020-04-17 10:50:21 +02:00
2019-09-06 21:28:49 +02:00
2019-09-12 21:06:14 -04:00
2019-07-16 22:52:37 -04:00
2020-09-03 11:27:04 +02:00
2019-07-19 10:42:02 -07:00
2020-03-25 08:25:58 +01:00
2020-01-17 19:48:21 +01:00
2020-10-14 10:32:57 +02:00
2019-12-17 19:55:30 +01:00
2019-09-18 16:59:14 -07:00
2020-11-24 13:29:19 +01:00
2020-03-25 08:25:41 +01:00
2019-09-18 16:59:14 -07:00
2019-07-16 22:52:37 -04:00
2020-01-17 19:48:21 +01:00
2020-03-05 16:43:48 +01:00
2019-10-16 23:15:09 -04:00
2020-03-18 07:17:51 +01:00
2020-05-02 08:48:44 +02:00
2019-09-06 21:28:49 +02:00
2020-02-11 04:35:23 -08:00
2020-01-29 16:45:31 +01:00
2019-07-16 19:23:25 -07:00
2019-08-13 16:06:52 -07:00
2020-08-26 10:40:58 +02:00
2019-12-17 19:56:52 +01:00
2019-10-03 14:21:35 -07:00
2020-11-24 13:29:01 +01:00
2019-08-01 20:51:23 +02:00
2020-01-04 19:18:32 +01:00
2020-02-11 04:35:12 -08:00
2020-08-11 15:33:39 +02:00