INFO: task syz-executor.4:19597 blocked for more than 143 seconds. Not tainted 6.7.0-syzkaller-12829-g125514880ddd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27056 pid:19597 tgid:19596 ppid:5104 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x4960 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 schedule_timeout+0xb0/0x300 kernel/time/timer.c:2159 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common kernel/sched/completion.c:127 [inline] wait_for_completion+0x354/0x620 kernel/sched/completion.c:148 __flush_work+0x950/0xad0 kernel/workqueue.c:3410 __cancel_work_timer+0x51d/0x6a0 kernel/workqueue.c:3497 uhid_dev_destroy+0x8b/0x110 drivers/hid/uhid.c:584 uhid_char_write+0x75c/0xb40 drivers/hid/uhid.c:761 vfs_write+0x2a0/0xca0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f4259e7cda9 RSP: 002b:00007f425ab720c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4259fabf80 RCX: 00007f4259e7cda9 RDX: 0000000000000004 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f4259ec947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4259fabf80 R15: 00007fff2bc4bf98 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 4 locks held by kworker/u4:6/949: #0: ffff8880b983c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 #1: ffff8880b9828988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 #2: ffff88801eb5d0d8 (&lo->lo_work_lock){..-.}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:376 [inline] #2: ffff88801eb5d0d8 (&lo->lo_work_lock){..-.}-{2:2}, at: loop_process_work+0x199b/0x1e60 drivers/block/loop.c:1947 #3: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #3: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #3: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: ieee80211_sta_active_ibss+0xc7/0x330 net/mac80211/ibss.c:642 1 lock held by udevd/4501: #0: ffff8880b983c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 7 locks held by kworker/0:3/4792: 2 locks held by getty/4803: #0: ffff88802fd620a0 (&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+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.5/5080: #0: ffffffff8d9348b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8d9348b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996 3 locks held by kworker/u5:4/5089: #0: ffff888030b38538 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888030b38538 ((wq_completion)hci6){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc90003b6fd20 ( (work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] (work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #2: ffff88803fb0d060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_cmd_sync_work+0x1e0/0x400 net/bluetooth/hci_sync.c:305 1 lock held by udevd/5228: #0: ffffffff8de831a8 (uuid_mutex){+.+.}-{3:3}, at: btrfs_control_ioctl+0x15c/0x430 fs/btrfs/super.c:2220 1 lock held by udevd/5463: 1 lock held by syz-executor.4/19597: #0: ffff88802e370068 (&uhid->devlock){+.+.}-{3:3}, at: uhid_char_write+0x78/0xb40 drivers/hid/uhid.c:731 2 locks held by kworker/0:2/20597: #0: ffff88801308a938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff88801308a938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc9000595fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc9000595fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 1 lock held by syz-executor.0/22733: #0: ffff8880381cc0e0 (&type->s_umount_key#56/1){+.+.}-{3:3}, at: alloc_super+0x20e/0x8f0 fs/super.c:345 1 lock held by udevadm/22754: 1 lock held by udevadm/22791: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-syzkaller-12829-g125514880ddd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 22754 Comm: udevadm Not tainted 6.7.0-syzkaller-12829-g125514880ddd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:504 [inline] RIP: 0010:cpu_online include/linux/cpumask.h:1104 [inline] RIP: 0010:trace_lock_release include/trace/events/lock.h:69 [inline] RIP: 0010:lock_release+0x97/0x9c0 kernel/locking/lockdep.c:5765 Code: 4b 89 04 3c 48 b8 f2 f2 00 f3 f3 f3 f3 f3 4b 89 44 3c 08 0f 1f 44 00 00 65 8b 05 50 0d 96 7e 83 f8 08 0f 83 c8 05 00 00 89 c3 <48> 89 d8 48 c1 e8 06 48 8d 3c c5 a8 30 02 8f be 08 00 00 00 e8 40 RSP: 0018:ffffc90003a3f260 EFLAGS: 00000097 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8493c327 RDI: ffffffff92897d20 RBP: ffffc90003a3f390 R08: 0000000000000003 R09: fffff52000747e64 R10: dffffc0000000000 R11: fffff52000747e64 R12: 1ffff92000747e58 R13: ffffffff8493c327 R14: ffffc90003a3f3c0 R15: dffffc0000000000 FS: 00007fa080df8c80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555d25978 CR3: 000000002e5bf000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline] _raw_spin_unlock_irqrestore+0x79/0x140 kernel/locking/spinlock.c:194 __debug_check_no_obj_freed lib/debugobjects.c:998 [inline] debug_check_no_obj_freed+0x557/0x580 lib/debugobjects.c:1019 slab_free_hook mm/slub.c:2093 [inline] slab_free mm/slub.c:4299 [inline] kfree+0x110/0x380 mm/slub.c:4409 tomoyo_check_open_permission+0x376/0x500 security/tomoyo/file.c:786 security_file_open+0x66/0x560 security/security.c:2932 do_dentry_open+0x327/0x1590 fs/open.c:940 do_open fs/namei.c:3641 [inline] path_openat+0x2823/0x31e0 fs/namei.c:3798 do_filp_open+0x234/0x490 fs/namei.c:3825 do_sys_openat2+0x13e/0x1d0 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1430 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fa080f169a4 Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffccb07ad70 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007fa080f169a4 RDX: 0000000000080000 RSI: 00007ffccb07aea8 RDI: 00000000ffffff9c RBP: 00007ffccb07aea8 R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 000055583305f35a R14: 0000000000000001 R15: 00005558340a8da0