INFO: task udevd:3683 blocked for more than 143 seconds. Not tainted 6.0.0-rc7-syzkaller-00132-g987a926c1d8a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:24512 pid: 3683 ppid: 2972 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 io_schedule+0x83/0x100 kernel/sched/core.c:8714 folio_wait_bit_common+0x98a/0x14b0 mm/filemap.c:1298 __folio_lock mm/filemap.c:1664 [inline] folio_lock include/linux/pagemap.h:939 [inline] __filemap_get_folio+0x556/0x1230 mm/filemap.c:1936 truncate_inode_pages_range+0x5eb/0x17b0 mm/truncate.c:378 kill_bdev block/bdev.c:75 [inline] blkdev_flush_mapping+0x153/0x2c0 block/bdev.c:661 blkdev_put_whole block/bdev.c:692 [inline] blkdev_put+0x4a5/0x730 block/bdev.c:952 blkdev_close+0x55/0x80 block/fops.c:499 __fput+0x3b9/0x820 fs/file_table.c:320 task_work_run+0x146/0x1c0 kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x55e/0x20a0 kernel/exit.c:795 do_group_exit+0x23b/0x2f0 kernel/exit.c:925 get_signal+0x172f/0x1780 kernel/signal.c:2857 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop+0x74/0x160 kernel/entry/common.c:166 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2c47588697 RSP: 002b:00007ffeb5e8fa40 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: 0000000000000008 RBX: 000055c72468e300 RCX: 00007f2c47588697 RDX: 00000000000a0800 RSI: 000055c7246909e0 RDI: 00000000ffffff9c RBP: 000055c7246909e0 R08: 0000000000000001 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055c724681720 R14: 0000000000000001 R15: 000055c724667910 INFO: task syz-executor.0:3737 blocked for more than 143 seconds. Not tainted 6.0.0-rc7-syzkaller-00132-g987a926c1d8a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27360 pid: 3737 ppid: 3716 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6629 __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 blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 blkdev_open+0x128/0x2e0 block/fops.c:485 do_dentry_open+0x777/0x1180 fs/open.c:880 do_open fs/namei.c:3557 [inline] path_openat+0x260e/0x2e00 fs/namei.c:3691 do_filp_open+0x275/0x500 fs/namei.c:3718 do_sys_openat2+0x13b/0x500 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1340 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:0x418484 RSP: 002b:00007f70ad288cc0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000418484 RDX: 0000000000000000 RSI: 00007f70ad288d60 RDI: 00000000ffffff9c RBP: 00007f70ad288d60 R08: 0000000000000000 R09: 002364626e2f7665 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffc125a704f R14: 00007f70ad289300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cd20a70 (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/14: #0: ffffffff8cd21270 (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/29: #0: ffffffff8cd208a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3286: #0: ffff888027a3f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 1 lock held by udevd/3683: #0: ffff88801f1184c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x100/0x730 block/bdev.c:910 1 lock held by syz-executor.0/3737: #0: ffff88801f1184c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.0.0-rc7-syzkaller-00132-g987a926c1d8a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x47c/0x4b0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x169/0x280 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+0xcd5/0xd20 kernel/hung_task.c:369 kthread+0x266/0x300 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-rc7-syzkaller-00132-g987a926c1d8a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:kasan_check_range+0x1ff/0x2e0 mm/kasan/generic.c:189 Code: d6 eb 03 4d 89 cf 49 8d 6e 07 4d 85 f6 49 0f 49 ee 48 83 e5 f8 49 29 ee 74 0f 90 41 80 3f 00 75 78 49 ff c7 49 ff ce 75 f2 5b <41> 5e 41 5f 5d c3 45 84 db 75 67 41 f7 c3 00 ff 00 00 0f 85 a2 00 RSP: 0018:ffffc900015d7908 EFLAGS: 00000056 RAX: 0000000000000001 RBX: 0000000000000028 RCX: ffffffff816962c6 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8ffa3040 RBP: 000000000001ffff R08: dffffc0000000000 R09: fffffbfff1ff4609 R10: fffffbfff1ff4609 R11: 1ffffffff1ff4608 R12: 1ffff1100323d14d R13: 7b17a640ce69cc9d R14: 0000000000000001 R15: 0000000000004000