INFO: task udevd:13406 blocked for more than 143 seconds. Not tainted 5.16.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:26528 pid:13406 ppid: 2970 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4900 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 io_schedule+0xee/0x170 kernel/sched/core.c:8371 folio_wait_bit_common+0x4f2/0xa60 mm/filemap.c:1371 folio_wait_bit mm/filemap.c:1431 [inline] folio_wait_locked include/linux/pagemap.h:850 [inline] folio_wait_locked include/linux/pagemap.h:847 [inline] wait_on_page_locked include/linux/pagemap.h:862 [inline] wait_on_page_read mm/filemap.c:3428 [inline] do_read_cache_page+0x986/0x11a0 mm/filemap.c:3471 read_mapping_page include/linux/pagemap.h:650 [inline] read_part_sector+0xf6/0x5b0 block/partitions/core.c:728 adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360 check_partition block/partitions/core.c:149 [inline] blk_add_partitions block/partitions/core.c:613 [inline] bdev_disk_changed+0x759/0x1100 block/partitions/core.c:699 blkdev_get_whole+0x206/0x2d0 block/bdev.c:684 blkdev_get_by_dev.part.0+0x5c6/0xc70 block/bdev.c:826 blkdev_get_by_dev+0x6b/0x80 block/bdev.c:860 blkdev_open+0x154/0x2e0 block/fops.c:501 do_dentry_open+0x4b9/0x1240 fs/open.c:822 do_open fs/namei.c:3426 [inline] path_openat+0x1cad/0x2750 fs/namei.c:3559 do_filp_open+0x1aa/0x400 fs/namei.c:3586 do_sys_openat2+0x16d/0x4d0 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_openat fs/open.c:1244 [inline] __se_sys_openat fs/open.c:1239 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1239 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:0x7f3cae36a697 RSP: 002b:00007ffef77d65b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055df88d19400 RCX: 00007f3cae36a697 RDX: 00000000000a0800 RSI: 000055df88cd31c0 RDI: 00000000ffffff9c RBP: 000055df88cd31c0 R08: 0000000000000001 R09: 00007ffef77e8080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055df88cdba90 R14: 0000000000000001 R15: 000055df88cd2910 INFO: task syz-executor.1:15492 blocked for more than 143 seconds. Not tainted 5.16.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:28144 pid:15492 ppid: 3628 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4900 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6385 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 blkdev_put+0x99/0x950 block/bdev.c:915 blkdev_close+0x6a/0x80 block/fops.c:515 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fe6a834aafb RSP: 002b:00007ffc97bb2370 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fe6a834aafb RDX: 0000000000000000 RSI: 0000001b2e2238f8 RDI: 0000000000000003 RBP: 00007fe6a84ac960 R08: 0000000000000000 R09: 00000000f2402412 R10: 0000000000000000 R11: 0000000000000293 R12: 00000000002f4231 R13: 00007ffc97bb2470 R14: 00007ffc97bb2490 R15: 0000000000000032 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb84920 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 2 locks held by getty/3281: #0: ffff88814a7b8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc90002b932e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 1 lock held by udevd/13406: #0: ffff88801a939118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xc70 block/bdev.c:817 1 lock held by syz-executor.1/15492: #0: ffff88801a939118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x99/0x950 block/bdev.c:915 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-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+0x1b3/0x230 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: 3592 Comm: syz-fuzzer Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_preemption_disabled+0x3e/0x170 lib/smp_processor_id.c:56 Code: 44 8b 25 dd 53 b9 76 65 8b 1d 0e aa b9 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: 0000:ffffc90001a9fb40 EFLAGS: 00000002 RAX: 0000000000000001 RBX: 1ffff92000353f74 RCX: ffffffff815c91c8 RDX: 0000000000000001 RSI: 0000000000000102 RDI: 0000000000000000 RBP: ffffffff8a055da0 R08: 0000000000000000 R09: ffffffff8d929397 R10: fffffbfff1b25272 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff8a055d60 R14: ffffc90001a9fcb8 R15: 0000000000000000 FS: 000000c00002e490(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055becd120aa8 CR3: 0000000074419000 CR4: 0000000000350ee0 Call Trace: rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:330 [inline] rcu_is_watching+0xe/0xb0 kernel/rcu/tree.c:1128 rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_sched_held+0x1c/0x70 kernel/rcu/update.c:123 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x442/0x510 kernel/locking/lockdep.c:5608 call_timer_fn+0x12b/0x6b0 kernel/time/timer.c:1418 expire_timers kernel/time/timer.c:1461 [inline] __run_timers.part.0+0x4a6/0xa30 kernel/time/timer.c:1734 __run_timers kernel/time/timer.c:1715 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x45/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0033:0x46e243 Code: 24 20 c3 cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14 4c 8b 54 24 18 4c 8b 44 24 20 44 8b 4c 24 28 b8 ca 00 00 00 0f 05 <89> 44 24 30 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc RSP: 002b:000000c00003fd98 EFLAGS: 00000286 RAX: 0000000000000000 RBX: 000000c00002e400 RCX: 000000000046e243 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000c00002e548 RBP: 000000c00003fde0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000003 R13: 000000c000000900 R14: 000080c022800000 R15: 000000c0216bc508 ---------------- Code disassembly (best guess): 0: 44 8b 25 dd 53 b9 76 mov 0x76b953dd(%rip),%r12d # 0x76b953e4 7: 65 8b 1d 0e aa b9 76 mov %gs:0x76b9aa0e(%rip),%ebx # 0x76b9aa1c 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