INFO: task syz-executor.0:458 blocked for more than 143 seconds. Not tainted 5.7.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D29408 458 7066 0x00000004 Call Trace: context_switch kernel/sched/core.c:3367 [inline] __schedule+0x937/0x1ff0 kernel/sched/core.c:4083 rwsem_down_write_slowpath+0x90a/0xf90 kernel/locking/rwsem.c:1216 __sched_text_start+0x8/0x8 schedule+0xd0/0x2a0 kernel/sched/core.c:4158 rwsem_down_write_slowpath+0x706/0xf90 kernel/locking/rwsem.c:1235 pcpu_alloc+0xfed/0x13b0 mm/percpu.c:1703 rwsem_mark_wake+0x8d0/0x8d0 include/linux/compiler.h:199 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934 register_netdevice_notifier+0x1e/0x270 net/core/dev.c:1729 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 atomic64_try_cmpxchg include/asm-generic/atomic-instrumented.h:1504 [inline] atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:442 [inline] __down_write kernel/locking/rwsem.c:1387 [inline] down_write+0xb2/0x150 kernel/locking/rwsem.c:1532 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 __down_timeout+0x2d0/0x2d0 pcpu_alloc+0x128/0x13b0 mm/percpu.c:1740 register_netdevice_notifier+0x1e/0x270 net/core/dev.c:1729 raw_init+0x296/0x340 net/can/raw.c:339 raw_sock_no_ioctlcmd+0x10/0x10 net/can/raw.c:843 can_create+0x27c/0x500 net/can/af_can.c:168 __sock_create+0x3cb/0x730 net/socket.c:1433 sock_create net/socket.c:1484 [inline] __sys_socket+0xef/0x200 net/socket.c:1526 move_addr_to_kernel+0x70/0x70 net/socket.c:195 __do_sys_clock_gettime kernel/time/posix-timers.c:1094 [inline] __se_sys_clock_gettime kernel/time/posix-timers.c:1082 [inline] __x64_sys_clock_gettime+0x165/0x240 kernel/time/posix-timers.c:1082 __ia32_sys_clock_settime+0x260/0x260 kernel/time/posix-timers.c:1410 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73 __do_sys_socket net/socket.c:1535 [inline] __se_sys_socket net/socket.c:1533 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1533 __trace_hardirqs_on_caller kernel/locking/lockdep.c:3657 [inline] lockdep_hardirqs_on+0x463/0x620 kernel/locking/lockdep.c:3702 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 INFO: task syz-executor.0:487 blocked for more than 143 seconds. Not tainted 5.7.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D29600 487 7066 0x00000004 Call Trace: context_switch kernel/sched/core.c:3367 [inline] __schedule+0x937/0x1ff0 kernel/sched/core.c:4083 rwsem_down_write_slowpath+0x90a/0xf90 kernel/locking/rwsem.c:1216 __sched_text_start+0x8/0x8 schedule+0xd0/0x2a0 kernel/sched/core.c:4158 rwsem_down_write_slowpath+0x706/0xf90 kernel/locking/rwsem.c:1235 pcpu_alloc+0xfed/0x13b0 mm/percpu.c:1703 rwsem_mark_wake+0x8d0/0x8d0 include/linux/compiler.h:199 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934 register_netdevice_notifier+0x1e/0x270 net/core/dev.c:1729 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 atomic64_try_cmpxchg include/asm-generic/atomic-instrumented.h:1504 [inline] atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:442 [inline] __down_write kernel/locking/rwsem.c:1387 [inline] down_write+0xb2/0x150 kernel/locking/rwsem.c:1532 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 __down_timeout+0x2d0/0x2d0 pcpu_alloc+0x128/0x13b0 mm/percpu.c:1740 register_netdevice_notifier+0x1e/0x270 net/core/dev.c:1729 raw_init+0x296/0x340 net/can/raw.c:339 raw_sock_no_ioctlcmd+0x10/0x10 net/can/raw.c:843 can_create+0x27c/0x500 net/can/af_can.c:168 __sock_create+0x3cb/0x730 net/socket.c:1433 sock_create net/socket.c:1484 [inline] __sys_socket+0xef/0x200 net/socket.c:1526 move_addr_to_kernel+0x70/0x70 net/socket.c:195 __do_sys_clock_gettime kernel/time/posix-timers.c:1094 [inline] __se_sys_clock_gettime kernel/time/posix-timers.c:1082 [inline] __x64_sys_clock_gettime+0x165/0x240 kernel/time/posix-timers.c:1082 __ia32_sys_clock_settime+0x260/0x260 kernel/time/posix-timers.c:1410 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73 __do_sys_socket net/socket.c:1535 [inline] __se_sys_socket net/socket.c:1533 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1533 __trace_hardirqs_on_caller kernel/locking/lockdep.c:3657 [inline] lockdep_hardirqs_on+0x463/0x620 kernel/locking/lockdep.c:3702 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Showing all locks held in the system: 3 locks held by kworker/u4:5/227: #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x844/0x16a0 kernel/workqueue.c:2239 #1: ffffc900018e7dc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x878/0x16a0 kernel/workqueue.c:2243 #2: ffffffff8a57a930 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xa50 net/core/net_namespace.c:565 1 lock held by khungtaskd/1138: #0: ffffffff899bea80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5754 1 lock held by in:imklog/6747: #0: ffff8880a9125630 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:826 1 lock held by syz-executor.0/458: #0: ffffffff8a57a930 (pernet_ops_rwsem){++++}-{3:3}, at: register_netdevice_notifier+0x1e/0x270 net/core/dev.c:1729 1 lock held by syz-executor.0/487: #0: ffffffff8a57a930 (pernet_ops_rwsem){++++}-{3:3}, at: register_netdevice_notifier+0x1e/0x270 net/core/dev.c:1729 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1138 Comm: khungtaskd Not tainted 5.7.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:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101 lapic_can_unplug_cpu.cold+0x3b/0x3b nmi_trigger_cpumask_backtrace+0x231/0x27e lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xa8c/0x1010 kernel/hung_task.c:289 reset_hung_task_detector+0x30/0x30 kernel/hung_task.c:243 kthread+0x388/0x470 kernel/kthread.c:268 kthread_mod_delayed_work+0x1a0/0x1a0 kernel/kthread.c:1090 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4113 Comm: systemd-journal Not tainted 5.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:match_held_lock+0xe/0x500 kernel/locking/lockdep.c:4413 Code: 78 05 48 83 c4 08 c3 89 c7 89 44 24 04 e8 ea fd ff ff 8b 44 24 04 48 83 c4 08 c3 90 48 b8 00 00 00 00 00 fc ff df 41 56 41 55 <41> 54 55 53 48 89 fb 48 83 c7 10 48 89 fa 48 83 ec 08 48 c1 ea 03 RSP: 0018:ffffc90000007978 EFLAGS: 00000093 RAX: dffffc0000000000 RBX: 0000000000000002 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff899e3408 RDI: ffff8880934dcc58 RBP: ffff8880934dc340 R08: ffff8880934dc340 R09: ffffed1015cc7104 R10: ffff8880ae63881b R11: ffffed1015cc7103 R12: ffffed101269b980 R13: ffff8880934dcc58 R14: ffff8880934dcc00 R15: ffffffff899e3408 FS: 00007f026875a8c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0265c27000 CR3: 000000009351c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:4708 [inline] lock_is_held_type+0x1a6/0x350 kernel/locking/lockdep.c:4971 lock_is_held include/linux/lockdep.h:406 [inline] task_css include/linux/cgroup.h:494 [inline] task_ca kernel/sched/cpuacct.c:43 [inline] cpuacct_charge+0x25e/0x350 kernel/sched/cpuacct.c:349 cgroup_account_cputime include/linux/cgroup.h:779 [inline] update_curr+0x2ec/0x8a0 kernel/sched/fair.c:873 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] psi_group_change+0x53d/0x740 kernel/sched/psi.c:724 enqueue_entity+0x1eb/0x18d0 kernel/sched/fair.c:4184 enqueue_task_fair+0x191/0x12b0 kernel/sched/fair.c:5457 enqueue_task kernel/sched/core.c:1295 [inline] activate_task+0x10d/0x3f0 kernel/sched/core.c:1317 ttwu_do_activate+0xca/0x130 kernel/sched/core.c:2247 ttwu_queue kernel/sched/core.c:2392 [inline] try_to_wake_up+0xace/0x1780 kernel/sched/core.c:2626 migrate_swap_stop+0x9d0/0x9d0 kernel/sched/core.c:1812 wake_up_worker kernel/workqueue.c:836 [inline] insert_work+0x2ad/0x3a0 kernel/workqueue.c:1339 __queue_work+0x50d/0x1280 kernel/workqueue.c:1490 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1405 queue_work_node+0x370/0x370 arch/x86/include/asm/paravirt.h:759 timer_fixup_init+0x60/0x60 kernel/time/timer.c:632 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 lock_is_held include/linux/lockdep.h:406 [inline] rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121 rcu_read_lock_any_held.part.0+0x50/0x50 arch/x86/include/asm/paravirt.h:754 queue_work_node+0x370/0x370 arch/x86/include/asm/paravirt.h:759 queue_work_node+0x370/0x370 arch/x86/include/asm/paravirt.h:759 expire_timers kernel/time/timer.c:1445 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0x412/0x1600 kernel/time/timer.c:1787 add_timer+0x830/0x830 kernel/time/timer.c:893 lock_is_held include/linux/lockdep.h:406 [inline] rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121 rcu_read_lock_any_held.part.0+0x50/0x50 arch/x86/include/asm/paravirt.h:754 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:186 Code: 00 00 00 00 e9 e8 e7 ff ff cc 65 48 8b 04 25 00 1f 02 00 48 8b 80 f0 13 00 00 c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 <65> 48 8b 04 25 00 1f 02 00 65 8b 15 38 ea 8e 7e 81 e2 00 01 1f 00 RSP: 0018:ffffc90001657ad0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff8880934dc340 RBX: fffffffffffffffe RCX: ffffffff81bf7126 RDX: 0000000000000000 RSI: ffffffff81bf747f RDI: 0000000000000007 RBP: 0000000795b77120 R08: ffff8880934dc340 R09: ffffed101314ec6a R10: ffff888098a76348 R11: ffffed101314ec69 R12: eee88cadefc2844e R13: dffffc0000000000 R14: ffff88805ee44871 R15: ffffc90001657c30 link_path_walk.part.0+0x656/0xb50 fs/namei.c:2172 PTR_ERR include/linux/err.h:31 [inline] link_path_walk.part.0+0x9af/0xb50 fs/namei.c:2173 link_path_walk.part.0+0x108/0xb50 fs/namei.c:2102 walk_component+0x6a0/0x6a0 fs/namei.c:482 save_stack+0x32/0x40 mm/kasan/common.c:51 link_path_walk fs/namei.c:2098 [inline] path_parentat.isra.0+0xac/0x1e0 fs/namei.c:2371 filename_parentat.isra.0+0x18c/0x400 fs/namei.c:2393 getname+0x20/0x20 fs/namei.c:209 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 cache_alloc_refill mm/slab.c:2981 [inline] ____cache_alloc mm/slab.c:3055 [inline] ____cache_alloc mm/slab.c:3038 [inline] __do_cache_alloc mm/slab.c:3277 [inline] slab_alloc mm/slab.c:3312 [inline] kmem_cache_alloc+0x6f5/0x740 mm/slab.c:3484 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline] queued_spin_lock include/asm-generic/qspinlock.h:78 [inline] do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113 getname_flags fs/namei.c:138 [inline] getname_flags+0xd2/0x5b0 fs/namei.c:128 lock_is_held include/linux/lockdep.h:406 [inline] rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121 rcu_read_lock_any_held.part.0+0x50/0x50 arch/x86/include/asm/paravirt.h:754 filename_create+0x9e/0x4a0 fs/namei.c:3427 filename_parentat.isra.0+0x400/0x400 fs/namei.c:2401 strncpy_from_user+0x2ac/0x3e0 lib/strncpy_from_user.c:122 audit_getname include/linux/audit.h:328 [inline] getname_flags fs/namei.c:202 [inline] getname_flags+0x275/0x5b0 fs/namei.c:128 user_path_create fs/namei.c:3502 [inline] do_mkdirat+0xa0/0x280 fs/namei.c:3640 __ia32_sys_mknod+0xb0/0xb0 fs/namei.c:3601 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7f0267a16687 Code: 00 b8 ff ff ff ff c3 0f 1f 40 00 48 8b 05 09 d8 2b 00 64 c7 00 5f 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e1 d7 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffd254cc6e8 EFLAGS: 00000293 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007ffd254cf600 RCX: 00007f0267a16687 RDX: 00007f0268487a00 RSI: 00000000000001ed RDI: 000055833c7af8a0 RBP: 00007ffd254cc720 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000069 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffd254cf600 R15: 00007ffd254ccc10