INFO: task syz-executor.4:5850 blocked for more than 143 seconds. Not tainted 5.18.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:26144 pid: 5850 ppid: 3625 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5073 [inline] __schedule+0x939/0xea0 kernel/sched/core.c:6388 schedule+0xeb/0x1b0 kernel/sched/core.c:6460 rwsem_down_write_slowpath+0xd87/0x1460 kernel/locking/rwsem.c:1142 __down_write_common kernel/locking/rwsem.c:1259 [inline] __down_write kernel/locking/rwsem.c:1268 [inline] down_write+0x163/0x170 kernel/locking/rwsem.c:1515 filemap_invalidate_lock include/linux/fs.h:793 [inline] blkdev_fallocate+0x21f/0x390 block/fops.c:654 vfs_fallocate+0x515/0x670 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0xb9/0x100 fs/open.c:337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f2166e89049 RSP: 002b:00007f2167f93168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f2166f9bf60 RCX: 00007f2166e89049 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 00007f2166ee308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcb5009f3f R14: 00007f2167f93300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8c91aea0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3281: #0: ffff88801e6ea098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002e732e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ad/0x1c90 drivers/tty/n_tty.c:2075 3 locks held by kworker/u4:9/12978: #0: ffff8880b9d39b98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:554 #1: ffffc9000bfafd00 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff8880b9d28358 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x12a/0x270 kernel/time/timer.c:946 1 lock held by syz-executor.4/5850: #0: ffff8880114770c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:793 [inline] #0: ffff8880114770c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x21f/0x390 block/fops.c:654 1 lock held by syz-executor.1/5851: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.18.0-rc2-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+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x168/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+0xcf9/0xd40 kernel/hung_task.c:369 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 12978 Comm: kworker/u4:9 Not tainted 5.18.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x60 kernel/kcov.c:199 Code: 00 00 00 00 66 90 53 48 89 fb e8 17 00 00 00 48 8b 3d a8 5c 5a 0c 48 89 de 5b e9 27 f9 4f 00 cc cc cc cc cc cc cc 48 8b 04 24 <65> 48 8b 0c 25 80 6f 02 00 65 8b 15 d4 98 7c 7e f7 c2 00 01 ff 00 RSP: 0018:ffffc9000bfaf700 EFLAGS: 00000046 RAX: ffffffff818c7f55 RBX: ffffffff8139f79d RCX: 0000000000000000 RDX: ffff88807d5eba00 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff818c7f40 R09: ffffed10173a758b R10: ffffed10173a758b R11: 1ffff110173a758a R12: 1ffff920017f5ee8 R13: dffffc0000000000 R14: ffffc9000bfaf760 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055af0ba90880 CR3: 000000000c68e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_hardirqs_off+0x65/0x70 kernel/trace/trace_preemptirq.c:82 _flat_send_IPI_mask+0xdd/0x190 arch/x86/kernel/apic/apic_flat_64.c:55 smp_call_function_many_cond+0x890/0xde0 kernel/smp.c:949 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1184 [inline] text_poke_bp_batch+0x653/0x960 arch/x86/kernel/alternative.c:1425 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+0xc8/0x1b0 kernel/jump_label.c:207 static_key_disable+0x16/0x20 kernel/jump_label.c:215 toggle_allocation_gate+0x3d8/0x470 mm/kfence/core.c:799 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 66 90 xchg %ax,%ax 6: 53 push %rbx 7: 48 89 fb mov %rdi,%rbx a: e8 17 00 00 00 callq 0x26 f: 48 8b 3d a8 5c 5a 0c mov 0xc5a5ca8(%rip),%rdi # 0xc5a5cbe 16: 48 89 de mov %rbx,%rsi 19: 5b pop %rbx 1a: e9 27 f9 4f 00 jmpq 0x4ff946 1f: cc int3 20: cc int3 21: cc int3 22: cc int3 23: cc int3 24: cc int3 25: cc int3 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 0c 25 80 6f mov %gs:0x26f80,%rcx <-- trapping instruction 31: 02 00 33: 65 8b 15 d4 98 7c 7e mov %gs:0x7e7c98d4(%rip),%edx # 0x7e7c990e 3a: f7 c2 00 01 ff 00 test $0xff0100,%edx