syzbot


WARNING in drop_nlink

Status: fixed on 2020/09/16 22:51
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+df958cf5688a96ad3287@syzkaller.appspotmail.com
Fix commit: facb03dddec0 fs/minix: don't allow getting deleted inodes
First crash: 1458d, last: 1458d
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 (error log, bisect log)
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 4.4 000/149] 4.4.233-rc1 review 163 (163) 2020/10/31 20:04
[PATCH 4.9 000/212] 4.9.233-rc1 review 220 (220) 2020/08/21 09:40
[PATCH 4.19 000/168] 4.19.140-rc1 review 183 (183) 2020/08/21 08:05
[PATCH 4.14 000/228] 4.14.194-rc1 review 234 (234) 2020/08/21 06:59
[PATCH 5.8 000/464] 5.8.2-rc1 review 475 (475) 2020/08/19 06:11
[PATCH 5.4 000/270] 5.4.59-rc1 review 275 (275) 2020/08/18 22:37
[PATCH 5.7 000/393] 5.7.16-rc1 review 398 (398) 2020/08/18 22:36
[patch 099/165] fs/minix: don't allow getting deleted inodes 1 (1) 2020/08/12 01:35
[PATCH 0/6] fs/minix: fix syzbot bugs and set s_maxbytes 10 (10) 2020/07/07 20:34
WARNING in drop_nlink 0 (1) 2020/04/26 09:18
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in drop_nlink (2) hfs C done inconclusive 216 51m 1284d 0/26 upstream: reported C repro on 2020/10/13 17:02
linux-5.15 WARNING in drop_nlink origin:upstream C 17 18h17m 316d 0/3 upstream: reported C repro on 2023/06/08 18:04
linux-6.1 WARNING in drop_nlink origin:upstream C 15 8h06m 312d 0/3 upstream: reported C repro on 2023/06/12 09:27
linux-4.14 WARNING in drop_nlink C 9 410d 751d 0/1 upstream: reported C repro on 2022/03/30 09:01
linux-4.19 WARNING in drop_nlink fat reiserfs C error 25 438d 1289d 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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/22 09:10 upstream 189522da8b3a 2e44d63e .config console log report syz C ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.