syzbot
INFO: task hung in static_key_enable_cpuslocked
Status:
upstream: reported on 2026/11/18 18:06
Reported-by: syzbot+fe39017aaaa7baa14fd6@syzkaller.appspotmail.com
First crash: 1d17h, last: 1d17h
Sample crash report:
INFO: task kworker/u4:4:56 blocked for more than 161 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:4 state:D stack:21488 pid:56 ppid:2 flags:0x00004000
Workqueue: events_unbound toggle_allocation_gate
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5393 [inline]
__schedule+0x156f/0x4720 kernel/sched/core.c:6722
schedule+0xbd/0x170 kernel/sched/core.c:6796
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6855
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0x689/0xce0 kernel/locking/mutex.c:747
jump_label_lock kernel/jump_label.c:27 [inline]
static_key_enable_cpuslocked+0xc6/0x240 kernel/jump_label.c:204
static_key_enable+0x1a/0x20 kernel/jump_label.c:220
toggle_allocation_gate+0xa8/0x260 mm/kfence/core.c:847
process_one_work kernel/workqueue.c:2657 [inline]
process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
</TASK>
Showing all locks held in the system:
3 locks held by kworker/1:1/27:
1 lock held by khungtaskd/29:
#0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
#0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
#0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
4 locks held by kworker/u4:4/56:
#0: ffff888018c71938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#0: ffff888018c71938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
#1: ffffc9000131fd00 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#1: ffffc9000131fd00 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
#2: ffffffff8dfcd530 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_enable+0x12/0x20 kernel/jump_label.c:219
#3: ffffffff8e1d6428 (jump_label_mutex){+.+.}-{3:3}, at: jump_label_lock kernel/jump_label.c:27 [inline]
#3: ffffffff8e1d6428 (jump_label_mutex){+.+.}-{3:3}, at: static_key_enable_cpuslocked+0xc6/0x240 kernel/jump_label.c:204
3 locks held by kworker/u4:12/3503:
2 locks held by getty/5548:
#0: ffff88802f2ba0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x43a/0x1400 drivers/tty/n_tty.c:2217
1 lock held by syz-executor/5792:
#0: ffffffff8e137cb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
#0: ffffffff8e137cb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3da/0x880 kernel/rcu/tree_exp.h:1004
1 lock held by syz-executor/5793:
#0: ffff88807efe8e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:521 [inline]
#0: ffff88807efe8e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x22a/0x520 net/bluetooth/hci_core.c:2723
3 locks held by kworker/u5:2/5799:
2 locks held by kworker/1:3/5880:
#0: ffff888018c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#0: ffff888018c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
#1: ffffc90004947d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#1: ffffc90004947d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
5 locks held by kworker/1:5/5901:
3 locks held by kworker/0:6/5902:
1 lock held by dhcpcd/9988:
#0: ffff88807716f420 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline]
#0: ffff88807716f420 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:658 [inline]
#0: ffff88807716f420 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x82/0x210 net/socket.c:1421
1 lock held by syz-executor/9991:
#0: ffff8880317b4e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:450 [inline]
#0: ffff8880317b4e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_open+0x1f3/0x2f0 net/bluetooth/hci_core.c:508
1 lock held by dhcpcd/9993:
#0: ffff88803334c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline]
#0: ffff88803334c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3292
1 lock held by dhcpcd/9994:
#0: ffff88803334e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline]
#0: ffff88803334e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3292
1 lock held by dhcpcd/9995:
#0: ffff88803334a130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline]
#0: ffff88803334a130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3292
1 lock held by dhcpcd/9997:
#0: ffff888032df8130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline]
#0: ffff888032df8130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3292
1 lock held by dhcpcd/9998:
#0: ffff888032dfa130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline]
#0: ffff888032dfa130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3292
1 lock held by dhcpcd/9999:
#0: ffff888033348130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline]
#0: ffff888033348130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3292
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
<TASK>
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
nmi_cpu_backtrace+0x3a6/0x3e0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x17a/0x2f0 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+0xf59/0xfa0 kernel/hung_task.c:379
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3503 Comm: kworker/u4:12 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: bat_events batadv_dat_purge
RIP: 0010:__kasan_check_read+0xa/0x20 mm/kasan/shadow.c:31
Code: 48 c7 c7 0a e9 c6 8c 4c 89 e6 eb 0a 48 c7 c7 b6 2f a8 8c 48 89 de e8 75 4a ab 08 31 ed eb d4 cc f3 0f 1e fa 89 f6 48 8b 0c 24 <31> d2 e9 ff ea ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00
RSP: 0018:ffffc90000007a38 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81696256
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8f8dda68
RBP: ffffc90000007b50 R08: dffffc0000000000 R09: 1ffffffff24446a0
R10: dffffc0000000000 R11: fffffbfff24446a1 R12: ffffffff8436328b
R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff92000000f54
FS: 0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4a99e22060 CR3: 000000000df32000 CR4: 00000000003506f0
Call Trace:
<IRQ>
instrument_atomic_read include/linux/instrumented.h:68 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
cpumask_test_cpu include/linux/cpumask.h:504 [inline]
cpu_online include/linux/cpumask.h:1082 [inline]
trace_lock_release include/trace/events/lock.h:69 [inline]
lock_release+0xa6/0x8c0 kernel/locking/lockdep.c:5801
debug_objects_fill_pool+0xcc/0x790 lib/debugobjects.c:655
debug_object_activate+0x36/0x500 lib/debugobjects.c:743
debug_hrtimer_activate kernel/time/hrtimer.c:450 [inline]
debug_activate kernel/time/hrtimer.c:504 [inline]
enqueue_hrtimer+0x34/0x380 kernel/time/hrtimer.c:1100
__run_hrtimer kernel/time/hrtimer.c:1771 [inline]
__hrtimer_run_queues+0x62f/0xc10 kernel/time/hrtimer.c:1818
hrtimer_interrupt+0x39d/0x980 kernel/time/hrtimer.c:1880
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1077 [inline]
__sysvec_apic_timer_interrupt+0xfb/0x3b0 arch/x86/kernel/apic/apic.c:1094
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1088
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:104 [inline]
RIP: 0010:__local_bh_enable_ip+0x142/0x1c0 kernel/softirq.c:413
Code: 8a e8 72 e7 44 09 65 66 8b 05 7a a6 b0 7e 66 85 c0 75 54 bf 01 00 00 00 e8 3b 25 0a 00 e8 d6 42 3b 00 fb 65 8b 05 46 a6 b0 7e <85> c0 75 05 e8 35 8b ad ff 48 c7 04 24 0e 36 e0 45 4b c7 04 37 00
RSP: 0018:ffffc9000ca77ac0 EFLAGS: 00000282
RAX: 0000000080000000 RBX: 0000000000000201 RCX: e3d1f79cde884000
RDX: dffffc0000000000 RSI: ffffffff8aead140 RDI: ffffffff8b3c5260
RBP: ffffc9000ca77b48 R08: ffffffff92223617 R09: 1ffffffff24446c2
R10: dffffc0000000000 R11: fffffbfff24446c3 R12: ffffffff8a5c11e7
R13: ffff88807e6e9eb8 R14: dffffc0000000000 R15: 1ffff9200194ef58
spin_unlock_bh include/linux/spinlock.h:396 [inline]
__batadv_dat_purge net/batman-adv/distributed-arp-table.c:186 [inline]
batadv_dat_purge+0x2d7/0x3c0 net/batman-adv/distributed-arp-table.c:205
process_one_work kernel/workqueue.c:2657 [inline]
process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
</TASK>
* Struck through repros no longer work on HEAD.