INFO: task kworker/0:4:5884 blocked for more than 143 seconds. Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:4 state:D stack:21160 pid:5884 tgid:5884 ppid:2 flags:0x00004000 Workqueue: events rfkill_sync_work Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x1850/0x4c30 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 __mutex_lock_common kernel/locking/mutex.c:665 [inline] __mutex_lock+0x7e7/0xee0 kernel/locking/mutex.c:735 device_lock include/linux/device.h:1014 [inline] nfc_dev_down net/nfc/core.c:143 [inline] nfc_rfkill_set_block+0x50/0x310 net/nfc/core.c:179 rfkill_set_block+0x1f3/0x440 net/rfkill/core.c:346 rfkill_sync net/rfkill/core.c:379 [inline] rfkill_sync_work+0x12a/0x220 net/rfkill/core.c:1056 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: task syz.6.850:10150 blocked for more than 143 seconds. Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.850 state:D stack:24112 pid:10150 tgid:10141 ppid:6622 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x1850/0x4c30 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_timeout+0xb0/0x290 kernel/time/sleep_timeout.c:75 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+0x355/0x620 kernel/sched/completion.c:148 __flush_work+0xa47/0xc60 kernel/workqueue.c:4235 __cancel_work_sync+0xbc/0x110 kernel/workqueue.c:4355 rfkill_unregister+0x96/0x230 net/rfkill/core.c:1139 nfc_unregister_device+0x96/0x2a0 net/nfc/core.c:1167 virtual_ncidev_close+0x56/0x90 drivers/nfc/virtual_ncidev.c:172 __fput+0x23e/0xa50 fs/file_table.c:450 task_work_run+0x251/0x310 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f85a5785d29 RSP: 002b:00007f85a65f0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: 0000000000000007 RBX: 00007f85a5976080 RCX: 00007f85a5785d29 RDX: 0000000000000002 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007f85a5801b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f85a5976080 R15: 00007ffcf1504478 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 6 locks held by kworker/1:2/3070: #0: ffff888144aa4148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff888144aa4148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc9000b9e7d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000b9e7d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 #2: ffff88814574c190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff88814574c190 (&dev->mutex){....}-{4:4}, at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5849 #3: ffff888046ef7190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff888046ef7190 (&dev->mutex){....}-{4:4}, at: __device_attach+0x8e/0x520 drivers/base/dd.c:1005 #4: ffff88805161b160 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff88805161b160 (&dev->mutex){....}-{4:4}, at: __device_attach+0x8e/0x520 drivers/base/dd.c:1005 #5: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by dhcpcd/5491: #0: ffffffff8fd157d0 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x121/0xec0 net/netlink/genetlink.c:1209 2 locks held by getty/5579: #0: ffff8880317640a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000332b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 4 locks held by udevd/5839: #0: ffff8880290c2c30 (&p->lock){+.+.}-{4:4}, at: seq_read_iter+0xb4/0xd70 fs/seq_file.c:182 #1: ffff88802128f088 (&of->mutex#2){+.+.}-{4:4}, at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff888011caea58 (kn->active#5){++++}-{0:0}, at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff888046ef7190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff888046ef7190 (&dev->mutex){....}-{4:4}, at: uevent_show+0x17d/0x340 drivers/base/core.c:2729 4 locks held by kworker/0:4/5884: #0: ffff88801ac78948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac78948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc9000435fd00 ((work_completion)(&rfkill->sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000435fd00 ((work_completion)(&rfkill->sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 #2: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_sync_work+0x23/0x220 net/rfkill/core.c:1055 #3: ffff888071128100 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff888071128100 (&dev->mutex){....}-{4:4}, at: nfc_dev_down net/nfc/core.c:143 [inline] #3: ffff888071128100 (&dev->mutex){....}-{4:4}, at: nfc_rfkill_set_block+0x50/0x310 net/nfc/core.c:179 1 lock held by syz-executor/6857: #0: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_unregister+0xd0/0x230 net/rfkill/core.c:1145 1 lock held by syz.6.280/7277: #0: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_unregister+0xd0/0x230 net/rfkill/core.c:1145 1 lock held by syz.6.850/10150: #0: ffff888071128100 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #0: ffff888071128100 (&dev->mutex){....}-{4:4}, at: nfc_unregister_device+0x63/0x2a0 net/nfc/core.c:1165 2 locks held by syz-executor/10331: #0: ffff8880345af918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/10869: #0: ffff8880271cb118 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 3 locks held by syz.5.1029/11203: #0: ffffffff8fd157d0 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x121/0xec0 net/netlink/genetlink.c:1209 #2: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz.2.1030/11208: #0: ffffffff8fd157d0 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x121/0xec0 net/netlink/genetlink.c:1209 2 locks held by syz.8.1033/11227: #0: ffffffff8fd157d0 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x121/0xec0 net/netlink/genetlink.c:1209 2 locks held by syz.1.1037/11261: #0: ffffffff8fd157d0 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8fd15688 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x121/0xec0 net/netlink/genetlink.c:1209 2 locks held by syz-executor/11264: #0: ffff88805bf09918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11266: #0: ffff88802a5fd918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11268: #0: ffff88805b267918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11270: #0: ffff888022352118 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11272: #0: ffff888050dfc118 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11274: #0: ffff88807d6bc918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11276: #0: ffff888029ef3918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11278: #0: ffff888021b18118 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11280: #0: ffff88805b363918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11282: #0: ffff88807e84b918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 2 locks held by syz-executor/11284: #0: ffff888034771918 (&data->open_mutex){+.+.}-{4:4}, at: vhci_create_device+0x34/0x6a0 drivers/bluetooth/hci_vhci.c:469 #1: ffffffff8ff7aee8 (rfkill_global_mutex){+.+.}-{4:4}, at: rfkill_register+0x34/0x8c0 net/rfkill/core.c:1071 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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:234 [inline] watchdog+0xff6/0x1040 kernel/hung_task.c:397 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 8152 Comm: kworker/u8:15 Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound nsim_dev_trap_report_work RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:107 [inline] RIP: 0010:raw_atomic_try_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:2170 [inline] RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1302 [inline] RIP: 0010:queued_spin_lock include/asm-generic/qspinlock.h:111 [inline] RIP: 0010:do_raw_spin_lock+0x155/0x370 kernel/locking/spinlock_debug.c:116 Code: 00 00 c7 44 24 60 00 00 00 00 4c 89 e7 be 04 00 00 00 e8 3e c1 89 00 4c 89 f7 be 04 00 00 00 e8 31 c1 89 00 41 0f b6 44 1d 00 <84> c0 48 89 da 0f 85 8d 01 00 00 8b 44 24 60 b9 01 00 00 00 f0 41 RSP: 0018:ffffc900033277a0 EFLAGS: 00000097 RAX: 0000000000000004 RBX: dffffc0000000000 RCX: ffffffff817c293f RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc90003327800 RBP: ffffc90003327870 R08: 0000000000000003 R09: fffff52000664f00 R10: dffffc0000000000 R11: fffff52000664f00 R12: ffffffff9a5b7380 R13: 1ffff92000664f00 R14: ffffc90003327800 R15: 1ffffffff34b6e71 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f48b3ea7d60 CR3: 000000000e736000 CR4: 0000000000350ef0 Call Trace: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0xe1/0x120 kernel/locking/spinlock.c:162 __debug_check_no_obj_freed lib/debugobjects.c:1088 [inline] debug_check_no_obj_freed+0x234/0x580 lib/debugobjects.c:1129 slab_free_hook mm/slub.c:2284 [inline] slab_free mm/slub.c:4613 [inline] kmem_cache_free+0x114/0x410 mm/slub.c:4715 nsim_dev_trap_report drivers/net/netdevsim/dev.c:821 [inline] nsim_dev_trap_report_work+0x7cc/0xb50 drivers/net/netdevsim/dev.c:851 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244