syzbot


WARNING in drop_nlink

Status: fixed on 2020/09/16 22:51
Reported-by: syzbot+df958cf5688a96ad3287@syzkaller.appspotmail.com
Fix commit: facb03dddec0 fs/minix: don't allow getting deleted inodes
First crash: 888d, last: 888d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config

Fix bisection: failed (bisect log)
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in drop_nlink (2) C done inconclusive 2 94d 714d 0/24 upstream: reported C repro on 2020/10/13 17:02
linux-4.14 WARNING in drop_nlink C 7 7d07h 181d 0/1 upstream: reported C repro on 2022/03/30 09:01
linux-4.19 WARNING in drop_nlink C error 12 13d 719d 0/1 upstream: reported C repro on 2020/10/08 09:54

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7023 at fs/inode.c:303 drop_nlink+0xb9/0x100 fs/inode.c:303
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7023 Comm: syz-executor433 Not tainted 5.7.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1e9/0x30e lib/dump_stack.c:118
 panic+0x264/0x7a0 kernel/panic.c:221
 __warn+0x209/0x210 kernel/panic.c:582
 report_bug+0x1ac/0x2d0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 do_error_trap+0xca/0x1c0 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:drop_nlink+0xb9/0x100 fs/inode.c:303
Code: 49 8b 1e 48 8d bb b8 07 00 00 be 08 00 00 00 e8 fd 65 ef ff f0 48 ff 83 b8 07 00 00 5b 41 5c 41 5e 41 5f 5d c3 e8 f7 b8 b1 ff <0f> 0b eb 8a 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 63 ff ff ff 4c
RSP: 0018:ffffc900015d7da0 EFLAGS: 00010293
RAX: ffffffff81c1a899 RBX: 1ffff11010d63ab1 RCX: ffff8880a7e88200
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81c1a81e R09: ffffed1010d63ab9
R10: ffffed1010d63ab9 R11: 0000000000000000 R12: ffff888086b1d588
R13: 1ffff110114efcf2 R14: ffff888086b1d540 R15: dffffc0000000000
 inode_dec_link_count include/linux/fs.h:2210 [inline]
 minix_unlink+0xc7/0x100 fs/minix/namei.c:164
 vfs_unlink+0x30c/0x5a0 fs/namei.c:3809
 do_unlinkat+0x377/0x7e0 fs/namei.c:3873
 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x449ac7
Code: 0f 1f 00 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8d cd fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe753dcec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000449ac7
RDX: 0000000001fb39e3 RSI: 00007ffe753dcee0 RDI: 00007ffe753dcf70
RBP: 0000000000000002 R08: 0000000000000000 R09: 000000000000000d
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000001fb3980
R13: 00007ffe753de060 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2020/04/22 09:10 upstream 189522da8b3a 2e44d63e .config log report syz C
* Struck through repros no longer work on HEAD.