INFO: task syz-executor201:3623 blocked for more than 143 seconds. Not tainted 5.18.0-next-20220527-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor201 state:D stack:28032 pid: 3623 ppid: 3620 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 rwsem_down_write_slowpath+0x68a/0x11a0 kernel/locking/rwsem.c:1172 __down_write_common kernel/locking/rwsem.c:1287 [inline] __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1296 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1543 filemap_invalidate_lock include/linux/fs.h:786 [inline] blkdev_fallocate+0x1e2/0x410 block/fops.c:637 vfs_fallocate+0x487/0xe00 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xcf/0x140 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f6953cabe29 RSP: 002b:00007ffebb6a7498 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f6953cabe29 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: 7fffffffffffffff R11: 0000000000000246 R12: 00007f6953c6f600 R13: 0000000000000000 R14: 00007ffebb6a74c0 R15: 00007ffebb6a74b0 INFO: task syz-executor201:3625 blocked for more than 143 seconds. Not tainted 5.18.0-next-20220527-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor201 state:D stack:27440 pid: 3625 ppid: 3622 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 rwsem_down_write_slowpath+0x68a/0x11a0 kernel/locking/rwsem.c:1172 __down_write_common kernel/locking/rwsem.c:1287 [inline] __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1296 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1543 filemap_invalidate_lock include/linux/fs.h:786 [inline] blkdev_fallocate+0x1e2/0x410 block/fops.c:637 vfs_fallocate+0x487/0xe00 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xcf/0x140 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f6953cabe29 RSP: 002b:00007ffebb6a7498 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f6953cabe29 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: 7fffffffffffffff R11: 0000000000000246 R12: 00007f6953c6f600 R13: 0000000000000000 R14: 00007ffebb6a74c0 R15: 00007ffebb6a74b0 INFO: task syz-executor201:3643 blocked for more than 143 seconds. Not tainted 5.18.0-next-20220527-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor201 state:D stack:27344 pid: 3643 ppid: 3614 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 rwsem_down_write_slowpath+0x68a/0x11a0 kernel/locking/rwsem.c:1172 __down_write_common kernel/locking/rwsem.c:1287 [inline] __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1296 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1543 filemap_invalidate_lock include/linux/fs.h:786 [inline] blkdev_fallocate+0x1e2/0x410 block/fops.c:637 vfs_fallocate+0x487/0xe00 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xcf/0x140 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f6953cabe29 RSP: 002b:00007ffebb6a7498 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f6953cabe29 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: 7fffffffffffffff R11: 0000000000000246 R12: 000000000000cf47 R13: 00007ffebb6a74ac R14: 00007ffebb6a74c0 R15: 00007ffebb6a74b0 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8bd87060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491 2 locks held by getty/3290: #0: ffff88814ad6d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002cd62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124 1 lock held by syz-executor201/3621: 1 lock held by syz-executor201/3623: #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline] #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637 1 lock held by syz-executor201/3625: #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline] #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637 1 lock held by syz-executor201/3643: #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline] #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637 1 lock held by syz-executor201/3644: #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline] #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637 1 lock held by syz-executor201/3651: #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline] #0: ffff888140caf6c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 5.18.0-next-20220527-syzkaller #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+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xc22/0xf90 kernel/hung_task.c:378 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 1214 Comm: kworker/u4:6 Not tainted 5.18.0-next-20220527-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:load_new_mm_cr3+0x32/0x130 arch/x86/mm/tlb.c:294 Code: f3 74 2a e9 85 00 00 00 48 89 ef e8 88 f8 ff ff 66 81 fb fe 0f 48 89 c6 0f 87 df 00 00 00 83 c3 01 0f b7 c3 48 09 f0 0f 22 d8 <5b> 5d c3 66 81 fe fe 0f 77 68 be 08 00 00 00 48 c7 c7 70 4f bb 8d RSP: 0018:ffffc900056af968 EFLAGS: 00000093 RAX: 000000000ba8e000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801ee69d80 RSI: ffffffff81366cf4 RDI: 0000000000000007 RBP: ffffffff8ba8e000 R08: 0000000000000007 R09: 000000001fffffff R10: 000000000ba8e000 R11: 0000000000000001 R12: ffff888140168000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556c1a2c0 CR3: 000000000ba8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: switch_mm_irqs_off+0x496/0xa10 arch/x86/mm/tlb.c:628 unuse_temporary_mm arch/x86/kernel/alternative.c:984 [inline] __text_poke+0x54b/0x8e0 arch/x86/kernel/alternative.c:1094 text_poke arch/x86/kernel/alternative.c:1137 [inline] text_poke_bp_batch+0x44a/0x6c0 arch/x86/kernel/alternative.c:1483 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:830 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:808 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:800 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.191 msecs ---------------- Code disassembly (best guess): 0: f3 74 2a repz je 0x2d 3: e9 85 00 00 00 jmpq 0x8d 8: 48 89 ef mov %rbp,%rdi b: e8 88 f8 ff ff callq 0xfffff898 10: 66 81 fb fe 0f cmp $0xffe,%bx 15: 48 89 c6 mov %rax,%rsi 18: 0f 87 df 00 00 00 ja 0xfd 1e: 83 c3 01 add $0x1,%ebx 21: 0f b7 c3 movzwl %bx,%eax 24: 48 09 f0 or %rsi,%rax 27: 0f 22 d8 mov %rax,%cr3 * 2a: 5b pop %rbx <-- trapping instruction 2b: 5d pop %rbp 2c: c3 retq 2d: 66 81 fe fe 0f cmp $0xffe,%si 32: 77 68 ja 0x9c 34: be 08 00 00 00 mov $0x8,%esi 39: 48 c7 c7 70 4f bb 8d mov $0xffffffff8dbb4f70,%rdi