syzbot


INFO: task hung in lookup_slow

Status: public: reported syz repro on 2019/04/14 08:51
Reported-by: syzbot+74fcd191c4cd336f12e4@syzkaller.appspotmail.com
First crash: 2197d, last: 1742d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in lookup_slow (2) fs 2 1715d 1728d 0/26 auto-closed as invalid on 2019/11/26 02:54
upstream INFO: task hung in lookup_slow exfat 148 1936d 2229d 0/26 closed as dup on 2018/09/08 15:36
linux-6.1 INFO: task hung in lookup_slow 5 9d23h 24d 0/3 upstream: reported on 2024/04/14 05:59
linux-5.15 INFO: task hung in lookup_slow (2) 13 8d10h 23d 0/3 upstream: reported on 2024/04/15 04:02
upstream INFO: task hung in lookup_slow (3) exfat arm C unreliable 475 5h52m 544d 0/26 upstream: reported C repro on 2022/11/11 00:21
linux-4.14 INFO: task hung in lookup_slow C error 1 614d 644d 0/1 upstream: reported C repro on 2022/08/03 08:46
linux-4.19 INFO: task hung in lookup_slow 1 1423d 1423d 0/1 auto-closed as invalid on 2020/10/13 00:17
linux-5.15 INFO: task hung in lookup_slow 2 387d 392d 0/3 auto-obsoleted due to no activity on 2023/08/15 05:05

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
INFO: task syz-executor0:4386 blocked for more than 140 seconds.
      Not tainted 4.9.113-g9905591 #14
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0   D29144  4386   3910 0x00000004
 ffff8801cf481800 0000000000000000 ffff8801ce2e8000 ffffffff84629800
 ffff8801db221c18 ffff8801ba13f680 ffffffff839e929d ffffffff81235647
 0000000000000000 ffff8801cf4820c0 0000000600000007 ffff8801db2224e8
