INFO: task khugepaged:1636 blocked for more than 143 seconds. Not tainted 5.12.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:khugepaged state:D stack:24344 pid: 1636 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4322 [inline] __schedule+0x911/0x21b0 kernel/sched/core.c:5073 schedule+0xcf/0x270 kernel/sched/core.c:5152 schedule_timeout+0x1db/0x250 kernel/time/timer.c:1868 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x168/0x270 kernel/sched/completion.c:138 __flush_work+0x527/0xac0 kernel/workqueue.c:3052 lru_add_drain_all+0x41f/0x6f0 mm/swap.c:826 khugepaged_do_scan mm/khugepaged.c:2213 [inline] khugepaged+0x10c/0x5510 mm/khugepaged.c:2274 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 INFO: task syz-executor.3:21519 blocked for more than 144 seconds. Not tainted 5.12.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:29576 pid:21519 ppid: 8397 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4322 [inline] __schedule+0x911/0x21b0 kernel/sched/core.c:5073 schedule+0xcf/0x270 kernel/sched/core.c:5152 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:5211 __mutex_lock_common kernel/locking/mutex.c:1026 [inline] __mutex_lock+0x81f/0x1120 kernel/locking/mutex.c:1096 devinet_ioctl+0x15e6/0x1c90 net/ipv4/devinet.c:1142 inet_ioctl+0x1ea/0x330 net/ipv4/af_inet.c:971 sock_do_ioctl+0xcb/0x2d0 net/socket.c:1039 sock_ioctl+0x477/0x6a0 net/socket.c:1179 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466459 RSP: 002b:00007f5910b08188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000466459 RDX: 0000000020000140 RSI: 0000000000008914 RDI: 0000000000000005 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0 R13: 00007ffddc6fc43f R14: 00007f5910b08300 R15: 0000000000022000 Showing all locks held in the system: 3 locks held by kworker/0:1/7: #0: ffff888010466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888010466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888010466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888010466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888010466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90000cc7da8 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff8880b9c35198 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] #2: ffff8880b9c35198 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x21c/0x21b0 kernel/sched/core.c:4990 7 locks held by kworker/0:2/8: #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90000cd7da8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144757218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff888144757218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888076029218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #3: ffff888076029218 (&dev->mutex){....}-{3:3}, at: usb_disconnect.cold+0x43/0x791 drivers/usb/core/hub.c:2209 #4: ffff88802af491a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #4: ffff88802af491a8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:977 [inline] #4: ffff88802af491a8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal drivers/base/dd.c:1184 [inline] #4: ffff88802af491a8 (&dev->mutex){....}-{3:3}, at: device_release_driver+0x1c/0x40 drivers/base/dd.c:1210 #5: ffffffff8cfb6648 (input_mutex){+.+.}-{3:3}, at: __input_unregister_device+0x16d/0x470 drivers/input/input.c:2186 #6: ffffffff8bf7cee8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #6: ffffffff8bf7cee8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4fa/0x620 kernel/rcu/tree_exp.h:836 1 lock held by ksoftirqd/1/19: 2 locks held by kworker/u4:4/437: #0: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] #0: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x21c/0x21b0 kernel/sched/core.c:4990 #1: ffffc900010afda8 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 1 lock held by khungtaskd/1623: #0: ffffffff8bf74320 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6327 1 lock held by kcompactd0/1633: #0: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] #0: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x21c/0x21b0 kernel/sched/core.c:4990 1 lock held by in:imklog/8083: #0: ffff88801146c370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:961 2 locks held by agetty/8092: #0: ffff88801bad8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:266 #1: ffffc90000f582e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd5b/0x12f0 drivers/tty/n_tty.c:2178 6 locks held by kworker/0:7/9743: #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc900169ffda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff8881446c0218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff8881446c0218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff8880265f7218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #3: ffff8880265f7218 (&dev->mutex){....}-{3:3}, at: usb_disconnect.cold+0x43/0x791 drivers/usb/core/hub.c:2209 #4: ffff88802af4a1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #4: ffff88802af4a1a8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:977 [inline] #4: ffff88802af4a1a8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal drivers/base/dd.c:1184 [inline] #4: ffff88802af4a1a8 (&dev->mutex){....}-{3:3}, at: device_release_driver+0x1c/0x40 drivers/base/dd.c:1210 #5: ffffffff8cfb6648 (input_mutex){+.+.}-{3:3}, at: __input_unregister_device+0x16d/0x470 drivers/input/input.c:2186 6 locks held by kworker/0:3/21005: #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8881415ed538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90001e87da8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144720218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff888144720218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888021d91218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #3: ffff888021d91218 (&dev->mutex){....}-{3:3}, at: usb_disconnect.cold+0x43/0x791 drivers/usb/core/hub.c:2209 #4: ffff88802af4b1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #4: ffff88802af4b1a8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:977 [inline] #4: ffff88802af4b1a8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal drivers/base/dd.c:1184 [inline] #4: ffff88802af4b1a8 (&dev->mutex){....}-{3:3}, at: device_release_driver+0x1c/0x40 drivers/base/dd.c:1210 #5: ffffffff8cfb6648 (input_mutex){+.+.}-{3:3}, at: __input_unregister_device+0x16d/0x470 drivers/input/input.c:2186 4 locks held by systemd-udevd/21466: #0: ffff888020b080a0 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xdf/0x1220 fs/seq_file.c:179 #1: ffff88807c167488 (&of->mutex){+.+.}-{3:3}, at: kernfs_seq_start+0x4b/0x260 fs/kernfs/file.c:112 #2: ffff888018a13e88 (kn->active#242){++++}-{0:0}, at: kernfs_seq_start+0x75/0x260 fs/kernfs/file.c:113 #3: ffff888021d91218 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:745 [inline] #3: ffff888021d91218 (&dev->mutex){....}-{3:3}, at: manufacturer_show+0x22/0xa0 drivers/usb/core/sysfs.c:141 3 locks held by syz-executor.0/21495: #0: ffff8880741a8f48 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x111/0x1110 net/bluetooth/hci_core.c:1728 #1: ffff8880741a8078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26f/0x1110 net/bluetooth/hci_core.c:1765 #2: ffffffff8bf7cee8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #2: ffffffff8bf7cee8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x27e/0x620 kernel/rcu/tree_exp.h:836 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1623 Comm: khungtaskd Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline] watchdog+0xd48/0xfb0 kernel/hung_task.c:294 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 21538 Comm: systemd-journal Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:map_id_range_down_base kernel/user_namespace.c:280 [inline] RIP: 0010:map_id_range_down+0xc7/0x340 kernel/user_namespace.c:297 Code: 03 00 41 83 ff 05 0f 87 58 01 00 00 e8 02 a7 03 00 41 8d 44 1d ff 31 ff 44 89 fe 89 44 24 04 49 8d 5e 08 31 ed e8 99 ae 03 00 <45> 85 ff 0f 84 e9 00 00 00 e8 db a6 03 00 48 89 d8 48 b9 00 00 00 RSP: 0018:ffffc9000158fa40 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffffff8be34848 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffff888017241c40 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8c135a67 R10: ffffffff81704a67 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8be34840 R15: 0000000000000001 FS: 00007f089542f8c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0892ce2000 CR3: 0000000029cd6000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: map_id_down kernel/user_namespace.c:312 [inline] make_kuid+0x1e/0x30 kernel/user_namespace.c:389 kuid_into_mnt include/linux/fs.h:1580 [inline] i_uid_into_mnt include/linux/fs.h:1592 [inline] acl_permission_check fs/namei.c:330 [inline] generic_permission+0x88/0x5b0 fs/namei.c:392 kernfs_iop_permission+0x88/0xb0 fs/kernfs/inode.c:291 do_inode_permission fs/namei.c:446 [inline] inode_permission.part.0+0x236/0x440 fs/namei.c:513 inode_permission fs/namei.c:494 [inline] may_lookup fs/namei.c:1656 [inline] link_path_walk.part.0+0x800/0xc90 fs/namei.c:2208 link_path_walk fs/namei.c:2190 [inline] path_lookupat+0xb7/0x830 fs/namei.c:2419 filename_lookup+0x19f/0x560 fs/namei.c:2453 user_path_at include/linux/namei.h:60 [inline] do_faccessat+0x127/0x850 fs/open.c:425 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f08946ea9c7 Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffc7d183a38 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00007ffc7d183ab0 RCX: 00007f08946ea9c7 RDX: 00007ffc7d183a55 RSI: 0000000000000000 RDI: 00007ffc7d183a40 RBP: 00007ffc7d184b50 R08: 00005594e33424a0 R09: 00007f089473c9f0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc7d184b70 R13: 00005594e33434b8 R14: 0000000000000018 R15: 00007ffc7d183a40