syzbot


WARNING in unlock_new_inode
Status: fixed on 2020/11/26 11:14
Reported-by: syzbot+954327348b6252e65475@syzkaller.appspotmail.com
Fix commit: a8ca9f684674 reiserfs: only call unlock_new_inode() if I_NEW
First crash: 612d, last: 574d

Fix bisection: fixed by (bisect log) :
commit a8ca9f684674f73f43793d7410897a8707f8a81e
Author: Eric Biggers <ebiggers@google.com>
Date: Sun Jun 28 07:00:57 2020 +0000

  reiserfs: only call unlock_new_inode() if I_NEW

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in unlock_new_inode C done 66 572d 610d 1/1 fixed on 2020/11/29 00:01
upstream WARNING in unlock_new_inode C done 76 591d 1496d 17/22 fixed on 2020/11/16 12:12

Sample crash report:
reiserfs: using flush barriers
REISERFS (device loop0): journal params: device loop0, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using rupasov hash to sort names
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8009 at fs/inode.c:967 unlock_new_inode+0x9a/0xc0 fs/inode.c:967
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8009 Comm: syz-executor410 Not tainted 4.14.202-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x4b kernel/panic.c:547
 report_bug+0x208/0x249 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:unlock_new_inode+0x9a/0xc0 fs/inode.c:967
