syzbot


WARNING in kernfs_get

Status: public: reported syz repro on 2019/04/10 15:44
Reported-by: syzbot+4406a7377361360004fb@syzkaller.appspotmail.com
First crash: 2071d, last: 1857d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kernfs_get (5) kernfs syz inconclusive 86 3h13m 155d 0/28 upstream: reported syz repro on 2024/05/08 11:07
linux-4.19 WARNING in kernfs_get C done 14 1854d 1994d 1/1 fixed on 2019/12/05 23:59
upstream WARNING in kernfs_get (2) kernfs 2 1474d 1492d 0/28 auto-closed as invalid on 2021/01/25 03:55
linux-4.14 WARNING in kernfs_get C done 17 1878d 1998d 1/1 fixed on 2019/12/07 19:24
upstream WARNING in kernfs_get (4) kernfs syz error 3 610d 613d 0/28 auto-obsoleted due to no activity on 2023/06/07 19:32
upstream WARNING in kernfs_get C done 316 1893d 2222d 13/28 fixed on 2019/11/20 22:01
upstream WARNING in kernfs_get (3) kernfs 3 1039d 1043d 0/28 auto-closed as invalid on 2022/02/04 06:25

Sample crash report:
input: syz1 as /devices/virtual/input/input2531
input: syz1 as /devices/virtual/input/input2532
input: syz1 as /devices/virtual/input/input2536
input: syz1 as /devices/virtual/input/input2538
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9379 at fs/kernfs/dir.c:494 kernfs_get.part.0+0x5e/0x70 fs/kernfs/dir.c:494
Kernel panic - not syncing: panic_on_warn set ...

input: syz1 as /devices/virtual/input/input2542
CPU: 0 PID: 9379 Comm: syz-executor.5 Not tainted 4.14.137+ #29
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xca/0x134 lib/dump_stack.c:53
 panic+0x1ea/0x3d3 kernel/panic.c:182
 __warn.cold+0x2f/0x3a kernel/panic.c:546
 report_bug+0x20a/0x248 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+0x1bf/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:kernfs_get.part.0+0x5e/0x70 fs/kernfs/dir.c:494
RSP: 0018:ffff8881d1a178d0 EFLAGS: 00010297
RAX: ffff8881c5b12f00 RBX: ffff8881c8c34a80 RCX: ffffffffa8cdc126
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8881c8c34a80
RBP: ffff8881ca9fc8c0 R08: 0000000000000001 R09: ffffed1039186951
R10: ffffed1039186950 R11: ffff8881c8c34a83 R12: ffff8881c7ed6d20
R13: 00000000000041ed R14: 0000000000000001 R15: ffff8881c2db7168
 kernfs_get fs/kernfs/dir.c:493 [inline]
 kernfs_new_node+0x9a/0xf0 fs/kernfs/dir.c:680
 kernfs_create_dir_ns+0x3c/0x130 fs/kernfs/dir.c:999
 sysfs_create_dir_ns+0xb7/0x1d0 fs/sysfs/dir.c:55
 create_dir lib/kobject.c:71 [inline]
 kobject_add_internal+0x27f/0x830 lib/kobject.c:229
 kobject_add_varg lib/kobject.c:364 [inline]
 kobject_add+0x135/0x1a0 lib/kobject.c:409
 device_add+0x333/0x13a0 drivers/base/core.c:1809
 input_register_device+0x605/0xb20 drivers/input/input.c:2144
 uinput_create_device drivers/input/misc/uinput.c:324 [inline]
 uinput_ioctl_handler.isra.0+0xa2a/0x1850 drivers/input/misc/uinput.c:839
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0xabe/0x1040 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459829
RSP: 002b:00007fa48f5f7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000459829
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa48f5f86d4
R13: 00000000004c4582 R14: 00000000004d87a8 R15: 00000000ffffffff
Kernel Offset: 0x27600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Rebooting in 86400 seconds..

