INFO: task syz-executor364:3644 blocked for more than 143 seconds. Not tainted 6.0.0-rc3-syzkaller-00363-g7726d4c3e60b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor364 state:D stack:27536 pid: 3644 ppid: 3634 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:180 nbd_add_socket+0x166/0x810 drivers/block/nbd.c:1123 __nbd_ioctl drivers/block/nbd.c:1464 [inline] nbd_ioctl+0x4ab/0xbd0 drivers/block/nbd.c:1521 blkdev_ioctl+0x36e/0x800 block/ioctl.c:614 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+0x193/0x200 fs/ioctl.c:856 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+0x63/0xcd RIP: 0033:0x7f5e3e358399 RSP: 002b:00007ffdf22867c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000000782be RCX: 00007f5e3e358399 RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffdf2286968 R09: 00007ffdf2286968 R10: 00007ffdf2286968 R11: 0000000000000246 R12: 00007ffdf22867dc R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 INFO: task udevd:3645 blocked for more than 143 seconds. Not tainted 6.0.0-rc3-syzkaller-00363-g7726d4c3e60b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:27648 pid: 3645 ppid: 2971 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 io_schedule+0xba/0x130 kernel/sched/core.c:8714 folio_wait_bit_common+0x3dd/0xa90 mm/filemap.c:1298 folio_put_wait_locked mm/filemap.c:1472 [inline] do_read_cache_folio+0x2c0/0x510 mm/filemap.c:3501 read_mapping_folio include/linux/pagemap.h:762 [inline] read_part_sector+0xf6/0x440 block/partitions/core.c:714 adfspart_check_ICS+0x9a/0x890 block/partitions/acorn.c:360 check_partition block/partitions/core.c:146 [inline] blk_add_partitions block/partitions/core.c:599 [inline] bdev_disk_changed block/partitions/core.c:685 [inline] bdev_disk_changed+0x629/0xf60 block/partitions/core.c:652 blkdev_get_whole+0x18a/0x2d0 block/bdev.c:684 blkdev_get_by_dev.part.0+0x5ec/0xb90 block/bdev.c:821 blkdev_get_by_dev+0x6b/0x80 block/bdev.c:855 blkdev_open+0x13c/0x2c0 block/fops.c:485 do_dentry_open+0x4a4/0x13a0 fs/open.c:878 do_open fs/namei.c:3557 [inline] path_openat+0x1c92/0x28f0 fs/namei.c:3691 do_filp_open+0x1b6/0x400 fs/namei.c:3718 do_sys_openat2+0x16d/0x4c0 fs/open.c:1311 do_sys_open fs/open.c:1327 [inline] __do_sys_openat fs/open.c:1343 [inline] __se_sys_openat fs/open.c:1338 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1338 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+0x63/0xcd RIP: 0033:0x7f0d1c525697 RSP: 002b:00007ffffa2b4140 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00005558361ee6c0 RCX: 00007f0d1c525697 RDX: 00000000000a0800 RSI: 00005558361c14f0 RDI: 00000000ffffff9c RBP: 00005558361c14f0 R08: 0000000000000001 R09: 00007ffffa3b7080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 00005558361e6b20 R14: 00007ffffa2b41ec R15: 00005558361b52c0 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf85d30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bf85a30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8bf86880 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 2 locks held by getty/3285: #0: ffff88801ca71098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90001c282f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor364/3644: #0: ffff88801f286998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xbd0 drivers/block/nbd.c:1514 1 lock held by udevd/3645: #0: ffff88801f28a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:812 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.0.0-rc3-syzkaller-00363-g7726d4c3e60b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x46/0x14f lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x206/0x250 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc18/0xf50 kernel/hung_task.c:369 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 92 Comm: kworker/u4:4 Not tainted 6.0.0-rc3-syzkaller-00363-g7726d4c3e60b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] RIP: 0010:lock_is_held_type+0xea/0x140 kernel/locking/lockdep.c:5711 Code: c0 45 31 ed 44 39 f0 41 0f 94 c5 48 c7 c7 00 95 ec 89 e8 c9 14 00 00 b8 ff ff ff ff 65 0f c1 05 44 3d 83 76 83 f8 01 75 29 9c <58> f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 44 RSP: 0018:ffffc90001c3f848 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000005 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 RBP: ffffffff8bf867c0 R08: 0000000000000000 R09: ffffffff8dddfa17 R10: fffffbfff1bbbf42 R11: 0000000000000000 R12: ffff8880184640c0 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff888018464bd8 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055763c5fb600 CR3: 000000000bc8e000 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+0x3a/0x70 kernel/rcu/update.c:125 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0x480/0x570 kernel/locking/lockdep.c:5637 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] __get_locked_pte+0x154/0x270 mm/memory.c:1838 get_locked_pte include/linux/mm.h:2089 [inline] __text_poke+0x1b3/0x8e0 arch/x86/kernel/alternative.c:1123 text_poke arch/x86/kernel/alternative.c:1208 [inline] text_poke_bp_batch+0x44a/0x6c0 arch/x86/kernel/alternative.c:1554 text_poke_flush arch/x86/kernel/alternative.c:1660 [inline] text_poke_flush arch/x86/kernel/alternative.c:1657 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1667 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:801 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:811 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:803 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306