syzbot


kernel BUG at fs/f2fs/segment.h:LINE!

Status: fixed on 2020/11/16 12:12
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+3698081bcf0bb2d12174@syzkaller.appspotmail.com
Fix commit: 6a257471fa42 f2fs: fix to check segment boundary during SIT page readahead
First crash: 1317d, last: 1302d
Discussions (15)
Title Replies (including bot) Last reply
[PATCH 4.19 000/191] 4.19.155-rc1 review 218 (218) 2020/11/18 18:02
[PATCH 4.4 00/86] 4.4.242-rc1 review 91 (91) 2020/11/10 10:36
[PATCH 4.9 000/117] 4.9.242-rc1 review 121 (121) 2020/11/10 10:27
[PATCH AUTOSEL 4.19 01/60] powerpc/powernv/smp: Fix spurious DBG() warning 62 (62) 2020/11/06 05:26
[PATCH AUTOSEL 5.9 001/147] powerpc/vmemmap: Fix memory leak with vmemmap list allocation failures. 154 (154) 2020/11/05 21:18
[PATCH 5.9 000/391] 5.9.4-rc1 review 406 (406) 2020/11/05 16:26
[PATCH 5.4 000/214] 5.4.75-rc1 review 219 (219) 2020/11/04 17:50
[PATCH 4.14 000/125] 4.14.204-rc1 review 129 (129) 2020/11/04 17:49
[PATCH AUTOSEL 5.4 01/80] powerpc/powernv/smp: Fix spurious DBG() warning 81 (81) 2020/10/27 12:01
[PATCH AUTOSEL 5.8 001/132] powerpc/powernv/smp: Fix spurious DBG() warning 133 (133) 2020/10/27 11:40
[PATCH AUTOSEL 4.4 01/25] powerpc/powernv/smp: Fix spurious DBG() warning 25 (25) 2020/10/27 00:11
[PATCH AUTOSEL 4.9 01/30] powerpc/powernv/smp: Fix spurious DBG() warning 30 (30) 2020/10/27 00:10
[PATCH AUTOSEL 4.14 01/46] powerpc/powernv/smp: Fix spurious DBG() warning 46 (46) 2020/10/27 00:09
[PATCH v2] f2fs: fix to check segment boundary during SIT page readahead 1 (1) 2020/09/29 01:23
kernel BUG at fs/f2fs/segment.h:LINE! 0 (1) 2020/09/20 09:22

Sample crash report:
attempt to access beyond end of device
loop2: rw=12288, want=12296, limit=8287
------------[ cut here ]------------
kernel BUG at fs/f2fs/segment.h:657!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8320 Comm: syz-executor.2 Not tainted 5.9.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:f2fs_ra_meta_pages+0xa51/0xdc0 fs/f2fs/segment.h:657
Code: 08 49 83 ed 01 e9 3f f8 ff ff c7 44 24 18 80 00 00 00 45 31 ff 45 31 f6 31 f6 41 bc 01 00 00 00 e9 cd fb ff ff e8 df 51 1d fe <0f> 0b e8 d8 51 1d fe 4c 8b 6c 24 08 be 04 00 00 00 4c 89 ef e8 36
RSP: 0018:ffffc90015f8f7a8 EFLAGS: 00010246
RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc9000caa2000
RDX: 0000000000040000 RSI: ffffffff8358ecb1 RDI: 0000000000000004
RBP: ffff88804833c000 R08: 0000000000000001 R09: ffffea00068f69b7
R10: 0000000000000037 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000601 R14: ffff8880874d9800 R15: 000000000000001e
FS:  00007f5e25154700(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75a2d0bab4 CR3: 00000000952dc000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 build_sit_entries fs/f2fs/segment.c:4195 [inline]
 f2fs_build_segment_manager+0x4c4e/0xa6d0 fs/f2fs/segment.c:4779
 f2fs_fill_super+0x381a/0x6e80 fs/f2fs/super.c:3633
 mount_bdev+0x32e/0x3f0 fs/super.c:1417
 legacy_get_tree+0x105/0x220 fs/fs_context.c:592
 vfs_get_tree+0x89/0x2f0 fs/super.c:1547
 do_new_mount fs/namespace.c:2875 [inline]
 path_mount+0x1387/0x20a0 fs/namespace.c:3192
 do_mount fs/namespace.c:3205 [inline]
 __do_sys_mount fs/namespace.c:3413 [inline]
 __se_sys_mount fs/namespace.c:3390 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3390
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4607ea
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 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 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5e25153a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5e25153b20 RCX: 00000000004607ea
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5e25153ae0
RBP: 00007f5e25153ae0 R08: 00007f5e25153b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020012400
Modules linked in:
---[ end trace ebf7f2494634485b ]---
RIP: 0010:f2fs_ra_meta_pages+0xa51/0xdc0 fs/f2fs/segment.h:657
Code: 08 49 83 ed 01 e9 3f f8 ff ff c7 44 24 18 80 00 00 00 45 31 ff 45 31 f6 31 f6 41 bc 01 00 00 00 e9 cd fb ff ff e8 df 51 1d fe <0f> 0b e8 d8 51 1d fe 4c 8b 6c 24 08 be 04 00 00 00 4c 89 ef e8 36
RSP: 0018:ffffc90015f8f7a8 EFLAGS: 00010246
RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc9000caa2000
RDX: 0000000000040000 RSI: ffffffff8358ecb1 RDI: 0000000000000004
RBP: ffff88804833c000 R08: 0000000000000001 R09: ffffea00068f69b7
R10: 0000000000000037 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000601 R14: ffff8880874d9800 R15: 000000000000001e
FS:  00007f5e25154700(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75a2d0bab4 CR3: 00000000952dc000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/01 14:52 upstream 60e720931556 a9767fb2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/30 08:30 upstream ccc1d052eff9 5abc3f1a .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/27 22:18 upstream eeddbe6841cd 5dd8aee8 .config console log report info ci-upstream-kasan-gce-root
2020/09/20 23:15 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 23:12 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-root
2020/09/20 23:11 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/16 09:14 upstream fc4f28bb3daf 18d7d030 .config console log report info ci-upstream-kasan-gce-root
2020/09/27 22:04 linux-next d1d2220c7f39 5dd8aee8 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/09/21 02:25 linux-next b652d2a5f2a4 9564d2e9 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.