syzbot


INFO: task hung in fuse_reverse_inval_entry (6)

Status: auto-obsoleted due to no activity on 2024/12/19 08:15
Subsystems: fuse
[Documentation on labels]
First crash: 122d, last: 122d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in fuse_reverse_inval_entry (2) fuse 3 1466d 1485d 0/28 auto-closed as invalid on 2021/04/15 03:59
linux-4.19 INFO: task hung in fuse_reverse_inval_entry C error 2 1132d 1233d 0/1 upstream: reported C repro on 2021/09/05 19:48
linux-4.14 INFO: task hung in fuse_reverse_inval_entry C 1 701d 1124d 0/1 upstream: reported C repro on 2021/12/23 18:36
upstream INFO: task hung in fuse_reverse_inval_entry fuse C done 23 2360d 2373d 13/28 fixed on 2019/11/11 16:48
upstream INFO: task hung in fuse_reverse_inval_entry (4) fuse 1 597d 597d 0/28 auto-obsoleted due to no activity on 2023/09/01 17:45
android-49 INFO: task hung in fuse_reverse_inval_entry C 3 2364d 2108d 0/3 public: reported C repro on 2019/04/14 08:51
upstream INFO: task hung in fuse_reverse_inval_entry (5) fuse 1 503d 503d 0/28 auto-obsoleted due to no activity on 2023/12/04 21:33
upstream INFO: task hung in fuse_reverse_inval_entry (3) fuse 1 772d 772d 0/28 auto-obsoleted due to no activity on 2023/04/10 13:00

Sample crash report:
INFO: task syz.0.2489:16101 blocked for more than 153 seconds.
      Not tainted 6.11.0-syzkaller-07337-g2004cef11ea0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.2489      state:D stack:26768 pid:16101 tgid:16095 ppid:12956  flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5264 [inline]
 __schedule+0x1843/0x4b00 kernel/sched/core.c:6607
 __schedule_loop kernel/sched/core.c:6684 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6699
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6756
 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write_nested+0x1e0/0x220 kernel/locking/rwsem.c:1696
 inode_lock_nested include/linux/fs.h:850 [inline]
 fuse_reverse_inval_entry+0x62/0x730 fs/fuse/dir.c:1360
 fuse_notify_inval_entry fs/fuse/dev.c:1503 [inline]
 fuse_notify fs/fuse/dev.c:1856 [inline]
 fuse_dev_do_write+0x4164/0x6210 fs/fuse/dev.c:1943
 fuse_dev_write+0x148/0x1d0 fs/fuse/dev.c:2027
 new_sync_write fs/read_write.c:590 [inline]
 vfs_write+0xa6d/0xc90 fs/read_write.c:683
 ksys_write+0x1a0/0x2c0 fs/read_write.c:736
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6bb3d7def9
RSP: 002b:00007f6bb4c0f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f6bb3f36058 RCX: 00007f6bb3d7def9
RDX: 0000000000000029 RSI: 00000000200043c0 RDI: 0000000000000003
RBP: 00007f6bb3df0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f6bb3f36058 R15: 00007ffe924eb158
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8e9389e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8e9389e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8e9389e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701
1 lock held by klogd/4663:
4 locks held by dhcpcd/4888:
2 locks held by getty/4986:
 #0: ffff88802e32f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
1 lock held by syz-executor/5218:
3 locks held by syz.0.2489/16097:
 #0: ffff88805020e420 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515
 #1: ffff88807a629708 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:850 [inline]
 #1: ffff88807a629708 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 fs/namei.c:4026
 #2: ffff88807a629bd0 (&fi->mutex){+.+.}-{3:3}, at: fuse_lock_inode+0xd3/0x120 fs/fuse/inode.c:554
2 locks held by syz.0.2489/16101:
 #0: ffff88805e319338 (&fc->killsb){++++}-{3:3}, at: fuse_notify_inval_entry fs/fuse/dev.c:1502 [inline]
 #0: ffff88805e319338 (&fc->killsb){++++}-{3:3}, at: fuse_notify fs/fuse/dev.c:1856 [inline]
 #0: ffff88805e319338 (&fc->killsb){++++}-{3:3}, at: fuse_dev_do_write+0x4107/0x6210 fs/fuse/dev.c:1943
 #1: ffff88807a629708 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:850 [inline]
 #1: ffff88807a629708 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: fuse_reverse_inval_entry+0x62/0x730 fs/fuse/dir.c:1360
