INFO: task khugepaged:34 blocked for more than 164 seconds. Not tainted 5.17.0-next-20220329-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:khugepaged state:D stack:27528 pid: 34 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5106 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6415 schedule+0xd2/0x1f0 kernel/sched/core.c:6487 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x373/0x530 kernel/sched/completion.c:106 __flush_work+0x56c/0xb10 kernel/workqueue.c:3097 __lru_add_drain_all+0x421/0x770 mm/swap.c:839 khugepaged_do_scan mm/khugepaged.c:2232 [inline] khugepaged+0x120/0x66e0 mm/khugepaged.c:2293 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INFO: task kworker/u4:11:4973 blocked for more than 164 seconds. Not tainted 5.17.0-next-20220329-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:11 state:D stack:25840 pid: 4973 ppid: 2 flags:0x00004000 Workqueue: events_unbound fsnotify_mark_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5106 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6415 schedule+0xd2/0x1f0 kernel/sched/core.c:6487 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x373/0x530 kernel/sched/completion.c:106 __synchronize_srcu+0x1f2/0x290 kernel/rcu/srcutree.c:1144 fsnotify_mark_destroy_workfn+0xfd/0x3c0 fs/notify/mark.c:864 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:298 INFO: task kworker/u4:17:5877 blocked for more than 164 seconds. Not tainted 5.17.0-next-20220329-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:17 state:D stack:27424 pid: 5877 ppid: 2 flags:0x00004000 Workqueue: events_unbound fsnotify_connector_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5106 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6415 schedule+0xd2/0x1f0 kernel/sched/core.c:6487 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x373/0x530 kernel/sched/completion.c:106 __synchronize_srcu+0x1f2/0x290 kernel/rcu/srcutree.c:1144 fsnotify_connector_destroy_workfn+0x49/0xa0 fs/notify/mark.c:164 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:298 Showing all locks held in the system: 1 lock held by kauditd/27: 1 lock held by khungtaskd/28: #0: ffffffff8bd82360 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6498 1 lock held by khugepaged/34: #0: ffffffff8be6d548 (lock#5){+.+.}-{3:3}, at: __lru_add_drain_all+0x62/0x770 mm/swap.c:788 4 locks held by kworker/u4:2/50: 2 locks held by kworker/1:1H/753: 1 lock held by syslogd/2946: 1 lock held by udevd/2964: 2 locks held by getty/3283: #0: ffff888015c92098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002e632e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcea/0x1230 drivers/tty/n_tty.c:2075 3 locks held by kworker/1:3/3653: 3 locks held by kworker/0:7/3748: 3 locks held by kworker/u4:8/4891: 3 locks held by kworker/u4:9/4936: 2 locks held by kworker/u4:11/4973: #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc9000399fda8 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 2 locks held by kworker/u4:17/5877: #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc9000b25fda8 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 1 lock held by dhcpcd/8995: #0: ffff88802d888e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:777 [inline] #0: ffff88802d888e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 2 locks held by dhcpcd/8996: #0: ffff888048a34130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888048a34130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 #1: ffffffff8bd8c660 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #1: ffffffff8bd8c660 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2d5/0x620 kernel/rcu/tree_exp.h:841 1 lock held by dhcpcd/9039: #0: ffff888068022130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888068022130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 2 locks held by dhcpcd/9041: #0: ffff88807b618130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff88807b618130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 #1: ffffffff8bd8c660 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #1: ffffffff8bd8c660 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2d5/0x620 kernel/rcu/tree_exp.h:841 1 lock held by dhcpcd/9042: #0: ffff888076b9a130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888076b9a130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 1 lock held by dhcpcd/9043: #0: ffff888077fe0130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888077fe0130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 1 lock held by dhcpcd/9049: #0: ffff888019bc6130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888019bc6130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 1 lock held by dhcpcd/9065: #0: ffff888029b12130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888029b12130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 1 lock held by dhcpcd/9143: #0: ffff888078a88130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff888078a88130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 1 lock held by dhcpcd/9177: #0: ffff8880770de130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1682 [inline] #0: ffff8880770de130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3179 2 locks held by syz-executor.4/9224: #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_sendfile64 fs/read_write.c:1311 [inline] #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_sendfile64 fs/read_write.c:1297 [inline] #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1297 #1: ffff88802d902218 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:787 [inline] #1: ffff88802d902218 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:63 [inline] #1: ffff88802d902218 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_file_read_iter+0x4aa/0x600 fs/ext4/file.c:130 2 locks held by syz-executor.3/9225: #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_sendfile64 fs/read_write.c:1311 [inline] #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_sendfile64 fs/read_write.c:1297 [inline] #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1297 #1: ffff88802d902c20 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:787 [inline] #1: ffff88802d902c20 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:63 [inline] #1: ffff88802d902c20 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_file_read_iter+0x4aa/0x600 fs/ext4/file.c:130 2 locks held by syz-executor.0/9232: #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_sendfile64 fs/read_write.c:1311 [inline] #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_sendfile64 fs/read_write.c:1297 [inline] #0: ffff88814cb06460 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1297 #1: ffff88802d904030 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:787 [inline] #1: ffff88802d904030 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:63 [inline] #1: ffff88802d904030 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_file_read_iter+0x4aa/0x600 fs/ext4/file.c:130 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.17.0-next-20220329-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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:256 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:413 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9229 Comm: syz-executor.0 Not tainted 5.17.0-next-20220329-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:iovec_from_user lib/iov_iter.c:1934 [inline] RIP: 0010:iovec_from_user+0x10b/0x3a0 lib/iov_iter.c:1905 Code: e5 0f 83 2b 01 00 00 48 c7 c5 f2 ff ff ff e8 0c c7 8c fd 4c 39 6c 24 10 74 0d e8 00 c7 8c fd 4c 89 ef e8 48 d5 d7 fd 49 89 ed f0 c6 8c fd 4c 89 e8 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc9000a547a18 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffff888029251d40 RDI: 0000000000000003 RBP: 0000000000000008 R08: 0000000000000000 R09: ffffc9000a547dd0 R10: ffffffff83ebe264 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc9000a547bf0 R14: 0000000000000000 R15: ffffc9000a547bf0 FS: 00007f39bcfdd700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020373030 CR3: 0000000043a36000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __import_iovec+0x65/0x5d0 lib/iov_iter.c:1948 import_iovec+0x83/0xb0 lib/iov_iter.c:2013 copy_msghdr_from_user net/socket.c:2351 [inline] recvmsg_copy_msghdr net/socket.c:2598 [inline] ___sys_recvmsg+0x1b7/0x200 net/socket.c:2670 do_recvmmsg+0x24d/0x6d0 net/socket.c:2768 __sys_recvmmsg net/socket.c:2847 [inline] __do_sys_recvmmsg net/socket.c:2870 [inline] __se_sys_recvmmsg net/socket.c:2863 [inline] __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2863 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f39be089049 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:00007f39bcfdd168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f39be19c030 RCX: 00007f39be089049 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f39be0e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffffc17f91f R14: 00007f39bcfdd300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: e5 0f in $0xf,%eax 2: 83 2b 01 subl $0x1,(%rbx) 5: 00 00 add %al,(%rax) 7: 48 c7 c5 f2 ff ff ff mov $0xfffffffffffffff2,%rbp e: e8 0c c7 8c fd callq 0xfd8cc71f 13: 4c 39 6c 24 10 cmp %r13,0x10(%rsp) 18: 74 0d je 0x27 1a: e8 00 c7 8c fd callq 0xfd8cc71f 1f: 4c 89 ef mov %r13,%rdi 22: e8 48 d5 d7 fd callq 0xfdd7d56f 27: 49 89 ed mov %rbp,%r13 * 2a: e8 f0 c6 8c fd callq 0xfd8cc71f <-- trapping instruction 2f: 4c 89 e8 mov %r13,%rax 32: 48 83 c4 18 add $0x18,%rsp 36: 5b pop %rbx 37: 5d pop %rbp 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15