INFO: task krfcommd:2708 blocked for more than 143 seconds. Tainted: G W 5.17.0-syzkaller-11407-gae085d7f9365 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:krfcommd state:D stack:28504 pid: 2708 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5073 [inline] __schedule+0x937/0x1090 kernel/sched/core.c:6382 schedule+0xeb/0x1b0 kernel/sched/core.c:6454 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6513 __mutex_lock_common+0xd1f/0x2590 kernel/locking/mutex.c:673 __mutex_lock kernel/locking/mutex.c:733 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785 rfcomm_process_sessions+0x21/0x3f0 net/bluetooth/rfcomm/core.c:2015 rfcomm_run+0x195/0x2c0 net/bluetooth/rfcomm/core.c:2122 kthread+0x2a3/0x2d0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INFO: task syz-executor425:3632 blocked for more than 143 seconds. Tainted: G W 5.17.0-syzkaller-11407-gae085d7f9365 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor425 state:D stack:26552 pid: 3632 ppid: 3626 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5073 [inline] __schedule+0x937/0x1090 kernel/sched/core.c:6382 schedule+0xeb/0x1b0 kernel/sched/core.c:6454 __lock_sock+0x1cf/0x330 net/core/sock.c:2770 lock_sock_nested+0x9f/0x100 net/core/sock.c:3317 lock_sock include/net/sock.h:1682 [inline] rfcomm_sk_state_change+0x63/0x300 net/bluetooth/rfcomm/sock.c:73 __rfcomm_dlc_close+0x2cc/0x480 net/bluetooth/rfcomm/core.c:489 rfcomm_dlc_close+0x10d/0x1c0 net/bluetooth/rfcomm/core.c:520 __rfcomm_sock_close+0x101/0x220 net/bluetooth/rfcomm/sock.c:220 rfcomm_sock_shutdown+0xa5/0x220 net/bluetooth/rfcomm/sock.c:905 rfcomm_sock_release+0x55/0x120 net/bluetooth/rfcomm/sock.c:925 __sock_release net/socket.c:650 [inline] sock_close+0xd8/0x260 net/socket.c:1318 __fput+0x3f6/0x860 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x5e3/0x20f0 kernel/exit.c:794 do_group_exit+0x2af/0x2b0 kernel/exit.c:924 get_signal+0x23e8/0x23f0 kernel/signal.c:2903 arch_do_signal_or_restart+0xa1/0x740 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:149 [inline] exit_to_user_mode_loop kernel/entry/common.c:187 [inline] exit_to_user_mode_prepare+0x165/0x200 kernel/entry/common.c:222 __syscall_exit_to_user_mode_work kernel/entry/common.c:304 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:315 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0cb3ad41b9 RSP: 002b:00007ffd902b0a48 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: fffffffffffffffc RBX: 0000000000000003 RCX: 00007f0cb3ad41b9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 0000000000000003 R08: 000000ff00000001 R09: 000000ff00000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000555555c642b8 R13: 0000000000000072 R14: 00007ffd902b0aa0 R15: 0000000000000003 INFO: lockdep is turned off. NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Tainted: G W 5.17.0-syzkaller-11407-gae085d7f9365 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc82/0xcd0 kernel/hung_task.c:369 kthread+0x2a3/0x2d0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 90 Comm: kworker/u4:3 Tainted: G W 5.17.0-syzkaller-11407-gae085d7f9365 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:__kasan_check_write+0x0/0x10 mm/kasan/shadow.c:37 Code: 4c 89 fe 31 c0 e8 98 25 93 ff eb d3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc 89 f6 48 8b 0c 24 31 d2 e9 c3 ee ff ff 0f 1f 00 <89> f6 48 8b 0c 24 ba 01 00 00 00 e9 b0 ee ff ff 55 41 56 53 48 89 RSP: 0018:ffffc90001c3f6b8 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888140160660 RBP: ffffc90001c3f7d0 R08: ffffffff813c767c R09: 0000000000000003 R10: fffff52000387ee5 R11: 0000000000000004 R12: ffffffff8cdeac40 R13: dffffc0000000000 R14: ffff888140160660 R15: ffff888140160000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c18b8b9a68 CR3: 000000000ca8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_write include/linux/instrumented.h:86 [inline] set_bit include/asm-generic/bitops/instrumented-atomic.h:28 [inline] cpumask_set_cpu include/linux/cpumask.h:346 [inline] switch_mm_irqs_off+0x270/0x910 arch/x86/mm/tlb.c:614 use_temporary_mm arch/x86/kernel/alternative.c:962 [inline] __text_poke+0x5bd/0x9f0 arch/x86/kernel/alternative.c:1059 text_poke arch/x86/kernel/alternative.c:1121 [inline] text_poke_bp_batch+0x680/0x920 arch/x86/kernel/alternative.c:1436 text_poke_flush arch/x86/kernel/alternative.c:1542 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1549 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0xcc/0x1b0 kernel/jump_label.c:207 static_key_disable+0x16/0x20 kernel/jump_label.c:215 toggle_allocation_gate+0x3c8/0x460 mm/kfence/core.c:793 process_one_work+0x83c/0x11a0 kernel/workqueue.c:2289 worker_thread+0xa6c/0x1290 kernel/workqueue.c:2436 kthread+0x2a3/0x2d0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.027 msecs ---------------- Code disassembly (best guess): 0: 4c 89 fe mov %r15,%rsi 3: 31 c0 xor %eax,%eax 5: e8 98 25 93 ff callq 0xff9325a2 a: eb d3 jmp 0xffffffdf c: cc int3 d: cc int3 e: cc int3 f: cc int3 10: cc int3 11: cc int3 12: cc int3 13: cc int3 14: cc int3 15: cc int3 16: cc int3 17: cc int3 18: cc int3 19: cc int3 1a: 89 f6 mov %esi,%esi 1c: 48 8b 0c 24 mov (%rsp),%rcx 20: 31 d2 xor %edx,%edx 22: e9 c3 ee ff ff jmpq 0xffffeeea 27: 0f 1f 00 nopl (%rax) * 2a: 89 f6 mov %esi,%esi <-- trapping instruction 2c: 48 8b 0c 24 mov (%rsp),%rcx 30: ba 01 00 00 00 mov $0x1,%edx 35: e9 b0 ee ff ff jmpq 0xffffeeea 3a: 55 push %rbp 3b: 41 56 push %r14 3d: 53 push %rbx 3e: 48 rex.W 3f: 89 .byte 0x89