RSP: 0018:ffff88809651f6d8 EFLAGS: 00010297
RAX: ffff8880b329c3c0 RBX: ffff88808884c1a8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000009f18 RDI: ffff88808884c234
RBP: 0000000000000000 R08: ffffffff8ba2262c R09: 0000000000001ce2
R10: 0000000000000001 R11: ffff8880b329c3c0 R12: ffff88808884c280
R13: ffff88808884c230 R14: 0000000000000000 R15: 00000000fffffff4
 reiserfs_new_inode+0x3a4/0x2100 fs/reiserfs/inode.c:2163
 reiserfs_mkdir+0x41d/0x8b0 fs/reiserfs/namei.c:841
 create_privroot fs/reiserfs/xattr.c:880 [inline]
 reiserfs_xattr_init+0x393/0xa49 fs/reiserfs/xattr.c:1002
 reiserfs_fill_super+0x1b18/0x28be fs/reiserfs/super.c:2180
 mount_bdev+0x2b3/0x360 fs/super.c:1134
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2549 [inline]
 do_mount+0xe53/0x2a00 fs/namespace.c:2879
 SYSC_mount fs/namespace.c:3095 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3072
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x44701a
RSP: 002b:00007ffe14989a28 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe14989a80 RCX: 000000000044701a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe14989a40
RBP: 00007ffe14989a40 R08: 00007ffe14989a80 R09: 00007ffe00000015
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000007
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (55):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2020/10/27 04:45 linux-4.14.y 5b7a52cd2eef 8b3eaf58 .config log report syz C
ci2-linux-4-14 2020/10/05 17:58 linux-4.14.y cbfa1702aaf6 1880b4a9 .config log report syz C
ci2-linux-4-14 2020/09/27 09:41 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report syz C
ci2-linux-4-14 2020/09/24 02:57 linux-4.14.y cbfa1702aaf6 54289b08 .config log report syz C
ci2-linux-4-14 2020/09/23 17:44 linux-4.14.y cbfa1702aaf6 287cd75a .config log report syz C
ci2-linux-4-14 2020/09/21 22:40 linux-4.14.y cbfa1702aaf6 9e1fa68e .config log report syz C
ci2-linux-4-14 2020/09/20 18:41 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report syz C
ci2-linux-4-14 2020/10/25 22:46 linux-4.14.y 5b7a52cd2eef a1839e81 .config log report info
ci2-linux-4-14 2020/10/21 09:53 linux-4.14.y cbfa1702aaf6 e761439e .config log report info
ci2-linux-4-14 2020/10/20 09:34 linux-4.14.y cbfa1702aaf6 ff4a3345 .config log report info
ci2-linux-4-14 2020/10/20 02:50 linux-4.14.y cbfa1702aaf6 ff4a3345 .config log report info
ci2-linux-4-14 2020/10/19 09:45 linux-4.14.y cbfa1702aaf6 ff4a3345 .config log report info
ci2-linux-4-14 2020/10/18 08:46 linux-4.14.y cbfa1702aaf6 fea47c01 .config log report info
ci2-linux-4-14 2020/10/18 05:17 linux-4.14.y cbfa1702aaf6 fea47c01 .config log report info
ci2-linux-4-14 2020/10/15 07:43 linux-4.14.y cbfa1702aaf6 fc7735a2 .config log report info
ci2-linux-4-14 2020/10/15 05:42 linux-4.14.y cbfa1702aaf6 fc7735a2 .config log report info
ci2-linux-4-14 2020/10/04 09:09 linux-4.14.y cbfa1702aaf6 5ef9c291 .config log report info
ci2-linux-4-14 2020/10/03 04:04 linux-4.14.y cbfa1702aaf6 2653fa43 .config log report info
ci2-linux-4-14 2020/10/02 14:19 linux-4.14.y cbfa1702aaf6 062c9832 .config log report info
ci2-linux-4-14 2020/10/02 13:29 linux-4.14.y cbfa1702aaf6 062c9832 .config log report info
ci2-linux-4-14 2020/10/01 07:43 linux-4.14.y cbfa1702aaf6 a9767fb2 .config log report info
ci2-linux-4-14 2020/09/30 10:35 linux-4.14.y cbfa1702aaf6 8516f6d3 .config log report info
ci2-linux-4-14 2020/09/30 10:34 linux-4.14.y cbfa1702aaf6 8516f6d3 .config log report info
ci2-linux-4-14 2020/09/30 04:08 linux-4.14.y cbfa1702aaf6 5abc3f1a .config log report info
ci2-linux-4-14 2020/09/29 07:01 linux-4.14.y cbfa1702aaf6 1b88c6d5 .config log report info
ci2-linux-4-14 2020/09/28 18:15 linux-4.14.y cbfa1702aaf6 6bfdbe89 .config log report info
ci2-linux-4-14 2020/09/28 17:55 linux-4.14.y cbfa1702aaf6 6bfdbe89 .config log report info
ci2-linux-4-14 2020/09/27 22:29 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report info
ci2-linux-4-14 2020/09/27 22:09 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report info
ci2-linux-4-14 2020/09/27 21:05 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report info
ci2-linux-4-14 2020/09/27 20:22 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report info
ci2-linux-4-14 2020/09/27 20:18 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report info
ci2-linux-4-14 2020/09/25 14:07 linux-4.14.y cbfa1702aaf6 4a006f63 .config log report info
ci2-linux-4-14 2020/09/25 14:01 linux-4.14.y cbfa1702aaf6 4a006f63 .config log report info
ci2-linux-4-14 2020/09/24 06:11 linux-4.14.y cbfa1702aaf6 54289b08 .config log report info
ci2-linux-4-14 2020/09/23 20:42 linux-4.14.y cbfa1702aaf6 54289b08 .config log report info
ci2-linux-4-14 2020/09/23 20:35 linux-4.14.y cbfa1702aaf6 54289b08 .config log report info
ci2-linux-4-14 2020/09/23 18:26 linux-4.14.y cbfa1702aaf6 287cd75a .config log report info
ci2-linux-4-14 2020/09/23 16:19 linux-4.14.y cbfa1702aaf6 287cd75a .config log report info
ci2-linux-4-14 2020/09/23 02:21 linux-4.14.y cbfa1702aaf6 3e8f6c27 .config log report info
ci2-linux-4-14 2020/09/22 12:45 linux-4.14.y cbfa1702aaf6 3e8f6c27 .config log report info
ci2-linux-4-14 2020/09/22 11:20 linux-4.14.y cbfa1702aaf6 3e8f6c27 .config log report info
ci2-linux-4-14 2020/09/22 10:47 linux-4.14.y cbfa1702aaf6 3e8f6c27 .config log report info
ci2-linux-4-14 2020/09/22 07:52 linux-4.14.y cbfa1702aaf6 9e1fa68e .config log report info
ci2-linux-4-14 2020/09/22 06:11 linux-4.14.y cbfa1702aaf6 9e1fa68e .config log report info
ci2-linux-4-14 2020/09/21 17:47 linux-4.14.y cbfa1702aaf6 c81d99c8 .config log report info
ci2-linux-4-14 2020/09/21 05:42 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report info
ci2-linux-4-14 2020/09/21 05:11 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report info
ci2-linux-4-14 2020/09/20 18:28 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report info
ci2-linux-4-14 2020/09/20 16:42 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report info
ci2-linux-4-14 2020/09/20 16:07 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report info
ci2-linux-4-14 2020/09/19 14:54 linux-4.14.y cbfa1702aaf6 53ce8104 .config log report info
ci2-linux-4-14 2020/09/19 14:46 linux-4.14.y cbfa1702aaf6 53ce8104 .config log report info
ci2-linux-4-14 2020/09/19 12:57 linux-4.14.y cbfa1702aaf6 53ce8104 .config log report info