INFO: task klogd:4512 blocked for more than 143 seconds. Not tainted 6.8.0-rc3-syzkaller-00317-g7521f258ea30 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:klogd state:D stack:22712 pid:4512 tgid:4512 ppid:1 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x17d1/0x49f0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 wait_for_unix_gc+0x150/0x210 net/unix/garbage.c:201 unix_dgram_sendmsg+0x11a/0x2200 net/unix/af_unix.c:1924 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+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f29009ed9b5 RSP: 002b:00007ffd84ec5368 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f29009ed9b5 RDX: 000000000000005f RSI: 0000565453800b80 RDI: 0000000000000003 RBP: 00005654537f7910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013 R13: 00007f2900b7b212 R14: 00007ffd84ec5468 R15: 0000000000000000 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4821: #0: ffff88802b1260a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 2 locks held by kworker/0:2/10029: #0: ffff888014c8e538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888014c8e538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc9001380fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc9001380fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 4 locks held by kworker/u4:2/20784: 1 lock held by syz-executor.0/10758: 1 lock held by syz-executor.4/15001: #0: ffff88807e318e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #0: ffff88807e318e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release net/socket.c:658 [inline] #0: ffff88807e318e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: sock_close+0x90/0x240 net/socket.c:1421 2 locks held by syz-executor.3/15004: #0: ffff88807c90c410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #0: ffff88807c90c410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release net/socket.c:658 [inline] #0: ffff88807c90c410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: sock_close+0x90/0x240 net/socket.c:1421 #1: ffffffff8e136478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8e136478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995 1 lock held by syz-executor.1/15012: #0: ffffffff8f374f48 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:697 [inline] #0: ffffffff8f374f48 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3e/0x1b0 drivers/net/tun.c:3505 1 lock held by syz-executor.2/15016: #0: ffffffff8f374f48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8f374f48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x82c/0x1040 net/core/rtnetlink.c:6612 4 locks held by kvm-nx-lpage-re/15019: #0: ffffffff8e15adc8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:368 [inline] #0: ffffffff8e15adc8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_attach_task_all+0x27/0xe0 kernel/cgroup/cgroup-v1.c:61 #1: ffffffff8dfcc5b0 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_attach_lock+0x11/0x40 kernel/cgroup/cgroup.c:2413 #2: ffffffff8e15afb0 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_task_all+0x31/0xe0 kernel/cgroup/cgroup-v1.c:62 #3: ffffffff8e136478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #3: ffffffff8e136478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc3-syzkaller-00317-g7521f258ea30 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 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:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5436 Comm: syz-fuzzer Not tainted 6.8.0-rc3-syzkaller-00317-g7521f258ea30 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:mark_usage kernel/locking/lockdep.c:4566 [inline] RIP: 0010:__lock_acquire+0xba6/0x1fd0 kernel/locking/lockdep.c:5091 Code: 85 c0 74 21 4c 89 ef 48 89 ee 31 d2 e8 13 60 00 00 31 c9 48 ba 00 00 00 00 00 fc ff df 85 c0 0f 84 2e 08 00 00 48 8b 44 24 60 <0f> b6 04 10 84 c0 0f 85 ec 10 00 00 48 8b 44 24 18 83 38 00 74 22 RSP: 0000:ffffc90004e8f470 EFLAGS: 00000046 RAX: 1ffff11004dd950c RBX: ffffffff92978e2d RCX: 00000000000400b1 RDX: dffffc0000000000 RSI: ffff888026eca880 RDI: ffffffff92c8a430 RBP: ffff888026eca8a8 R08: ffffffff92c8a437 R09: 1ffffffff2591486 R10: dffffc0000000000 R11: fffffbfff2591487 R12: 0000000000000001 R13: ffff888026ec9dc0 R14: 1ffff11004dd9519 R15: ffff888026eca8c8 FS: 000000c016ac5490(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00618a000 CR3: 000000007c3e2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 000000001e0e845e DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __fs_reclaim_acquire mm/page_alloc.c:3692 [inline] fs_reclaim_acquire+0x87/0x130 mm/page_alloc.c:3706 might_alloc include/linux/sched/mm.h:303 [inline] prepare_alloc_pages+0x147/0x5b0 mm/page_alloc.c:4338 __alloc_pages+0x165/0x680 mm/page_alloc.c:4556 alloc_pages_mpol+0x3de/0x650 mm/mempolicy.c:2133 vma_alloc_folio+0xf3/0x3f0 mm/mempolicy.c:2172 alloc_anon_folio mm/memory.c:4214 [inline] do_anonymous_page mm/memory.c:4272 [inline] do_pte_missing mm/memory.c:3743 [inline] handle_pte_fault mm/memory.c:5144 [inline] __handle_mm_fault+0x3b9c/0x72d0 mm/memory.c:5285 handle_mm_fault+0x3c1/0x8a0 mm/memory.c:5450 do_user_addr_fault arch/x86/mm/fault.c:1364 [inline] handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x456/0x870 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x471299 Code: fe 7f 44 1f 80 c5 f8 77 c3 80 3d e4 6b ce 01 01 75 0d c5 f9 ef c0 48 81 fb 00 00 00 02 73 13 48 89 d9 48 c1 e9 03 48 83 e3 07 48 ab e9 65 fe ff ff c5 fe 7f 07 48 89 fe 48 83 c7 20 48 83 e7 RSP: 002b:000000c00c458e50 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000100 RDX: 0000000000000000 RSI: 0000000000000800 RDI: 000000c00618a000 RBP: 000000c00c458ec8 R08: 00007fed81029de8 R09: 0000000000000800 R10: 000000c00618a000 R11: 0000000000000000 R12: 0000000000000000 R13: 000000c016ac5400 R14: 000000c004d4c1a0 R15: 0000000000000004