INFO: task udevd:5141 blocked for more than 143 seconds. Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:24528 pid:5141 tgid:5141 ppid:4535 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 io_schedule+0x8d/0x110 kernel/sched/core.c:9044 folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1307 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1898 truncate_inode_pages_range+0x57e/0xfc0 mm/truncate.c:367 kill_bdev block/bdev.c:85 [inline] blkdev_flush_mapping+0x156/0x2b0 block/bdev.c:644 blkdev_put_whole block/bdev.c:675 [inline] bdev_release+0x489/0x720 block/bdev.c:1066 blkdev_release+0x15/0x20 block/fops.c:628 __fput+0x406/0x8b0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa1b/0x27e0 kernel/exit.c:878 do_group_exit+0x207/0x2c0 kernel/exit.c:1027 get_signal+0x16a1/0x1740 kernel/signal.c:2911 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x360 kernel/entry/common.c:218 do_syscall_64+0x10a/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7f535ed759a4 RSP: 002b:00007ffda5140c30 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: 0000000000000008 RBX: 000055ce0f258cb0 RCX: 00007f535ed759a4 RDX: 00000000000a0800 RSI: 000055ce0f247360 RDI: 00000000ffffff9c RBP: 000055ce0f247360 R08: 0000000000000001 R09: 00007f535ef020b0 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055ce0f239b00 R14: 0000000000000001 R15: 000055ce0f230910 INFO: task syz-executor.0:5210 blocked for more than 143 seconds. Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27352 pid:5210 tgid:5209 ppid:5190 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 bdev_open+0xdd/0xcb0 block/bdev.c:868 blkdev_open+0x20d/0x2e0 block/fops.c:620 do_dentry_open+0x907/0x15f0 fs/open.c:955 do_open fs/namei.c:3642 [inline] path_openat+0x289f/0x3280 fs/namei.c:3799 do_filp_open+0x235/0x490 fs/namei.c:3826 do_sys_openat2+0x13e/0x1d0 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_openat fs/open.c:1437 [inline] __se_sys_openat fs/open.c:1432 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1432 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x454000 RSP: 002b:00007f7468a47c10 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000454000 RDX: 0000000000000000 RSI: 00007f7468a47cb0 RDI: 00000000ffffff9c RBP: 00007f7468a47cb0 R08: 0000000000000000 R09: 002364626e2f7665 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000049f8fd R13: 000000000000000b R14: 000000000054cf00 R15: 00007fff550392e8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e334ea0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e334ea0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e334ea0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by klogd/4524: #0: ffff8880b953e618 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 #1: ffff888026353058 (&ei->socket.wq.wait){..-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 #2: ffff88802f75e418 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:553 [inline] #2: ffff88802f75e418 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xb0/0x1470 kernel/sched/core.c:4262 2 locks held by getty/4832: #0: ffff88802aab10a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by udevd/5141: #0: ffff88802021c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_release+0x1c8/0x720 block/bdev.c:1050 1 lock held by syz-executor.0/5210: #0: ffff88802021c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0xdd/0xcb0 block/bdev.c:868 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:380 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4524 Comm: klogd Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:unwind_next_frame+0xb7/0x2a00 arch/x86/kernel/unwind_orc.c:479 Code: 0f 85 6a 20 00 00 44 8b 75 00 31 ff 44 89 f6 e8 2f c1 54 00 44 89 b4 24 8c 00 00 00 45 85 f6 0f 84 8a 00 00 00 48 89 5c 24 50 01 00 00 00 e8 8f 81 24 00 4c 89 e9 4c 8d 6d 50 4c 89 e8 48 c1 RSP: 0018:ffffc9000397f208 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffc9000397f318 RCX: ffff888076e13c00 RDX: ffff888076e13c00 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000397f2e0 R08: ffffffff8140d0c1 R09: ffffc9000397f3d0 R10: 0000000000000003 R11: ffffffff81816e70 R12: ffff888076e13c00 R13: dffffc0000000000 R14: 0000000000000001 R15: ffffffff81fa6968 FS: 00007f0b0d188380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005572b9e757f0 CR3: 000000007c32e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x151/0x1b0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4078 [inline] kmalloc_node_track_caller_noprof+0x22a/0x440 mm/slub.c:4098 kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:599 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1313 [inline] alloc_skb_with_frags+0xc3/0x770 net/core/skbuff.c:6477 sock_alloc_send_pskb+0x91a/0xa60 net/core/sock.c:2795 unix_dgram_sendmsg+0x6d3/0x1f80 net/unix/af_unix.c:1973 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2191 __do_sys_sendto net/socket.c:2203 [inline] __se_sys_sendto net/socket.c:2199 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2199 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7f0b0d2ea9b5 Code: 8b 44 24 08 48 83 c4 28 48 98 c3 48 98 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 26 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 7a 48 8b 15 44 c4 0c 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffd070a61b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f0b0d2ea9b5 RDX: 000000000000004c RSI: 000055d15a88c2b0 RDI: 0000000000000003 RBP: 000055d15a887910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013 R13: 00007f0b0d478212 R14: 00007ffd070a62b8 R15: 0000000000000000