Crashes (69):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/07 03:24 android-4.14 b9cd593b1ba7 c6f01e54 .config console log report syz ci-android-414-kasan-gce-root
2019/09/10 04:12 android-4.14 4eccd8013349 a60cb4cd .config console log report ci-android-414-kasan-gce-root
2019/09/07 14:08 android-4.14 4eccd8013349 a60cb4cd .config console log report ci-android-414-kasan-gce-root
2019/09/07 08:35 android-4.14 4eccd8013349 a60cb4cd .config console log report ci-android-414-kasan-gce-root
2019/09/07 02:09 android-4.14 4eccd8013349 a60cb4cd .config console log report ci-android-414-kasan-gce-root
2019/09/05 03:35 android-4.14 38733badc0e6 040fda58 .config console log report ci-android-414-kasan-gce-root
2019/09/02 13:19 android-4.14 a9d0871a562e db7c31ca .config console log report ci-android-414-kasan-gce-root
2019/09/02 00:58 android-4.14 a9d0871a562e bad3cce2 .config console log report ci-android-414-kasan-gce-root
2019/09/01 04:48 android-4.14 a9d0871a562e bad3cce2 .config console log report ci-android-414-kasan-gce-root
2019/08/27 23:55 android-4.14 987732fcbbe3 fd37b39e .config console log report ci-android-414-kasan-gce-root
2019/08/27 21:40 android-4.14 987732fcbbe3 d21c5d9d .config console log report ci-android-414-kasan-gce-root
2019/08/23 18:09 android-4.14 a48da8903efa 78ded196 .config console log report ci-android-414-kasan-gce-root
2019/08/23 11:39 android-4.14 e204fa49a029 ca6f3cfa .config console log report ci-android-414-kasan-gce-root
2019/08/22 20:31 android-4.14 e204fa49a029 d003d6d0 .config console log report ci-android-414-kasan-gce-root
2019/08/21 23:19 android-4.14 e204fa49a029 984250d5 .config console log report ci-android-414-kasan-gce-root
2019/08/21 14:50 android-4.14 e204fa49a029 4ea67ff8 .config console log report ci-android-414-kasan-gce-root
2019/08/21 02:36 android-4.14 e204fa49a029 cfc9868f .config console log report ci-android-414-kasan-gce-root
2019/08/20 18:04 android-4.14 e204fa49a029 cfc9868f .config console log report ci-android-414-kasan-gce-root
2019/08/20 12:18 android-4.14 e204fa49a029 cfc9868f .config console log report ci-android-414-kasan-gce-root
2019/08/20 08:07 android-4.14 40b8f54d0fc7 ee12860b .config console log report ci-android-414-kasan-gce-root
2019/08/19 21:01 android-4.14 5d8bfdf81cde ee12860b .config console log report ci-android-414-kasan-gce-root
2019/08/19 04:01 android-4.14 5d8bfdf81cde b8ceabfc .config console log report ci-android-414-kasan-gce-root
2019/08/18 16:10 android-4.14 5d8bfdf81cde 55bf8926 .config console log report ci-android-414-kasan-gce-root
2019/08/17 17:53 android-4.14 5d8bfdf81cde 55bf8926 .config console log report ci-android-414-kasan-gce-root
2019/08/17 14:50 android-4.14 5d8bfdf81cde 8fd428a1 .config console log report ci-android-414-kasan-gce-root
2019/08/16 02:56 android-4.14 0e28694fe668 8fd428a1 .config console log report ci-android-414-kasan-gce-root
2019/08/13 22:13 android-4.14 0e28694fe668 ef801a3e .config console log report ci-android-414-kasan-gce-root
2019/08/12 22:45 android-4.14 98e47d9a1a3a acb51638 .config console log report ci-android-414-kasan-gce-root
2019/08/12 14:05 android-4.14 57ac921eaff1 acb51638 .config console log report ci-android-414-kasan-gce-root
2019/08/10 03:38 android-4.14 57ac921eaff1 acb51638 .config console log report ci-android-414-kasan-gce-root
2019/08/09 09:34 android-4.14 b9cd593b1ba7 ede31a9b .config console log report ci-android-414-kasan-gce-root
2019/08/09 02:49 android-4.14 b9cd593b1ba7 ede31a9b .config console log report ci-android-414-kasan-gce-root
2019/08/07 02:27 android-4.14 b9cd593b1ba7 c6f01e54 .config console log report ci-android-414-kasan-gce-root
2019/05/01 20:24 android-4.14 c680586c4fb7 7516d9fa .config console log report ci-android-414-kasan-gce-root
2019/05/01 20:19 android-4.14 c680586c4fb7 7516d9fa .config console log report ci-android-414-kasan-gce-root
2019/05/01 19:45 android-4.14 c680586c4fb7 7516d9fa .config console log report ci-android-414-kasan-gce-root
2019/04/28 06:08 android-4.14 ffa22221c473 b617407b .config console log report ci-android-414-kasan-gce-root
2019/04/24 11:55 android-4.14 ffa22221c473 8e3c52b1 .config console log report ci-android-414-kasan-gce-root
2019/04/23 23:46 android-4.14 ffa22221c473 4d3d6a50 .config console log report ci-android-414-kasan-gce-root
2019/04/23 00:33 android-4.14 fde41616bce4 53199d6e .config console log report ci-android-414-kasan-gce-root
2019/04/20 02:49 android-4.14 4353393c9d4a b0e8efcb .config console log report ci-android-414-kasan-gce-root
2019/04/18 09:47 android-4.14 d9a62b438b48 b0e8efcb .config console log report ci-android-414-kasan-gce-root
2019/04/17 04:41 android-4.14 efe836537cf2 b0e8efcb .config console log report ci-android-414-kasan-gce-root
2019/04/13 02:03 android-4.14 efe836537cf2 c402d8f1 .config console log report ci-android-414-kasan-gce-root
2019/04/12 21:55 android-4.14 efe836537cf2 c402d8f1 .config console log report ci-android-414-kasan-gce-root
2019/04/09 22:52 android-4.14 d8414567db62 65b612b7 .config console log report ci-android-414-kasan-gce-root
2019/04/08 16:53 android-4.14 171fc237b3cb 0dfb0452 .config console log report ci-android-414-kasan-gce-root
2019/04/04 11:48 android-4.14 dba292730ede 6a475fff .config console log report ci-android-414-kasan-gce-root
2019/03/22 21:13 android-4.14 cfbe30be85c4 3361bde5 .config console log report ci-android-414-kasan-gce-root
2019/03/22 00:23 android-4.14 cfbe30be85c4 dce6e62f .config console log report ci-android-414-kasan-gce-root
2019/03/20 16:47 android-4.14 0892a3e235e5 a664c187 .config console log report ci-android-414-kasan-gce-root
2019/03/15 09:13 android-4.14 8ed9bc6e6401 bab43553 .config console log report ci-android-414-kasan-gce-root
2019/03/14 10:13 android-4.14 8ed9bc6e6401 d09a902e .config console log report ci-android-414-kasan-gce-root
2019/03/06 23:44 android-4.14 168dcc6231fe 18215b8d .config console log report ci-android-414-kasan-gce-root
2019/02/28 14:25 android-4.14 0cc8f104f45a 09aeeba4 .config console log report ci-android-414-kasan-gce-root
2019/02/28 08:51 android-4.14 0cc8f104f45a 34ec456b .config console log report ci-android-414-kasan-gce-root
2019/02/27 13:11 android-4.14 0cc8f104f45a 083cfd0e .config console log report ci-android-414-kasan-gce-root
2019/02/26 00:34 android-4.14 6fd50f70fd4c 8022bafd .config console log report ci-android-414-kasan-gce-root
2019/02/23 21:54 android-4.14 6bdf39bb26fd 7a06e792 .config console log report ci-android-414-kasan-gce-root
2019/02/21 23:02 android-4.14 01709c953f89 7ff74a98 .config console log report ci-android-414-kasan-gce-root
2019/02/21 14:08 android-4.14 01709c953f89 3133098b .config console log report ci-android-414-kasan-gce-root
2019/02/19 21:09 android-4.14 af9864a5122f 4df543c9 .config console log report ci-android-414-kasan-gce-root
2019/02/19 04:18 android-4.14 4a739e3530cc 59f36113 .config console log report ci-android-414-kasan-gce-root
2019/02/15 04:07 android-4.14 bfc525947c56 76dd003f .config console log report ci-android-414-kasan-gce-root
2019/02/14 20:19 android-4.14 bfc525947c56 76dd003f .config console log report ci-android-414-kasan-gce-root
2019/02/13 19:50 android-4.14 8aa4b6802335 0a49c954 .config console log report ci-android-414-kasan-gce-root
2019/02/11 12:46 android-4.14 57de59b3cf53 73f5f452 .config console log report ci-android-414-kasan-gce-root
2019/02/09 18:37 android-4.14 57de59b3cf53 d75f7686 .config console log report ci-android-414-kasan-gce-root
2019/02/08 05:18 android-4.14 0116eb1061b0 aa4feb03 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.