INFO: task syz-executor.0:32367 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24376 pid:32367 ppid: 15992 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 __bio_queue_enter+0x3c5/0x6a0 block/blk-core.c:441 bio_queue_enter block/blk.h:91 [inline] blk_mq_get_request block/blk-mq.c:2588 [inline] blk_mq_submit_bio+0x4ae/0x22c0 block/blk-mq.c:2632 __submit_bio block/blk-core.c:849 [inline] __submit_bio_noacct_mq block/blk-core.c:924 [inline] submit_bio_noacct block/blk-core.c:950 [inline] submit_bio_noacct+0x82c/0xa20 block/blk-core.c:939 submit_bio block/blk-core.c:1011 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:969 mpage_bio_submit fs/mpage.c:66 [inline] mpage_readahead+0x589/0x750 fs/mpage.c:393 read_pages+0x1e4/0xfa0 mm/readahead.c:129 page_cache_ra_unbounded+0x64b/0x940 mm/readahead.c:238 do_page_cache_ra mm/readahead.c:268 [inline] ondemand_readahead+0x594/0x1090 mm/readahead.c:551 page_cache_async_ra mm/readahead.c:608 [inline] page_cache_async_ra+0x2e1/0x3f0 mm/readahead.c:583 page_cache_async_readahead include/linux/pagemap.h:1036 [inline] filemap_readahead mm/filemap.c:2531 [inline] filemap_get_pages+0x6f1/0x1be0 mm/filemap.c:2572 filemap_read+0x315/0xeb0 mm/filemap.c:2642 generic_file_read_iter+0x3b6/0x5a0 mm/filemap.c:2792 blkdev_read_iter+0xf8/0x1d0 block/fops.c:583 call_read_iter include/linux/fs.h:2156 [inline] generic_file_splice_read+0x453/0x6d0 fs/splice.c:311 do_splice_to+0x1bf/0x250 fs/splice.c:796 splice_direct_to_actor+0x2c2/0x8c0 fs/splice.c:870 do_splice_direct+0x1b3/0x280 fs/splice.c:979 do_sendfile+0xaf2/0x1250 fs/read_write.c:1245 __do_sys_sendfile64 fs/read_write.c:1310 [inline] __se_sys_sendfile64 fs/read_write.c:1296 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1296 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+0x44/0xae RIP: 0033:0x7f18fe2a3ae9 RSP: 002b:00007f18fb819188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f18fe3b6f60 RCX: 00007f18fe2a3ae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f18fe2fdf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000024002da8 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe56f8494f R14: 00007f18fb819300 R15: 0000000000022000 INFO: task syz-executor.0:32374 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28480 pid:32374 ppid: 15992 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 loop_set_status+0x17d/0x930 drivers/block/loop.c:1264 loop_set_status_old+0x148/0x1b0 drivers/block/loop.c:1396 lo_ioctl+0x3e9/0x17c0 drivers/block/loop.c:1566 blkdev_ioctl+0x37a/0x800 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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+0x44/0xae RIP: 0033:0x7f18fe2a3ae9 RSP: 002b:00007f18fb7f8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f18fe3b7020 RCX: 00007f18fe2a3ae9 RDX: 0000000020000780 RSI: 0000000000004c02 RDI: 0000000000000004 RBP: 00007f18fe2fdf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe56f8494f R14: 00007f18fb7f8300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83ae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 1 lock held by in:imklog/6212: #0: ffff888018975270 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by syz-executor.3/13954: #0: ffff888148464130 (&clk->rwsem){.+.+}-{3:3}, at: get_posix_clock kernel/time/posix-clock.c:24 [inline] #0: ffff888148464130 (&clk->rwsem){.+.+}-{3:3}, at: posix_clock_read+0x54/0x190 kernel/time/posix-clock.c:42 #1: ffff888148465760 (&ptp->tsevq_mux){+.+.}-{3:3}, at: ptp_read+0xd3/0x7e0 drivers/ptp/ptp_chardev.c:461 2 locks held by syz-executor.3/14016: #0: ffff888148464130 (&clk->rwsem){.+.+}-{3:3}, at: get_posix_clock kernel/time/posix-clock.c:24 [inline] #0: ffff888148464130 (&clk->rwsem){.+.+}-{3:3}, at: posix_clock_read+0x54/0x190 kernel/time/posix-clock.c:42 #1: ffff888148465760 (&ptp->tsevq_mux){+.+.}-{3:3}, at: ptp_read+0xd3/0x7e0 drivers/ptp/ptp_chardev.c:461 2 locks held by syz-executor.3/14117: #0: ffff888148464130 (&clk->rwsem){.+.+}-{3:3}, at: get_posix_clock kernel/time/posix-clock.c:24 [inline] #0: ffff888148464130 (&clk->rwsem){.+.+}-{3:3}, at: posix_clock_read+0x54/0x190 kernel/time/posix-clock.c:42 #1: ffff888148465760 (&ptp->tsevq_mux){+.+.}-{3:3}, at: ptp_read+0xd3/0x7e0 drivers/ptp/ptp_chardev.c:461 2 locks held by agetty/25376: #0: ffff888031493098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc90002f7f2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 5 locks held by kworker/0:1/25666: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffff8880b9c279c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x173/0x490 kernel/sched/psi.c:871 #2: ffff8880b9c28298 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:946 #3: ffffffff906b45a8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:661 #4: ffffffff90758768 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:980 [inline] #4: ffffffff90758768 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0xc7/0x420 lib/debugobjects.c:1023 1 lock held by syz-executor.0/32367: #0: ffff88801109e788 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff88801109e788 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: page_cache_ra_unbounded+0x1b3/0x940 mm/readahead.c:194 1 lock held by syz-executor.0/32374: #0: ffff88801a811360 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0x930 drivers/block/loop.c:1248 2 locks held by systemd-udevd/32377: #0: ffff88801a815918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801a811360 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-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:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 14819 Comm: kworker/u4:11 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:check_preemption_disabled+0x3e/0x170 lib/smp_processor_id.c:56 Code: 44 8b 25 7d dc af 76 65 8b 1d ee 36 b0 76 81 e3 ff ff ff 7f 31 ff 89 de 0f 1f 44 00 00 85 db 74 11 0f 1f 44 00 00 44 89 e0 5b <5d> 41 5c 41 5d 41 5e c3 0f 1f 44 00 00 9c 5b 81 e3 00 02 00 00 31 RSP: 0018:ffffc90014fc7900 EFLAGS: 00000002 RAX: 0000000000000001 RBX: ffffffff8d91a78c RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffffff8a051760 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000000003f R12: 0000000000000001 R13: ffffffff89ac0f20 R14: ffff888022a25700 R15: ffffffff8bcb0500 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6e35897000 CR3: 000000000b88e000 CR4: 0000000000350ee0 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:433 [inline] lock_release+0x15a/0x720 kernel/locking/lockdep.c:5656 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:389 [inline] __text_poke+0x5d4/0x8c0 arch/x86/kernel/alternative.c:1059 text_poke_bp_batch+0x3d7/0x560 arch/x86/kernel/alternative.c:1361 text_poke_flush arch/x86/kernel/alternative.c:1451 [inline] text_poke_flush arch/x86/kernel/alternative.c:1448 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1458 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d5/0x430 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:732 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:724 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: 44 8b 25 7d dc af 76 mov 0x76afdc7d(%rip),%r12d # 0x76afdc84 7: 65 8b 1d ee 36 b0 76 mov %gs:0x76b036ee(%rip),%ebx # 0x76b036fc e: 81 e3 ff ff ff 7f and $0x7fffffff,%ebx 14: 31 ff xor %edi,%edi 16: 89 de mov %ebx,%esi 18: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 1d: 85 db test %ebx,%ebx 1f: 74 11 je 0x32 21: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 26: 44 89 e0 mov %r12d,%eax 29: 5b pop %rbx * 2a: 5d pop %rbp <-- trapping instruction 2b: 41 5c pop %r12 2d: 41 5d pop %r13 2f: 41 5e pop %r14 31: c3 retq 32: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 37: 9c pushfq 38: 5b pop %rbx 39: 81 e3 00 02 00 00 and $0x200,%ebx 3f: 31 .byte 0x31