INFO: task khugepaged:33 blocked for more than 158 seconds. Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:khugepaged state:D stack:28128 pid: 33 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5178 [inline] __schedule+0xa00/0x4c10 kernel/sched/core.c:6490 schedule+0xda/0x1b0 kernel/sched/core.c:6566 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x378/0x530 kernel/sched/completion.c:106 __flush_work+0x56c/0xb10 kernel/workqueue.c:3075 __lru_add_drain_all+0x421/0x770 mm/swap.c:841 khugepaged_do_scan mm/khugepaged.c:2235 [inline] khugepaged+0x120/0x67b0 mm/khugepaged.c:2296 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INFO: task kworker/u4:11:3967 blocked for more than 158 seconds. Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:11 state:D stack:26552 pid: 3967 ppid: 2 flags:0x00004000 Workqueue: events_unbound fsnotify_mark_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5178 [inline] __schedule+0xa00/0x4c10 kernel/sched/core.c:6490 schedule+0xda/0x1b0 kernel/sched/core.c:6566 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x378/0x530 kernel/sched/completion.c:106 __synchronize_srcu+0x1f2/0x290 kernel/rcu/srcutree.c:1215 fsnotify_mark_destroy_workfn+0xfd/0x3c0 fs/notify/mark.c:898 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INFO: task kworker/u4:8:16677 blocked for more than 158 seconds. Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:8 state:D stack:27072 pid:16677 ppid: 2 flags:0x00004000 Workqueue: events_unbound fsnotify_connector_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5178 [inline] __schedule+0xa00/0x4c10 kernel/sched/core.c:6490 schedule+0xda/0x1b0 kernel/sched/core.c:6566 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x378/0x530 kernel/sched/completion.c:106 __synchronize_srcu+0x1f2/0x290 kernel/rcu/srcutree.c:1215 fsnotify_connector_destroy_workfn+0x49/0xa0 fs/notify/mark.c:208 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bd86870 (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: ffffffff8bd86570 (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/27: #0: ffffffff8bd873c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 1 lock held by khugepaged/33: #0: ffffffff8be7b0c8 (lock#5){+.+.}-{3:3}, at: __lru_add_drain_all+0x62/0x770 mm/swap.c:790 2 locks held by getty/3285: #0: ffff88814a974098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d162e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124 3 locks held by syz-executor.0/3643: #0: ffff888038ef2218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0xcd/0x6f0 fs/readdir.c:55 #1: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2515 [inline] #1: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x459/0x6f0 fs/readdir.c:70 #2: ffff88807f46e990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xfb4/0x14a0 fs/jbd2/transaction.c:461 3 locks held by syz-executor.5/3645: #0: ffff888038ef3628 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0xcd/0x6f0 fs/readdir.c:55 #1: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2515 [inline] #1: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x459/0x6f0 fs/readdir.c:70 #2: ffff88807f46e990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xfb4/0x14a0 fs/jbd2/transaction.c:461 1 lock held by syz-executor.1/3646: 3 locks held by syz-executor.4/3648: #0: ffff888038ef0400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0xcd/0x6f0 fs/readdir.c:55 #1: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2515 [inline] #1: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x459/0x6f0 fs/readdir.c:70 #2: ffff88807f46e990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xfb4/0x14a0 fs/jbd2/transaction.c:461 2 locks held by kworker/u4:11/3967: #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90005307da8 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 2 locks held by kworker/1:6/13585: 2 locks held by kworker/u4:8/16677: #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888011869138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90014487da8 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 3 locks held by kworker/0:8/22494: 2 locks held by dhcpcd/22662: #0: ffff88807dda2130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff88807dda2130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 #1: ffffffff8bd92038 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8bd92038 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x562/0x670 kernel/rcu/tree_exp.h:940 1 lock held by dhcpcd/22690: #0: ffff88807ab1c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff88807ab1c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 2 locks held by dhcpcd/22695: #0: ffff888035852130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff888035852130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 #1: ffffffff8bd92038 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8bd92038 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x24a/0x670 kernel/rcu/tree_exp.h:940 1 lock held by dhcpcd/22696: #0: ffff888034b52130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff888034b52130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 1 lock held by dhcpcd/22722: #0: ffff88803c478130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff88803c478130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 1 lock held by dhcpcd/23417: #0: ffff888035d84130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff888035d84130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 1 lock held by syz-executor.3/23553: 2 locks held by syz-executor.3/23559: #0: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_sendfile64 fs/read_write.c:1319 [inline] #0: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_sendfile64 fs/read_write.c:1305 [inline] #0: ffff88807f46a460 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1305 #1: ffff888047a5ca38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:760 [inline] #1: ffff888047a5ca38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_write_checks fs/ext4/file.c:454 [inline] #1: ffff888047a5ca38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:522 [inline] #1: ffff888047a5ca38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_file_write_iter+0xa53/0x1520 fs/ext4/file.c:677 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/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+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 23553 Comm: syz-executor.3 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:mark_usage kernel/locking/lockdep.c:4513 [inline] RIP: 0010:__lock_acquire+0x7bb/0x5660 kernel/locking/lockdep.c:5007 Code: 6c 24 22 41 0f b6 5c 24 21 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 0f b6 04 02 48 89 ea 83 e2 07 38 d0 7f 08 84 c0 <0f> 85 e4 3a 00 00 84 db 41 0f b6 44 24 22 78 60 a8 03 0f 84 b2 09 RSP: 0018:ffffc900152f7528 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 0000000000000005 RCX: ffffffff815e3ca2 RDX: 0000000000000002 RSI: 0000000000000008 RDI: ffff888036fd0ac1 RBP: ffff888036fd0ac2 R08: 0000000000000000 R09: ffffffff9068e9ef R10: fffffbfff20d1d3d R11: 0000000000000001 R12: ffff888036fd0aa0 R13: ffff888036fd0000 R14: ffff888036fd0a78 R15: dffffc0000000000 FS: 00007f646ecb6700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020356030 CR3: 000000006c9b5000 CR4: 0000000000350ee0 Call Trace: lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 __skb_try_recv_datagram+0x13a/0x4e0 net/core/datagram.c:262 __unix_dgram_recvmsg+0x190/0xb90 net/unix/af_unix.c:2390 unix_dgram_recvmsg+0xc0/0xe0 net/unix/af_unix.c:2487 sock_recvmsg_nosec net/socket.c:995 [inline] ____sys_recvmsg+0x536/0x600 net/socket.c:2702 ___sys_recvmsg+0xf2/0x180 net/socket.c:2746 do_recvmmsg+0x25e/0x6e0 net/socket.c:2840 __sys_recvmmsg net/socket.c:2919 [inline] __do_sys_recvmmsg net/socket.c:2942 [inline] __se_sys_recvmmsg net/socket.c:2935 [inline] __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2935 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:0x7f646da89209 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f646ecb6168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f646db9c030 RCX: 00007f646da89209 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f646dae3161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2db7dd6f R14: 00007f646ecb6300 R15: 0000000000022000