INFO: task syz-executor.2:20022 blocked for more than 143 seconds. Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28288 pid:20022 ppid:5060 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x1d15/0x5790 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 filemap_invalidate_lock include/linux/fs.h:820 [inline] blk_ioctl_zeroout block/ioctl.c:182 [inline] blkdev_common_ioctl+0xd8f/0x1a40 block/ioctl.c:486 blkdev_ioctl+0x2c8/0x7f0 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6271e8c169 RSP: 002b:00007f62709dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6271fac050 RCX: 00007f6271e8c169 RDX: 0000000020000080 RSI: 000000000000127f RDI: 0000000000000007 RBP: 00007f6271ee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd3efac90f R14: 00007f62709dd300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c798530 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c798230 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8c799140 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6559 2 locks held by getty/4758: #0: ffff888028bdb098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 2 locks held by kworker/1:0/5047: #0: ffff8880b983c5d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:566 [inline] #0: ffff8880b983c5d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x90/0x120 kernel/sched/core.c:551 #1: ffff8880b9928848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2de/0x950 kernel/sched/psi.c:995 2 locks held by kworker/u4:19/19340: 2 locks held by syz-executor.0/19991: 1 lock held by syz-executor.2/20022: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:820 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xd8f/0x1a40 block/ioctl.c:486 1 lock held by syz-executor.1/20025: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 mm/readahead.c:226 1 lock held by syz-executor.1/20028: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 mm/readahead.c:226 1 lock held by syz-executor.0/20072: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 mm/readahead.c:226 1 lock held by syz-executor.0/20073: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 mm/readahead.c:226 1 lock held by syz-executor.2/20096: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:820 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xd8f/0x1a40 block/ioctl.c:486 1 lock held by syz-executor.1/20132: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 mm/readahead.c:226 1 lock held by syz-executor.1/20133: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 mm/readahead.c:226 1 lock held by syz-executor.2/20154: #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:820 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff88801e1e93b0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xd8f/0x1a40 block/ioctl.c:486 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 15873 Comm: kworker/u4:16 Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:285 [inline] RIP: 0010:smp_call_function_many_cond+0x665/0x1240 kernel/smp.c:828 Code: 14 30 48 89 c8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 45 0b 00 00 8b 6b 08 31 ff 83 e5 01 89 ee e8 2f 41 0b 00 85 ed 74 48 <48> 8b 44 24 08 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 f4 83 RSP: 0018:ffffc90016057948 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffff8880b98451e0 RCX: ffffffff8178dea1 RDX: ffff88809aca0000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000000 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556f8f848 CR3: 000000000c571000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:996 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1925 [inline] text_poke_bp_batch+0x423/0x770 arch/x86/kernel/alternative.c:2187 text_poke_flush arch/x86/kernel/alternative.c:2316 [inline] text_poke_flush arch/x86/kernel/alternative.c:2313 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2323 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:831 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:823 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2407 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2554 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308