syzbot


WARNING in unlock_new_inode

Status: fixed on 2020/11/16 12:12
Reported-by: syzbot+187510916eb6a14598f7@syzkaller.appspotmail.com
Fix commit: 8859bf2b1278 reiserfs: only call unlock_new_inode() if I_NEW
First crash: 1595d, last: 670d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: no output from test machine (log)
Repro: C syz .config
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 651d 689d 1/1 fixed on 2020/11/29 00:01
linux-4.14 WARNING in unlock_new_inode C done 55 653d 691d 1/1 fixed on 2020/11/26 11:14

Sample crash report:
REISERFS (device loop0): journal params: device loop0, size 15748, 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 r5 hash to sort names
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6863 at fs/inode.c:996 unlock_new_inode+0x237/0x290 fs/inode.c:996
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 6863 Comm: syz-executor817 Not tainted 5.9.0-rc8-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+0x198/0x1fd lib/dump_stack.c:118
 panic+0x382/0x7fb kernel/panic.c:231
 __warn.cold+0x20/0x4b kernel/panic.c:600
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234
 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:unlock_new_inode+0x237/0x290 fs/inode.c:996
Code: 44 0f bf 83 72 01 00 00 48 8d 95 c8 00 00 00 31 c9 4c 89 e7 48 c7 c6 80 b0 97 88 e8 b3 1d 93 ff e9 22 fe ff ff e8 c9 30 ad ff <0f> 0b e9 6d fe ff ff 48 89 df e8 2a 09 ee ff e9 ea fd ff ff 4c 89
RSP: 0018:ffffc900017e7668 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880837e71d0 RCX: ffffffff81c90cb2
RDX: ffff88808ea265c0 RSI: ffffffff81c90e47 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000000 R11: 00000000000a66d8 R12: ffff8880837e72a8
R13: ffff8880837e7258 R14: 0000000000000000 R15: 00000000fffffff4
 reiserfs_new_inode+0x3b8/0x2130 fs/reiserfs/inode.c:2166
 reiserfs_mkdir+0x4ad/0x980 fs/reiserfs/namei.c:841
 create_privroot fs/reiserfs/xattr.c:882 [inline]
 reiserfs_xattr_init+0x4de/0xb52 fs/reiserfs/xattr.c:1004
 reiserfs_fill_super+0x215d/0x2df3 fs/reiserfs/super.c:2177
 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:0x447dba
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 7d a3 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 5a a3 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffe04226a88 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe04226ae0 RCX: 0000000000447dba
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe04226aa0
RBP: 00007ffe04226aa0 R08: 00007ffe04226ae0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000007
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Kernel Offset: disabled
Rebooting in 86400 seconds..

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2020/08/27 03:24 upstream 15bc20c6af4c 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/07/26 13:55 upstream 04300d66f0a0 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/06/15 14:44 upstream b3a9e3b9622a 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/05/16 13:37 upstream 12bf0b632ed0 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/04/16 13:20 upstream 00086336a8d9 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/03/16 22:33 upstream fb33c6510d55 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/02/11 21:34 upstream 0a679e13ea30 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/01/12 21:07 upstream 040a3c33623b 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2019/12/10 13:54 upstream 6794862a16ef 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2019/08/01 07:16 upstream 87ef12027b9b 3642839c .config log report syz C
Crashes (76):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2020/10/10 11:06 upstream 6f2f486d57c4 93817d89 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/09/21 14:58 upstream ba4f184e126b 9e1fa68e .config log report syz C
ci-upstream-kasan-gce-root 2018/04/19 17:03 upstream 87ef12027b9b 3642839c .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/10/01 16:40 upstream 60e720931556 a9767fb2 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/10/01 14:31 upstream 60e720931556 a9767fb2 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/30 21:09 upstream 02de58b24d2e 8516f6d3 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/30 17:04 upstream 02de58b24d2e 8516f6d3 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/30 11:21 upstream ccc1d052eff9 5abc3f1a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/29 23:34 upstream ccc1d052eff9 5abc3f1a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/29 08:52 upstream fb0155a09b02 1b88c6d5 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/28 16:56 upstream a1b8638ba132 6bfdbe89 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/28 04:49 upstream 16bc1d5432eb 5dd8aee8 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/27 23:32 upstream a1bffa48745a 5dd8aee8 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/27 22:29 upstream a1bffa48745a 5dd8aee8 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/27 21:27 upstream a1bffa48745a 5dd8aee8 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/27 20:17 upstream a1bffa48745a 5dd8aee8 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/24 08:13 upstream c9c9e6a49f89 54289b08 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/24 06:10 upstream c9c9e6a49f89 54289b08 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 19:49 upstream 805c6d3c1921 287cd75a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 16:11 upstream 805c6d3c1921 287cd75a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 16:09 upstream 805c6d3c1921 287cd75a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 15:09 upstream 805c6d3c1921 287cd75a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 13:35 upstream 805c6d3c1921 287cd75a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 13:28 upstream 805c6d3c1921 287cd75a .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 03:29 upstream eff48ddeab78 3e8f6c27 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 01:58 upstream eff48ddeab78 3e8f6c27 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/23 01:25 upstream eff48ddeab78 3e8f6c27 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/22 22:54 upstream 98477740630f 3e8f6c27 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/22 17:55 upstream 98477740630f 3e8f6c27 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/22 10:58 upstream 98477740630f 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/22 10:58 upstream 98477740630f 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/22 07:17 upstream 98477740630f 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 22:02 upstream ba4f184e126b 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 18:37 upstream ba4f184e126b 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 15:27 upstream ba4f184e126b 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 14:58 upstream ba4f184e126b 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 14:57 upstream ba4f184e126b 9e1fa68e .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 09:42 upstream ba4f184e126b 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/21 08:27 upstream ba4f184e126b 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 19:53 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 18:24 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 18:14 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 17:20 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 17:20 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 17:20 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/20 17:19 upstream 325d0eab4f31 9564d2e9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/19 23:43 upstream eb5f95f1593f 53ce8104 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/19 23:42 upstream eb5f95f1593f 53ce8104 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/19 23:36 upstream eb5f95f1593f 53ce8104 .config log report info
ci-qemu-upstream 2020/09/19 22:55 upstream eb5f95f1593f 53ce8104 .config log report info
ci-qemu-upstream 2020/09/19 22:14 upstream eb5f95f1593f 53ce8104 .config log report info
ci-qemu-upstream 2020/09/19 19:31 upstream eb5f95f1593f 53ce8104 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/19 15:02 upstream eb5f95f1593f 53ce8104 .config log report info
ci-upstream-kasan-gce-root 2018/04/19 14:43 upstream 87ef12027b9b 3642839c .config log report
ci-upstream-kasan-gce-root 2018/04/19 14:15 upstream 87ef12027b9b 3642839c .config log report
ci-upstream-kasan-gce-root 2018/04/02 18:17 upstream 0adb32858b0b dc889257 .config log report
ci-upstream-kasan-gce-root 2018/03/30 20:26 upstream 9dd2326890d8 8fbce0e4 .config log report