INFO: task kworker/0:27:16332 blocked for more than 143 seconds. Not tainted 6.4.0-syzkaller-12491-gc192ac735768 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:27 state:D stack:28248 pid:16332 ppid:2 flags:0x00004000 Workqueue: events rfkill_global_led_trigger_worker Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 rfkill_global_led_trigger_worker+0x1b/0x120 net/rfkill/core.c:181 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.0:16529 blocked for more than 143 seconds. Not tainted 6.4.0-syzkaller-12491-gc192ac735768 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:26040 pid:16529 ppid:5052 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 rfkill_unregister+0xde/0x2c0 net/rfkill/core.c:1130 nfc_unregister_device+0x96/0x330 net/nfc/core.c:1167 virtual_ncidev_close+0x52/0xb0 drivers/nfc/virtual_ncidev.c:163 __fput+0x40c/0xad0 fs/file_table.c:384 task_work_run+0x16f/0x270 kernel/task_work.c:179 get_signal+0x1c7/0x25f0 kernel/signal.c:2653 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:308 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f139fc8c389 RSP: 002b:00007f13a0960168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffff2 RBX: 00007f139fdabf80 RCX: 00007f139fc8c389 RDX: 0000000000000064 RSI: 0000000020000840 RDI: 0000000000000003 RBP: 00007f139fcd7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd53b133f R14: 00007f13a0960300 R15: 0000000000022000 INFO: task syz-executor.2:16539 blocked for more than 143 seconds. Not tainted 6.4.0-syzkaller-12491-gc192ac735768 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:26288 pid:16539 ppid:5065 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 device_lock include/linux/device.h:958 [inline] nfc_dev_down+0x2d/0x2d0 net/nfc/core.c:143 nfc_rfkill_set_block+0x33/0xd0 net/nfc/core.c:179 rfkill_set_block+0x1f9/0x540 net/rfkill/core.c:345 rfkill_fop_write+0x2c7/0x570 net/rfkill/core.c:1286 vfs_write+0x2af/0xda0 fs/read_write.c:582 ksys_write+0x1e3/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fafcca8c389 RSP: 002b:00007fafcd7c6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fafccbabf80 RCX: 00007fafcca8c389 RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007fafccad7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce4183bff R14: 00007fafcd7c6300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c9a3af0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c9a37f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8c9a4700 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615 2 locks held by getty/4773: #0: ffff88802d54a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf08/0x13f0 drivers/tty/n_tty.c:2187 4 locks held by kworker/u4:23/13116: #0: ffff8880b983c3d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 #1: ffff8880b9828848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x216/0x950 kernel/sched/psi.c:983 #2: ffff8880b9829718 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:999 #3: ffffffff9234bcc0 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x186/0x4f0 lib/debugobjects.c:717 3 locks held by kworker/0:27/16332: #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567 #1: ffffc9000bf9fdb0 ((work_completion)(&rfkill_global_led_trigger_work)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571 #2: ffffffff8e847d28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_global_led_trigger_worker+0x1b/0x120 net/rfkill/core.c:181 2 locks held by syz-executor.0/16529: #0: ffff88802bc98100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #0: ffff88802bc98100 (&dev->mutex){....}-{3:3}, at: nfc_unregister_device+0x62/0x330 net/nfc/core.c:1165 #1: ffffffff8e847d28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_unregister+0xde/0x2c0 net/rfkill/core.c:1130 2 locks held by syz-executor.2/16539: #0: ffffffff8e847d28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x160/0x570 net/rfkill/core.c:1278 #1: ffff88802bc98100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #1: ffff88802bc98100 (&dev->mutex){....}-{3:3}, at: nfc_dev_down+0x2d/0x2d0 net/nfc/core.c:143 3 locks held by syz-executor.4/16735: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 #1: ffff8880156c6100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #1: ffff8880156c6100 (&dev->mutex){....}-{3:3}, at: nfc_register_device+0x9f/0x3c0 net/nfc/core.c:1128 #2: ffffffff8e847d28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_register+0x3a/0xb00 net/rfkill/core.c:1057 1 lock held by syz-executor.5/16741: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.3/16756: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.0/16761: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.2/16763: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.0/16765: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.2/16767: #0: ffffffff8d4d5f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-syzkaller-12491-gc192ac735768 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 13009 Comm: kworker/u4:13 Not tainted 6.4.0-syzkaller-12491-gc192ac735768 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:kasan_check_range+0x12/0x190 mm/kasan/generic.c:186 Code: ff 89 43 08 5b 5d 41 5c c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 66 0f 1f 00 48 85 f6 0f 84 3c 01 00 00 48 89 f8 41 54 <44> 0f b6 c2 48 01 f0 55 53 0f 82 c7 00 00 00 48 b8 ff ff ff ff ff RSP: 0018:ffffc9000d287a30 EFLAGS: 00000002 RAX: ffffffff91869f58 RBX: 1ffff92001a50f4f RCX: ffffffff8165bb2e RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff91869f58 RBP: 0000000000000004 R08: 0000000000000000 R09: fffffbfff230d3eb R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802b2f28b0 R13: 0000000000000002 R14: 00000000000006d4 R15: ffff88802b2f28d0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c000db7018 CR3: 000000000c775000 CR4: 0000000000350ef0 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] mark_lock.part.0+0xee/0x1960 kernel/locking/lockdep.c:4663 mark_lock kernel/locking/lockdep.c:4649 [inline] mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4281 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4299 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4366 [inline] lockdep_hardirqs_on_prepare+0x139/0x410 kernel/locking/lockdep.c:4318 trace_hardirqs_on+0x36/0x40 kernel/trace/trace_preemptirq.c:61 __local_bh_enable_ip+0xa4/0x130 kernel/softirq.c:386 spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_nc_purge_paths+0x1cc/0x3c0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x931/0xfe0 net/batman-adv/network-coding.c:722 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308