1 lock held by syz.3.2491/16100:

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-07337-g2004cef11ea0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:93 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xff4/0x1040 kernel/hung_task.c:379
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 101 PID: 5015 Comm: dhcpcd Not tainted 6.11.0-syzkaller-07337-g2004cef11ea0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:119 [inline]
RIP: 0010:lock_acquire+0x120/0x550 kernel/locking/lockdep.c:5798
Code: c0 ec 60 1b 90 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 ff 02 00 00 83 3d 89 36 ab 0e 00 0f 84 42 01 00 00 65 8b 05 10 60 92 7e <85> c0 0f 85 8f 01 00 00 65 48 8b 1c 25 80 d6 03 00 48 81 c3 dc 0a
RSP: 0018:ffffc90002d5f540 EFLAGS: 00000002
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff81702a24
RDX: 0000000000000000 RSI: ffffffff8c6008e0 RDI: ffffffff8c6008a0
RBP: ffffc90002d5f690 R08: ffffffff901b2eaf R09: 1ffffffff20365d5
R10: dffffc0000000000 R11: fffffbfff20365d6 R12: 1ffff920005abeb0
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffffa0001fcc
FS:  00007fc0218de740(0000) GS:ffff8880b8900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f73e3b85040 CR3: 000000002eeec000 CR4: 00000000003506f0
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 is_bpf_text_address+0x46/0x2a0 kernel/bpf/core.c:767
 kernel_text_address+0xa7/0xe0 kernel/extable.c:125
 __kernel_text_address+0xd/0x40 kernel/extable.c:79
 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:369
 arch_stack_walk+0xfd/0x150 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
 unpoison_slab_object mm/kasan/common.c:319 [inline]
 __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345
 kasan_slab_alloc include/linux/kasan.h:247 [inline]
 slab_post_alloc_hook mm/slub.c:4086 [inline]
 slab_alloc_node mm/slub.c:4135 [inline]
 kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4142
 __sigqueue_alloc+0x42e/0x540 kernel/signal.c:428
 __send_signal_locked+0x22f/0xdc0 kernel/signal.c:1117
 do_send_sig_info kernel/signal.c:1299 [inline]
 group_send_sig_info+0x292/0x310 kernel/signal.c:1449
 bpf_send_signal_common+0x2dd/0x430 kernel/trace/bpf_trace.c:881
 ____bpf_send_signal kernel/trace/bpf_trace.c:886 [inline]
 bpf_send_signal+0x19/0x30 kernel/trace/bpf_trace.c:884
 bpf_prog_7ba5217f62dcd359+0x40/0x44
 bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline]
 __bpf_prog_run include/linux/filter.h:691 [inline]
 bpf_prog_run include/linux/filter.h:698 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2406 [inline]
 bpf_trace_run2+0x2ec/0x540 kernel/trace/bpf_trace.c:2447
 trace_sys_enter+0x93/0xd0 include/trace/events/syscalls.h:18
 syscall_trace_enter+0xf8/0x150 kernel/entry/common.c:61
 syscall_enter_from_user_mode_work include/linux/entry-common.h:168 [inline]
 syscall_enter_from_user_mode include/linux/entry-common.h:198 [inline]
 do_syscall_64+0xcc/0x230 arch/x86/entry/common.c:79
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc021918ad9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 c7 c0 0f 00 00 00 0f 05 <48> 81 ec b8 00 00 00 41 89 f9 48 89 f0 49 89 d0 48 85 f6 0f 84 be
RSP: 002b:00007fffb0e73fc0 EFLAGS: 00000293 ORIG_RAX: 000000000000000f
RAX: ffffffffffffffda RBX: 0000556c4ef04e20 RCX: 00007fc021918ad9
RDX: 0000556c4231f610 RSI: 00007fffb0e740f0 RDI: 0000000000000011
RBP: 00007fffb0e748d0 R08: 0000000000000008 R09: 0000000000000000
R10: 00007fffb0e748d0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000556c4231f610 R14: 00000000ffffffff R15: 0000000000000000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/20 08:15 upstream 2004cef11ea0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in fuse_reverse_inval_entry
* Struck through repros no longer work on HEAD.