INFO: task syz-executor.0:29763 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 D28328 29763 7223 0x80004006 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 rwsem_mark_wake+0x8d0/0x8d0 include/linux/compiler.h:199 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934 unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1776 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 __sock_release+0x280/0x280 net/socket.c:605 __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 unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1776 __sock_release+0x280/0x280 net/socket.c:605 raw_release+0x53/0x730 net/can/raw.c:354 fcntl_setlk+0xcc0/0xcc0 fs/locks.c:2542 __sock_release+0x280/0x280 net/socket.c:605 __sock_release+0xcd/0x280 net/socket.c:605 sock_close+0x18/0x20 net/socket.c:1283 __fput+0x33e/0x880 fs/file_table.c:280 task_work_run+0xf4/0x1b0 kernel/task_work.c:123 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xb34/0x2dd0 kernel/exit.c:796 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 mm_update_next_owner+0x7a0/0x7a0 kernel/exit.c:375 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 do_group_exit+0x125/0x340 kernel/exit.c:894 get_signal+0x47b/0x24e0 kernel/signal.c:2739 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 do_signal+0x81/0x2240 arch/x86/kernel/signal.c:784 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 rcu_read_lock_any_held.part.0+0x50/0x50 arch/x86/include/asm/paravirt.h:754 get_sigframe.isra.0+0x730/0x730 arch/x86/kernel/signal.c:268 rcu_read_unlock_sched include/linux/rcupdate.h:732 [inline] __fd_install+0x1e6/0x600 fs/file.c:613 __sys_socket+0x16d/0x200 net/socket.c:438 move_addr_to_kernel+0x70/0x70 net/socket.c:195 exit_to_usermode_loop+0x26c/0x360 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Showing all locks held in the system: 3 locks held by kworker/u4:1/21: #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8880a9787138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x844/0x16a0 kernel/workqueue.c:2239 #1: ffffc90000dd7dc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x878/0x16a0 kernel/workqueue.c:2243 #2: ffffffff8a576f70 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xa50 net/core/net_namespace.c:565 1 lock held by khungtaskd/1140: #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/6890: #0: ffff8880a837c0f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:826 2 locks held by syz-executor.0/29763: #0: ffff888018a07210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:797 [inline] #0: ffff888018a07210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:604 #1: ffffffff8a576f70 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1776 1 lock held by syz-executor.0/29847: #0: ffffffff8a576f70 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x270/0x590 net/core/net_namespace.c:478 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1140 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: 4278 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:arch_local_irq_disable arch/x86/include/asm/paravirt.h:764 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:lock_acquire+0x129/0x8f0 kernel/locking/lockdep.c:4929 Code: fc ff df 48 89 04 24 48 c7 c0 68 c0 94 89 48 c1 e8 03 80 3c 10 00 0f 85 ed 06 00 00 48 83 3d b5 39 3b 08 00 0f 84 4f 05 00 00 66 0f 1f 44 00 00 65 48 8b 04 25 00 1f 02 00 48 8d b8 c4 08 00 RSP: 0018:ffffc90000007a28 EFLAGS: 00000086 RAX: 1ffffffff132980d RBX: 0000000000000001 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8880a484c6bf R11: ffffed10149098d7 R12: 0000000000000002 R13: ffffffff899cea48 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f705eeea8c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f705c3b2008 CR3: 00000000a7979000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 wg_packet_send_queued_handshake_initiation+0x56/0x3d0 drivers/net/wireguard/send.c:59 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 seqcount_lockdep_reader_access include/linux/seqlock.h:81 [inline] read_seqcount_begin include/linux/seqlock.h:164 [inline] ktime_get_coarse_with_offset+0xfb/0x2e0 kernel/time/timekeeping.c:821 ktime_get_coarse_boottime include/linux/timekeeping.h:100 [inline] ktime_get_coarse_boottime_ns include/linux/timekeeping.h:136 [inline] wg_birthdate_has_expired drivers/net/wireguard/timers.h:28 [inline] wg_packet_send_queued_handshake_initiation+0x115/0x3d0 drivers/net/wireguard/send.c:66 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:3628 ktime_get_coarse_boottime include/linux/timekeeping.h:100 [inline] ktime_get_coarse_boottime_ns include/linux/timekeeping.h:136 [inline] wg_birthdate_has_expired drivers/net/wireguard/timers.h:28 [inline] wg_packet_send_queued_handshake_initiation+0x115/0x3d0 drivers/net/wireguard/send.c:66 __local_bh_enable_ip+0x159/0x270 kernel/softirq.c:194 wg_packet_send_staged_packets+0x83d/0x1870 drivers/net/wireguard/send.c:418 wg_packet_purge_staged_packets+0x2e0/0x2e0 drivers/net/wireguard/send.c:340 wg_packet_send_keepalive+0x46/0x200 drivers/net/wireguard/send.c:234 wg_expired_send_persistent_keepalive+0x5a/0x70 drivers/net/wireguard/timers.c:141 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1405 wg_queued_expired_zero_key_material+0x40/0x40 drivers/net/wireguard/timers.c:132 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 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] _raw_spin_unlock_irq+0x1f/0x80 kernel/locking/spinlock.c:199 wg_queued_expired_zero_key_material+0x40/0x40 drivers/net/wireguard/timers.c:132 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0x623/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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline] RIP: 0010:kmem_cache_free+0xa4/0x320 mm/slab.c:3695 Code: e8 81 27 00 00 84 c0 74 76 41 f7 c4 00 02 00 00 74 4e e8 4f fa c7 ff 48 83 3d e7 06 e4 07 00 0f 84 f8 01 00 00 4c 89 e7 57 9d <0f> 1f 44 00 00 4c 8b 64 24 20 0f 1f 44 00 00 65 8b 05 c6 f9 50 7e RSP: 0018:ffffc90001627ba0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8880254e6e80 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000286 RBP: ffff88821bc50a80 R08: ffff8880a836a140 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286 R13: ffffffff81bf9871 R14: ffffc90001627eb0 R15: ffffc90001627c30 putname+0xe1/0x120 fs/namei.c:259 putname+0xe1/0x120 fs/namei.c:259 filename_parentat.isra.0+0x38c/0x400 fs/namei.c:2403 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:0x7f705e1a6687 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:00007ffe548e4be8 EFLAGS: 00000293 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007ffe548e7c50 RCX: 00007f705e1a6687 RDX: 0000000000000000 RSI: 00000000000001ed RDI: 0000559dac6088c0 RBP: 00007ffe548e4c20 R08: 0000559dac2a03e5 R09: 0000000000000018 R10: 0000000000000069 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 0000559dac6088c0 R15: 00007ffe548e5260