syzbot


WARNING in unlock_new_inode

Status: fixed on 2020/11/16 12:12
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+187510916eb6a14598f7@syzkaller.appspotmail.com
Fix commit: 8859bf2b1278 reiserfs: only call unlock_new_inode() if I_NEW
First crash: 2390d, last: 1465d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: no output from test machine (log)
Repro: C syz .config
  
Discussions (18)
Title Replies (including bot) Last reply
[PATCH 5.9 000/757] 5.9.2-rc1 review 766 (766) 2020/10/30 08:32
[PATCH 4.19 000/264] 4.19.153-rc1 review 275 (275) 2020/10/29 08:56
[PATCH 5.8 000/633] 5.8.17-rc1 review 638 (638) 2020/10/28 22:08
[PATCH 4.4 000/112] 4.4.241-rc1 review 115 (115) 2020/10/28 15:54
[PATCH 4.9 000/139] 4.9.241-rc1 review 141 (141) 2020/10/28 13:53
[PATCH 4.14 000/191] 4.14.203-rc1 review 194 (194) 2020/10/28 12:43
[PATCH 5.4 000/408] 5.4.73-rc1 review 410 (410) 2020/10/28 06:53
[PATCH AUTOSEL 5.9 001/111] md/bitmap: fix memory leak of temporary bitmap 126 (126) 2020/10/25 23:48
[PATCH AUTOSEL 4.4 01/33] media: firewire: fix memory leak 33 (33) 2020/10/18 19:27
[PATCH AUTOSEL 4.9 01/41] crypto: ccp - fix error handling 41 (41) 2020/10/18 19:26
[PATCH AUTOSEL 4.14 01/52] crypto: ccp - fix error handling 52 (52) 2020/10/18 19:25
[PATCH AUTOSEL 4.19 01/56] block: ratelimit handle_bad_sector() message 56 (56) 2020/10/18 19:24
[PATCH AUTOSEL 5.4 01/80] md/bitmap: fix memory leak of temporary bitmap 80 (80) 2020/10/18 19:22
[PATCH AUTOSEL 5.8 001/101] md/bitmap: fix memory leak of temporary bitmap 101 (101) 2020/10/18 19:20
[PATCH] reiserfs: only call unlock_new_inode() if I_NEW 4 (4) 2020/09/16 10:54
Reminder: 5 open syzbot bugs in "fs/reiserfs" subsystem 1 (1) 2019/07/24 02:30
Reminder: 5 open syzbot bugs in "fs/reiserfs" subsystem 1 (1) 2019/07/09 20:26
WARNING in unlock_new_inode 0 (2) 2018/04/19 17:04
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in unlock_new_inode (2) C error 11 707d 744d 0/1 upstream: reported C repro on 2022/10/01 07:57
linux-4.19 WARNING in unlock_new_inode C done 66 1446d 1485d 1/1 fixed on 2020/11/29 00:01
linux-4.14 WARNING in unlock_new_inode (2) nilfs2 C 13 595d 744d 0/1 upstream: reported C repro on 2022/10/02 04:48
linux-4.14 WARNING in unlock_new_inode C done 55 1449d 1486d 1/1 fixed on 2020/11/26 11:14
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2020/08/27 03:08 16m bisect fix upstream OK (0) job log log
2020/07/26 13:40 15m bisect fix upstream OK (0) job log log
2020/06/15 14:26 17m bisect fix upstream OK (0) job log log
2020/05/16 13:21 16m bisect fix upstream OK (0) job log log
2020/04/16 13:03 16m bisect fix upstream OK (0) job log log
2020/03/16 22:15 17m bisect fix upstream OK (0) job log log
2020/02/11 21:13 20m bisect fix upstream OK (0) job log log
2020/01/12 20:49 17m bisect fix upstream OK (0) job log log
2019/12/10 13:36 18m bisect fix upstream OK (0) job log log
2019/08/01 06:57 18m bisect fix upstream OK (0) job log log

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..

Crashes (76):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/10 11:06 upstream 6f2f486d57c4 93817d89 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/09/21 14:58 upstream ba4f184e126b 9e1fa68e .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/04/19 17:03 upstream 87ef12027b9b 3642839c .config console log report syz C ci-upstream-kasan-gce-root
2020/10/01 16:40 upstream 60e720931556 a9767fb2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/01 14:31 upstream 60e720931556 a9767fb2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/30 21:09 upstream 02de58b24d2e 8516f6d3 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/30 17:04 upstream 02de58b24d2e 8516f6d3 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/30 11:21 upstream ccc1d052eff9 5abc3f1a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/29 23:34 upstream ccc1d052eff9 5abc3f1a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/29 08:52 upstream fb0155a09b02 1b88c6d5 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/28 16:56 upstream a1b8638ba132 6bfdbe89 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/28 04:49 upstream 16bc1d5432eb 5dd8aee8 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/27 23:32 upstream a1bffa48745a 5dd8aee8 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/27 22:29 upstream a1bffa48745a 5dd8aee8 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/27 21:27 upstream a1bffa48745a 5dd8aee8 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/27 20:17 upstream a1bffa48745a 5dd8aee8 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/24 08:13 upstream c9c9e6a49f89 54289b08 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/24 06:10 upstream c9c9e6a49f89 54289b08 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 19:49 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 16:11 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 16:09 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 15:09 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 13:35 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 13:28 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 03:29 upstream eff48ddeab78 3e8f6c27 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 01:58 upstream eff48ddeab78 3e8f6c27 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 01:25 upstream eff48ddeab78 3e8f6c27 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/22 22:54 upstream 98477740630f 3e8f6c27 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/22 17:55 upstream 98477740630f 3e8f6c27 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/22 10:58 upstream 98477740630f 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/22 10:58 upstream 98477740630f 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/22 07:17 upstream 98477740630f 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 22:02 upstream ba4f184e126b 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 18:37 upstream ba4f184e126b 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 15:27 upstream ba4f184e126b 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 14:58 upstream ba4f184e126b 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 14:57 upstream ba4f184e126b 9e1fa68e .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 09:42 upstream ba4f184e126b 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/21 08:27 upstream ba4f184e126b 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 19:53 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 18:24 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 18:14 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 17:20 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 17:20 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 17:20 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/20 17:19 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/19 23:43 upstream eb5f95f1593f 53ce8104 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/19 23:42 upstream eb5f95f1593f 53ce8104 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/19 23:36 upstream eb5f95f1593f 53ce8104 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/19 22:55 upstream eb5f95f1593f 53ce8104 .config console log report info ci-qemu-upstream
2020/09/19 22:14 upstream eb5f95f1593f 53ce8104 .config console log report info ci-qemu-upstream
2020/09/19 19:31 upstream eb5f95f1593f 53ce8104 .config console log report info ci-qemu-upstream
2020/09/19 15:02 upstream eb5f95f1593f 53ce8104 .config console log report info ci-upstream-kasan-gce-selinux-root
2018/04/19 14:43 upstream 87ef12027b9b 3642839c .config console log report ci-upstream-kasan-gce-root
2018/04/19 14:15 upstream 87ef12027b9b 3642839c .config console log report ci-upstream-kasan-gce-root
2018/04/02 18:17 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce-root
2018/03/30 20:26 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.