syzbot


WARNING in __bfs (4)

Status: upstream: reported C repro on 2022/02/09 16:15
Reported-by: syzbot+0d5cbccb26b9e1a48531@syzkaller.appspotmail.com
First crash: 1029d, last: 723d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in __bfs (2) 1 1397d 1397d 0/1 auto-closed as invalid on 2021/06/06 05:22
linux-4.19 WARNING in __bfs 2 1525d 1544d 0/1 auto-closed as invalid on 2021/01/29 09:23
linux-4.19 WARNING in __bfs (3) 1 1205d 1205d 0/1 auto-closed as invalid on 2021/12/15 04:17

Sample crash report:
NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8098 at kernel/locking/lockdep.c:966 lock_accessed kernel/locking/lockdep.c:966 [inline]
WARNING: CPU: 1 PID: 8098 at kernel/locking/lockdep.c:966 __bfs.part.0.cold+0x11/0xeb kernel/locking/lockdep.c:1033
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8098 Comm: syz-executor300 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:lock_accessed kernel/locking/lockdep.c:966 [inline]
RIP: 0010:__bfs.part.0.cold+0x11/0xeb kernel/locking/lockdep.c:1033
Code: 60 37 24 8d e8 bc 32 a5 f9 eb 88 48 c7 c7 40 f7 36 8d e8 ae 32 a5 f9 eb bd 48 c7 c7 60 1d 6a 88 48 89 54 24 20 e8 a6 87 00 00 <0f> 0b 49 8d 46 10 48 8b 54 24 20 48 89 44 24 18 48 c1 e8 03 42 80
RSP: 0018:ffff888092007238 EFLAGS: 00010086
RAX: 0000000000000024 RBX: ffffffff8cf7e0d0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012400e39
RBP: ffff8880920072f0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c66505b R12: ffffffff814a7290
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
 __bfs kernel/locking/lockdep.c:1388 [inline]
 __bfs_backwards kernel/locking/lockdep.c:1070 [inline]
 find_usage_backwards kernel/locking/lockdep.c:1388 [inline]
 check_usage_backwards+0x17a/0x300 kernel/locking/lockdep.c:2669
 mark_lock_irq kernel/locking/lockdep.c:2760 [inline]
 mark_lock+0x3d8/0x1160 kernel/locking/lockdep.c:3132
 mark_irqflags kernel/locking/lockdep.c:3016 [inline]
 __lock_acquire+0x5cb/0x3ff0 kernel/locking/lockdep.c:3373
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 down_read+0x36/0x80 kernel/locking/rwsem.c:24
 nilfs_bmap_lookup_at_level+0x7b/0x3e0 fs/nilfs2/bmap.c:68
 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
 nilfs_mdt_submit_block.constprop.0+0x1a5/0xaa0 fs/nilfs2/mdt.c:142
 nilfs_mdt_read_block+0x96/0x3e0 fs/nilfs2/mdt.c:175
 nilfs_mdt_get_block+0xe6/0xd40 fs/nilfs2/mdt.c:250
 nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216
 nilfs_palloc_get_entry_block+0x17b/0x230 fs/nilfs2/alloc.c:318
 nilfs_ifile_get_inode_block+0xbf/0x170 fs/nilfs2/ifile.c:143
 __nilfs_read_inode fs/nilfs2/inode.c:483 [inline]
 nilfs_iget+0x204/0x860 fs/nilfs2/inode.c:592
 nilfs_get_root_dentry+0x26/0x250 fs/nilfs2/super.c:908
 nilfs_fill_super fs/nilfs2/super.c:1082 [inline]
 nilfs_mount+0xac8/0xe70 fs/nilfs2/super.c:1321
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fcc5afc76ba
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffb859eff8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fcc5afc76ba
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 00007fffb859f010
RBP: 00007fffb859f010 R08: 00007fffb859f050 R09: 00005555573a92c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00007fffb859f050 R14: 0000000000000039 R15: 0000000020000758
Shutting down cpus with NMI
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/17 21:26 linux-4.19.y 3f8a27f9e27b 94744d21 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in __bfs
2022/12/11 23:48 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __bfs
2022/11/27 22:38 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __bfs
2022/11/19 00:42 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __bfs
2022/11/01 00:35 linux-4.19.y 3f8a27f9e27b 2a71366b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __bfs
2022/10/10 08:27 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __bfs
2022/08/03 12:59 linux-4.19.y 3f8a27f9e27b 1c9013ac .config console log report info ci2-linux-4-19 WARNING in __bfs
2022/07/04 03:06 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 WARNING in __bfs
2022/05/02 18:55 linux-4.19.y 3f8a27f9e27b 2df221f6 .config console log report info ci2-linux-4-19 WARNING in __bfs
2022/03/05 19:01 linux-4.19.y 3f8a27f9e27b 7bdd8b2c .config console log report info ci2-linux-4-19 WARNING in __bfs
2022/02/09 16:14 linux-4.19.y 3f8a27f9e27b 0b33604d .config console log report info ci2-linux-4-19 WARNING in __bfs
* Struck through repros no longer work on HEAD.