Call Trace:
 [<ffffffff839ea89f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3553
 [<ffffffff839f4cc4>] rwsem_down_read_failed+0x1e4/0x320 kernel/locking/rwsem-xadd.c:260
 [<ffffffff81ee7558>] call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
 [<ffffffff839f3bf2>] __down_read arch/x86/include/asm/rwsem.h:65 [inline]
 [<ffffffff839f3bf2>] down_read+0x52/0xb0 kernel/locking/rwsem.c:24
 [<ffffffff81594cb1>] inode_lock_shared include/linux/fs.h:776 [inline]
 [<ffffffff81594cb1>] lookup_slow+0x141/0x470 fs/namei.c:1645
 [<ffffffff815a1336>] walk_component+0x716/0x1bb0 fs/namei.c:1784
 [<ffffffff815a3c96>] lookup_last fs/namei.c:2266 [inline]
 [<ffffffff815a3c96>] path_lookupat.isra.41+0x186/0x410 fs/namei.c:2283
 [<ffffffff815a9747>] filename_lookup.part.55+0x177/0x370 fs/namei.c:2317
 [<ffffffff815a9b03>] filename_lookup fs/namei.c:2310 [inline]
 [<ffffffff815a9b03>] user_path_at_empty+0x53/0x70 fs/namei.c:2578
 [<ffffffff81580ae6>] user_path_at include/linux/namei.h:55 [inline]
 [<ffffffff81580ae6>] vfs_fstatat+0xc6/0x170 fs/stat.c:106
 [<ffffffff81581d89>] vfs_lstat fs/stat.c:129 [inline]
 [<ffffffff81581d89>] SYSC_newlstat+0x89/0x100 fs/stat.c:283
 [<ffffffff815820cd>] SyS_newlstat+0x1d/0x30 fs/stat.c:277
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839fa193>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Showing all locks held in the system:
2 locks held by khungtaskd/519:
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136675c>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136675c>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81425de7>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by getty/3761:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f8342>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff8211ee22>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2142
1 lock held by syz-executor0/4386:
 #0:  (&type->i_mutex_dir_key#4){++++++}, at: [<ffffffff81594cb1>] inode_lock_shared include/linux/fs.h:776 [inline]
 #0:  (&type->i_mutex_dir_key#4){++++++}, at: [<ffffffff81594cb1>] lookup_slow+0x141/0x470 fs/namei.c:1645
1 lock held by syz-executor0/4388:
 #0:  (&type->i_mutex_dir_key#4){++++++}, at: [<ffffffff81594cb1>] inode_lock_shared include/linux/fs.h:776 [inline]
 #0:  (&type->i_mutex_dir_key#4){++++++}, at: [<ffffffff81594cb1>] lookup_slow+0x141/0x470 fs/namei.c:1645
2 locks held by syz-executor0/4389:
 #0:  (sb_writers#10){.+.+.+}, at: [<ffffffff815e0a8f>] sb_start_write include/linux/fs.h:1573 [inline]
 #0:  (sb_writers#10){.+.+.+}, at: [<ffffffff815e0a8f>] mnt_want_write+0x3f/0xb0 fs/namespace.c:391
 #1:  (&type->i_mutex_dir_key#4){++++++}, at: [<ffffffff81568e21>] inode_lock include/linux/fs.h:766 [inline]
 #1:  (&type->i_mutex_dir_key#4){++++++}, at: [<ffffffff81568e21>] chmod_common+0x171/0x450 fs/open.c:543

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 519 Comm: khungtaskd Not tainted 4.9.113-g9905591 #14
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d8587d08 ffffffff81eb32a9 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810b9bd0 ffff8801d8587d40
 ffffffff81ebe5a7 0000000000000000 0000000000000000 0000000000000003
Call Trace:
 [<ffffffff81eb32a9>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb32a9>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81ebe5a7>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81ebe53a>] nmi_trigger_cpumask_backtrace+0x12a/0x14f lib/nmi_backtrace.c:60
 [<ffffffff810b9cd4>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81366cf4>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81366cf4>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81366cf4>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81366cf4>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119d0ad>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839fa35c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4385 Comm: syz-executor0 Not tainted 4.9.113-g9905591 #14
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801cf97b000 task.stack: ffff8801ba130000
RIP: 0010:[<ffffffff812215e9>] c [<ffffffff812215e9>] constant_test_bit arch/x86/include/asm/bitops.h:311 [inline]
RIP: 0010:[<ffffffff812215e9>] c [<ffffffff812215e9>] test_ti_thread_flag include/linux/thread_info.h:63 [inline]
RIP: 0010:[<ffffffff812215e9>] c [<ffffffff812215e9>] test_tsk_thread_flag include/linux/sched.h:3439 [inline]
RIP: 0010:[<ffffffff812215e9>] c [<ffffffff812215e9>] signal_pending include/linux/sched.h:3465 [inline]
RIP: 0010:[<ffffffff812215e9>] c [<ffffffff812215e9>] signal_pending_state include/linux/sched.h:3482 [inline]
RIP: 0010:[<ffffffff812215e9>] c [<ffffffff812215e9>] prepare_to_wait_event+0x99/0x450 kernel/sched/wait.c:214
RSP: 0018:ffff8801ba1377b8  EFLAGS: 00000046
RAX: 0000000000000001 RBX: 1ffff10037426efa RCX: dffffc0000000000
RDX: ffff8801cf97b000 RSI: 1ffff10039f2f600 RDI: ffff8801cec6a564
RBP: ffff8801ba137858 R08: 0000000000000286 R09: 0000000000000001
R10: ffff8801cf97b000 R11: 1ffff10039f2f722 R12: ffff8801ba137830
R13: ffff8801ba1378b0 R14: ffff8801cec6a560 R15: 0000000000000001
FS:  00007f7956f7e700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc5e01d9280 CR3: 00000001ceee2000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801ba1377e0c 0000000000000246c ffff8801cf97b000c 0000000041b58ab3c
 ffffffff843bbae3c ffffffff81221550c 0000000000000246c ffff8801cf97b000c
 ffffffff83db4480c 00000000000001ccc 0000000000000000c ffff8801cec6a4c0c
Call Trace:
 [<ffffffff81907bbe>] request_wait_answer+0x22e/0x6e0 fs/fuse/dev.c:459
 [<ffffffff819086c9>] __fuse_request_send+0x109/0x1b0 fs/fuse/dev.c:480
 [<ffffffff819087cd>] fuse_request_send+0x5d/0x70 fs/fuse/dev.c:493
 [<ffffffff81912a24>] fuse_simple_request+0x2f4/0x660 fs/fuse/dev.c:551
 [<ffffffff8191cffb>] fuse_do_setattr+0x68b/0x11e0 fs/fuse/dir.c:1722
 [<ffffffff8191dd42>] fuse_setattr+0x1f2/0x510 fs/fuse/dir.c:1822
 [<ffffffff815d3f90>] notify_change2+0xac0/0xdf0 fs/attr.c:313
 [<ffffffff81568ec7>] chmod_common+0x217/0x450 fs/open.c:549
 [<ffffffff8156ccfd>] SYSC_fchmodat fs/open.c:582 [inline]
 [<ffffffff8156ccfd>] SyS_fchmodat fs/open.c:574 [inline]
 [<ffffffff8156ccfd>] SYSC_chmod fs/open.c:594 [inline]
 [<ffffffff8156ccfd>] SyS_chmod+0xad/0x130 fs/open.c:592
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839fa193>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Code: c14 c25 cc0 c7d c01 c00 c41 cf6 cc7 c81 c49 c89 cc0 c49 c63 cc7 c0f c84 cc4 c00 c00 c00 c48 cb9 c00 c00 c00 c00 c00 cfc cff cdf c48 c89 cd6 c48 cc1 cee c03 c80 c3c c0e c00 c<0f> c85 cba c02 c00 c00 c48 c8b c0a c83 ce1 c04 c0f c84 c9d c00 c00 c00 c41 c83 ce7 c

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/30 12:15 https://android.googlesource.com/kernel/common android-4.9 990559158c7b 1a381291 .config console log report syz ci-android-49-kasan-gce-root
2019/08/01 18:25 https://android.googlesource.com/kernel/common android-4.9 5220c435d873 835dffe7 .config console log report ci-android-49-kasan-gce-root
2019/03/15 20:43 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba bab43553 .config console log report ci-android-49-kasan-gce-root
2019/01/08 22:15 https://android.googlesource.com/kernel/common android-4.9 043c92bd0517 010ed08b .config console log report ci-android-49-kasan-gce-root
2018/08/29 20:10 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 4937cb2b .config console log report ci-android-49-kasan-gce-root
2018/08/29 01:41 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c b771b17e .config console log report ci-android-49-kasan-gce-root
2018/08/28 02:12 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 7ef1de9e .config console log report ci-android-49-kasan-gce-root
2018/08/28 00:05 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 7ef1de9e .config console log report ci-android-49-kasan-gce-root
2018/08/27 06:46 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 758cd203 .config console log report ci-android-49-kasan-gce-root
2018/08/25 22:18 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 76e7c3df .config console log report ci-android-49-kasan-gce-root
2018/08/25 02:18 https://android.googlesource.com/kernel/common android-4.9 6a1b5923548a 9b0f5c75 .config console log report ci-android-49-kasan-gce-root
2018/08/24 23:31 https://android.googlesource.com/kernel/common android-4.9 6a1b5923548a 9b0f5c75 .config console log report ci-android-49-kasan-gce-root
2018/08/24 12:58 https://android.googlesource.com/kernel/common android-4.9 520d10d31ca4 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/24 08:12 https://android.googlesource.com/kernel/common android-4.9 520d10d31ca4 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/23 15:45 https://android.googlesource.com/kernel/common android-4.9 8dd3fc2ed765 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/23 12:37 https://android.googlesource.com/kernel/common android-4.9 8dd3fc2ed765 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/23 10:00 https://android.googlesource.com/kernel/common android-4.9 8dd3fc2ed765 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/17 00:47 https://android.googlesource.com/kernel/common android-4.9 f85543ba3c54 9ccc1d45 .config console log report ci-android-49-kasan-gce-root
2018/08/15 06:50 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 0e6dcb88 .config console log report ci-android-49-kasan-gce-root
2018/08/14 14:26 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 7a88b141 .config console log report ci-android-49-kasan-gce-root
2018/08/12 16:55 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 7a88b141 .config console log report ci-android-49-kasan-gce-root
2018/08/12 14:39 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 7a88b141 .config console log report ci-android-49-kasan-gce-root
2018/08/12 06:47 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 7a88b141 .config console log report ci-android-49-kasan-gce-root
2018/08/11 12:58 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 7a88b141 .config console log report ci-android-49-kasan-gce-root
2018/08/11 09:09 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 7a88b141 .config console log report ci-android-49-kasan-gce-root
2018/08/10 23:20 https://android.googlesource.com/kernel/common android-4.9 9dc978d43ec7 1fb62d58 .config console log report ci-android-49-kasan-gce-root
2018/08/09 18:12 https://android.googlesource.com/kernel/common android-4.9 92e87041ed2d 1fb62d58 .config console log report ci-android-49-kasan-gce-root
2018/08/09 12:10 https://android.googlesource.com/kernel/common android-4.9 856452b4f22e 2eeda842 .config console log report ci-android-49-kasan-gce-root
2018/08/07 02:30 https://android.googlesource.com/kernel/common android-4.9 47b77b8d01c4 1beb8136 .config console log report ci-android-49-kasan-gce-root
2018/08/04 09:43 https://android.googlesource.com/kernel/common android-4.9 8b21e85d919c df7f6947 .config console log report ci-android-49-kasan-gce-root
2018/07/29 11:26 https://android.googlesource.com/kernel/common android-4.9 990559158c7b 0824d7a1 .config console log report ci-android-49-kasan-gce-root
2018/07/22 21:04 https://android.googlesource.com/kernel/common android-4.9 47bbcd6bf8f9 8cc079c3 .config console log report ci-android-49-kasan-gce-root
2018/07/13 20:41 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce-root
2018/07/13 05:20 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 06c33b3a .config console log report ci-android-49-kasan-gce-root
2018/05/21 03:29 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/02 23:40 https://android.googlesource.com/kernel/common android-4.9 f679e4d9b77a d5b114b4 .config console log report ci-android-49-kasan-gce-root
* Struck through repros no longer work on HEAD.