INFO: task syz-executor.3:8013 blocked for more than 143 seconds. Not tainted 6.0.0-rc4-syzkaller-00302-gb96fbd602d35 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:28456 pid: 8013 ppid: 31922 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6629 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa44/0x1350 kernel/locking/mutex.c:747 evdev_release+0x79/0x410 drivers/input/evdev.c:441 __fput+0x277/0x9d0 fs/file_table.c:320 task_work_run+0xdd/0x1a0 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4ef8e893c9 RSP: 002b:00007f4efa020168 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000003 RBX: 00007f4ef8f9bf80 RCX: 00007f4ef8e893c9 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007f4ef8ee433f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4ef94cfb1f R14: 00007f4efa020300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf888b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bf885b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8bf89400 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 1 lock held by syslogd/2955: #0: ffff8880b9a39f98 (&rq->__lock){-.-.}-{2:2}, at: vtime_task_switch include/linux/vtime.h:95 [inline] #0: ffff8880b9a39f98 (&rq->__lock){-.-.}-{2:2}, at: finish_task_switch.isra.0+0x607/0xc70 kernel/sched/core.c:5056 1 lock held by klogd/2962: #0: ffff8880b9a39f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:552 [inline] #0: ffff8880b9a39f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x8c/0x120 kernel/sched/core.c:537 2 locks held by getty/3291: #0: ffff88801fd8a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 2 locks held by kworker/u4:2/5930: 1 lock held by syz-executor.3/8013: #0: ffff888021c5c110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_release+0x79/0x410 drivers/input/evdev.c:441 1 lock held by syz-executor.3/8025: 1 lock held by syz-executor.3/8269: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.0.0-rc4-syzkaller-00302-gb96fbd602d35 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x46/0x14f lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x206/0x250 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc18/0xf50 kernel/hung_task.c:369 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 92 Comm: kworker/u4:4 Not tainted 6.0.0-rc4-syzkaller-00302-gb96fbd602d35 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:ptlock_ptr include/linux/mm.h:2224 [inline] RIP: 0010:pte_lockptr include/linux/mm.h:2248 [inline] RIP: 0010:__get_locked_pte+0x209/0x270 mm/memory.c:1838 Code: 00 00 00 ea ff ff 48 c1 eb 18 48 c1 e3 06 48 01 c3 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 28 48 89 fa 48 c1 ea 03 80 3c 02 00 <75> 35 4c 8b 73 28 48 bb 00 f0 ff ff ff ff 0f 00 e9 f7 fe ff ff 45 RSP: 0018:ffffc900015d79a0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffea0005003e80 RCX: 0000000000000000 RDX: 1ffffd4000a007d5 RSI: ffffffff81b52187 RDI: ffffea0005003ea8 RBP: 0000000000000558 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 00000001400fa067 R13: ffffc900015d7a40 R14: 00000000001400fa R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fa4c845600 CR3: 000000000bc8e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_locked_pte include/linux/mm.h:2089 [inline] __text_poke+0x1b3/0x8e0 arch/x86/kernel/alternative.c:1123 text_poke arch/x86/kernel/alternative.c:1208 [inline] text_poke_bp_batch+0x382/0x6c0 arch/x86/kernel/alternative.c:1503 text_poke_flush arch/x86/kernel/alternative.c:1660 [inline] text_poke_flush arch/x86/kernel/alternative.c:1657 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1667 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:801 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:811 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:803 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306