syzbot


general protection fault in validate_checkpoint

Status: fixed on 2018/08/28 17:48
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+c966a82db0b14aa37e81@syzkaller.appspotmail.com
Fix commit: d3f07c049dab f2fs: fix invalid memory access
First crash: 2086d, last: 2085d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.4 000/104] 4.4.172-stable review 111 (111) 2019/01/30 07:30
[PATCH 4.9 00/35] 4.9.133-stable review 46 (46) 2018/11/02 13:56
[PATCH 4.14 00/45] 4.14.76-stable review 54 (54) 2018/10/16 18:46
[PATCH 4.18 00/44] 4.18.14-stable review 49 (49) 2018/10/12 15:43
[PATCH v2] f2fs: fix invalid memory access 1 (1) 2018/08/02 14:59
[PATCH] f2fs: fix invalid memory access 3 (3) 2018/08/01 23:29
general protection fault in validate_checkpoint 0 (1) 2018/08/01 14:57

Sample crash report:
9pnet: p9_errstr2errno: server reported unknown error etz0e&?ăd
attempt to access beyond end of device
loop1: rw=12288, want=8200, limit=20
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 1 PID: 9772 Comm: syz-executor1 Not tainted 4.18.0-rc7-next-20180801+ #29
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:PageLocked include/linux/page-flags.h:272 [inline]
RIP: 0010:f2fs_put_page fs/f2fs/f2fs.h:2011 [inline]
RIP: 0010:validate_checkpoint+0x66d/0xec0 fs/f2fs/checkpoint.c:835
Code: e8 58 05 7f fe 4c 8d 6b 80 4d 8d 74 24 08 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 c6 04 02 00 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 f4 06 00 00 4c 89 ea 4d 8b 7c 24 08 48 b8 00 00
RSP: 0018:ffff88019091ebe8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88019091ef30 RCX: ffffc90002216000
RDX: 0000000000000000 RSI: ffffffff82fd9658 RDI: 0000000000000005
RBP: ffff88019091ef58 R08: ffff88019090a540 R09: fffff94000c7d1a6
R10: fffff94000c7d1a6 R11: ffffea00063e8d37 R12: fffffffffffffffb
R13: ffff88019091eeb0 R14: 0000000000000003 R15: ffff88019755c9c0
FS:  00007fc40d95e700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000021f1e80 CR3: 000000019b34c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 f2fs_get_valid_checkpoint+0x436/0x1ec0 fs/f2fs/checkpoint.c:860
 f2fs_fill_super+0x2d42/0x8110 fs/f2fs/super.c:2883
 mount_bdev+0x314/0x3e0 fs/super.c:1344
 f2fs_mount+0x3c/0x50 fs/f2fs/super.c:3133
 legacy_get_tree+0x131/0x460 fs/fs_context.c:729
 vfs_get_tree+0x1cb/0x5c0 fs/super.c:1743
 do_new_mount fs/namespace.c:2603 [inline]
 do_mount+0x6f2/0x1e20 fs/namespace.c:2927
 ksys_mount+0x12d/0x140 fs/namespace.c:3143
 __do_sys_mount fs/namespace.c:3157 [inline]
 __se_sys_mount fs/namespace.c:3154 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3154
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45943a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 bd 8a fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 9a 8a fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007fc40d95da88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc40d95db30 RCX: 000000000045943a
RDX: 00007fc40d95dad0 RSI: 0000000020000080 RDI: 00007fc40d95daf0
RBP: 0000000020000080 R08: 00007fc40d95db30 R09: 00007fc40d95dad0
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000013
R13: 0000000000000000 R14: 00000000004c8ea0 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 1d567b12f51836ab ]---
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:PageLocked include/linux/page-flags.h:272 [inline]
RIP: 0010:f2fs_put_page fs/f2fs/f2fs.h:2011 [inline]
RIP: 0010:validate_checkpoint+0x66d/0xec0 fs/f2fs/checkpoint.c:835
Code: e8 58 05 7f fe 4c 8d 6b 80 4d 8d 74 24 08 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 c6 04 02 00 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 f4 06 00 00 4c 89 ea 4d 8b 7c 24 08 48 b8 00 00
RSP: 0018:ffff88019091ebe8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88019091ef30 RCX: ffffc90002216000
RDX: 0000000000000000 RSI: ffffffff82fd9658 RDI: 0000000000000005
RBP: ffff88019091ef58 R08: ffff88019090a540 R09: fffff94000c7d1a6
R10: fffff94000c7d1a6 R11: ffffea00063e8d37 R12: fffffffffffffffb
R13: ffff88019091eeb0 R14: 0000000000000003 R15: ffff88019755c9c0
FS:  00007fc40d95e700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000021f1e80 CR3: 000000019b34c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (186):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/02 08:04 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 06:55 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 06:13 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 05:03 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 04:01 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 02:50 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 01:46 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 00:36 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 23:00 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 21:46 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 20:07 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 19:47 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 18:31 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 16:54 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 15:45 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 14:40 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 12:34 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 11:47 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 10:10 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:57 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:46 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:31 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:19 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:18 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:17 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:16 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:14 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:14 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:13 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:12 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:12 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:11 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:10 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:09 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:09 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:07 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:05 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:05 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:05 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:03 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:02 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 09:02 linux-next d9bd94c0bcaa 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.