INFO: task udevd:5059 blocked for more than 143 seconds. Not tainted 6.2.0-rc4-syzkaller-00241-gff83fec8179e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:25840 pid:5059 ppid:4421 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6606 schedule+0xcb/0x190 kernel/sched/core.c:6682 io_schedule+0x83/0x100 kernel/sched/core.c:8862 folio_wait_bit_common+0x8ca/0x1390 mm/filemap.c:1297 folio_put_wait_locked mm/filemap.c:1466 [inline] do_read_cache_folio+0xb9/0x790 mm/filemap.c:3535 read_mapping_folio include/linux/pagemap.h:761 [inline] read_part_sector+0xcb/0x360 block/partitions/core.c:717 adfspart_check_ICS+0xd4/0x950 block/partitions/acorn.c:360 check_partition block/partitions/core.c:146 [inline] blk_add_partitions block/partitions/core.c:602 [inline] bdev_disk_changed+0x79d/0x1420 block/partitions/core.c:688 blkdev_get_whole+0x342/0x3d0 block/bdev.c:685 blkdev_get_by_dev+0x300/0xa60 block/bdev.c:822 blkdev_open+0x128/0x2e0 block/fops.c:478 do_dentry_open+0x85f/0x11b0 fs/open.c:882 do_open fs/namei.c:3557 [inline] path_openat+0x25cc/0x2de0 fs/namei.c:3714 do_filp_open+0x275/0x500 fs/namei.c:3741 do_sys_openat2+0x13b/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 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+0x63/0xcd RIP: 0033:0x7f30ba925697 RSP: 002b:00007ffed4836790 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000561c1f6651a0 RCX: 00007f30ba925697 RDX: 00000000000a0800 RSI: 0000561c1f66abd0 RDI: 00000000ffffff9c RBP: 0000561c1f66abd0 R08: 0000000000000001 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 0000561c1f6400c0 R14: 0000000000000001 R15: 0000561c1f63f910 INFO: task syz-executor176:5073 blocked for more than 143 seconds. Not tainted 6.2.0-rc4-syzkaller-00241-gff83fec8179e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor176 state:D stack:26936 pid:5073 ppid:5054 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6606 schedule+0xcb/0x190 kernel/sched/core.c:6682 blk_mq_freeze_queue_wait+0x105/0x190 block/blk-mq.c:180 nbd_add_socket+0x17b/0x8e0 drivers/block/nbd.c:1122 __nbd_ioctl drivers/block/nbd.c:1465 [inline] nbd_ioctl+0x1d5/0x5b0 drivers/block/nbd.c:1522 blkdev_ioctl+0x3c9/0x7c0 block/ioctl.c:616 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 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+0x63/0xcd RIP: 0033:0x7ff92f5b3239 RSP: 002b:00007ff92f560308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff92f637408 RCX: 00007ff92f5b3239 RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003 RBP: 00007ff92f637400 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff92f63740c R13: 00007ff92f6041a4 R14: 64626e2f7665642f R15: 0000000000022000 INFO: task syz-executor176:5074 blocked for more than 143 seconds. Not tainted 6.2.0-rc4-syzkaller-00241-gff83fec8179e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor176 state:D stack:28904 pid:5074 ppid:5054 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6606 schedule+0xcb/0x190 kernel/sched/core.c:6682 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6741 __mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 nbd_ioctl+0xd7/0x5b0 drivers/block/nbd.c:1515 blkdev_ioctl+0x3c9/0x7c0 block/ioctl.c:616 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 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+0x63/0xcd RIP: 0033:0x7ff92f5b3239 RSP: 002b:00007ff92f53f308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff92f637418 RCX: 00007ff92f5b3239 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007ff92f637410 R08: 00007ff92f53f700 R09: 0000000000000000 R10: 00007ff92f53f700 R11: 0000000000000246 R12: 00007ff92f63741c R13: 00007ff92f6041a4 R14: 64626e2f7665642f R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d523a50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d524250 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d523880 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4739: #0: ffff88814a902098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 1 lock held by udevd/5059: #0: ffff888146def4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfe/0xa60 block/bdev.c:813 1 lock held by syz-executor176/5073: #0: ffff888146e081a0 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0xd7/0x5b0 drivers/block/nbd.c:1515 1 lock held by syz-executor176/5074: #0: ffff888146e081a0 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0xd7/0x5b0 drivers/block/nbd.c:1515 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc4-syzkaller-00241-gff83fec8179e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e3/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x19b/0x3e0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 46 Comm: kworker/u4:3 Not tainted 6.2.0-rc4-syzkaller-00241-gff83fec8179e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:lock_is_held_type+0x12f/0x190 kernel/locking/lockdep.c:5713 Code: e8 76 14 00 00 b8 ff ff ff ff 65 0f c1 05 e9 5d 3c 75 83 f8 01 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 <75> 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 48 RSP: 0018:ffffc90000b775f8 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000006 RCX: 0000000080000002 RDX: 0000000000000000 RSI: ffffffff8b0dab60 RDI: ffffffff8b6978c0 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1d60956 R10: fffffbfff1d60956 R11: 1ffffffff1d60955 R12: 0000000000000046 R13: ffff888018768000 R14: 00000000ffffffff R15: ffffffff8d523800 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560f3a7b2680 CR3: 0000000012863000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125 trace_tlb_flush+0x93/0x210 include/trace/events/tlb.h:38 switch_mm_irqs_off+0x62a/0xa70 use_temporary_mm arch/x86/kernel/alternative.c:1496 [inline] __text_poke+0x5c2/0x9d0 arch/x86/kernel/alternative.c:1607 text_poke arch/x86/kernel/alternative.c:1671 [inline] text_poke_bp_batch+0x64c/0x850 arch/x86/kernel/alternative.c:2027 text_poke_flush arch/x86/kernel/alternative.c:2131 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:2138 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0xc8/0x1b0 kernel/jump_label.c:235 static_key_disable+0x16/0x20 kernel/jump_label.c:243 toggle_allocation_gate+0x1b8/0x250 mm/kfence/core.c:804 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 arch/x86/entry/entry_64.S:308 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.077 msecs