INFO: task syz-executor.0:28117 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 D25440 28117 7038 0xa0024006 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_32_irqs_on arch/x86/entry/common.c:340 [inline] do_fast_syscall_32+0xbef/0xe90 arch/x86/entry/common.c:396 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Showing all locks held in the system: 3 locks held by kworker/u4:1/21: #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: 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/1126: #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/6787: #0: ffff8880a93d56b0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:826 2 locks held by agetty/6957: #0: ffff888093f8a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900010542e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x220/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by agetty/6958: #0: ffff8880a19e5098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900010602e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x220/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by agetty/6960: #0: ffff88809a7d1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc900010202e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x220/0x1b30 drivers/tty/n_tty.c:2156 3 locks held by kworker/u4:5/8299: #0: ffff8880ae637998 (&rq->lock){-.-.}-{2:2}, at: newidle_balance+0x9be/0xdb0 kernel/sched/fair.c:10512 #1: ffffffff899bea80 (rcu_read_lock){....}-{1:2}, at: __update_idle_core+0x42/0x3e0 kernel/sched/fair.c:5969 #2: ffff8880ae627598 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x55/0x1a0 kernel/time/timer.c:936 2 locks held by syz-executor.0/28117: #0: ffff888219ae3210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:797 [inline] #0: ffff888219ae3210 (&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 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1126 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: 29131 Comm: kworker/u4:4 Not tainted 5.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker RIP: 0010:unwind_next_frame+0xa9/0x1df0 arch/x86/kernel/unwind_orc.c:614 Code: 2f 31 c0 85 ed 75 3b 48 ba 00 00 00 00 00 fc ff df 48 c7 04 13 00 00 00 00 48 8b 9c 24 98 00 00 00 65 48 33 1c 25 28 00 00 00 <0f> 85 bd 15 00 00 48 81 c4 a0 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 RSP: 0018:ffffc90016b7ee88 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffc90016b7f298 R08: ffffffff8afad520 R09: ffffffff8afad524 R10: 000000000002846a R11: 000000000007001f R12: ffffc90016b78000 R13: ffffc90016b7ef95 R14: ffffc90016b7efb0 R15: ffffc90016b7ef60 FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5b15df020 CR3: 0000000097031000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: save_stack+0x1b/0x40 mm/kasan/common.c:49 deref_stack_reg+0xe0/0xe0 arch/x86/kernel/unwind_orc.c:354 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] hlock_class kernel/locking/lockdep.c:179 [inline] mark_lock+0x12b/0xf10 kernel/locking/lockdep.c:3912 profile_setup.cold+0xc1/0xc1 arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 ipip6_tunnel_xmit net/ipv6/sit.c:1004 [inline] sit_tunnel_xmit+0xf9f/0x27c0 net/ipv6/sit.c:1039 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:123 stack_trace_consume_entry+0x160/0x160 kernel/stacktrace.c:93 page_to_nid include/linux/mm.h:1269 [inline] get_kpfn_nid mm/ksm.c:587 [inline] get_kpfn_nid mm/ksm.c:585 [inline] unstable_tree_search_insert mm/ksm.c:1932 [inline] cmp_and_merge_page mm/ksm.c:2134 [inline] ksm_do_scan mm/ksm.c:2397 [inline] ksm_scan_thread+0x29a2/0x4c80 mm/ksm.c:2418 skb_release_data+0x42e/0x8b0 net/core/skbuff.c:610 skb_release_all+0x46/0x60 net/core/skbuff.c:664 __kfree_skb net/core/skbuff.c:678 [inline] kfree_skb net/core/skbuff.c:696 [inline] kfree_skb+0xfa/0x410 net/core/skbuff.c:690 ipip6_tunnel_xmit net/ipv6/sit.c:1004 [inline] sit_tunnel_xmit+0xf9f/0x27c0 net/ipv6/sit.c:1039 check_preemption_disabled lib/smp_processor_id.c:52 [inline] debug_smp_processor_id+0x2f/0x185 lib/smp_processor_id.c:57 perf_trace_lock+0xeb/0x4c0 include/trace/events/lock.h:39 save_stack+0x1b/0x40 mm/kasan/common.c:49 save_stack+0x1b/0x40 mm/kasan/common.c:49 __bfs+0x520/0x520 kernel/locking/lockdep.c:1539 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 kthread+0x388/0x470 kernel/kthread.c:268 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 __debug_check_no_obj_freed lib/debugobjects.c:977 [inline] debug_check_no_obj_freed+0x213/0x449 lib/debugobjects.c:998 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 trace_hardirqs_off+0x50/0x220 kernel/trace/trace_preemptirq.c:45 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0x9b/0xe0 kernel/locking/spinlock.c:191 __debug_check_no_obj_freed lib/debugobjects.c:977 [inline] debug_check_no_obj_freed+0x213/0x449 lib/debugobjects.c:998 __phys_addr+0x9a/0x110 arch/x86/mm/physaddr.c:31 kfree_skbmem net/core/skbuff.c:622 [inline] kfree_skbmem+0xef/0x1b0 net/core/skbuff.c:616 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 kfree_skbmem net/core/skbuff.c:622 [inline] kfree_skbmem+0xef/0x1b0 net/core/skbuff.c:616 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x320 mm/slab.c:3694 kfree_skbmem net/core/skbuff.c:622 [inline] kfree_skbmem+0xef/0x1b0 net/core/skbuff.c:616 __kfree_skb net/core/skbuff.c:679 [inline] kfree_skb net/core/skbuff.c:696 [inline] kfree_skb+0x102/0x410 net/core/skbuff.c:690 ipip6_tunnel_xmit net/ipv6/sit.c:1004 [inline] sit_tunnel_xmit+0xf9f/0x27c0 net/ipv6/sit.c:1039 sit_exit_batch_net+0x710/0x710 net/ipv6/sit.c:1898 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 __netdev_start_xmit include/linux/netdevice.h:4533 [inline] netdev_start_xmit include/linux/netdevice.h:4547 [inline] xmit_one net/core/dev.c:3477 [inline] dev_hard_start_xmit+0x1a4/0x9b0 net/core/dev.c:3493 __dev_queue_xmit+0x25e1/0x30a0 net/core/dev.c:4052 __bfs+0x520/0x520 kernel/locking/lockdep.c:1539 netdev_core_pick_tx+0x2e0/0x2e0 net/core/dev.c:3939 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934 lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] ip6_finish_output2+0x215/0x25b0 net/ipv6/ip6_output.c:103 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 check_preemption_disabled lib/smp_processor_id.c:52 [inline] debug_smp_processor_id+0x2f/0x185 lib/smp_processor_id.c:57 rcu_lockdep_current_cpu_online kernel/rcu/tree.c:981 [inline] rcu_lockdep_current_cpu_online+0xdc/0x130 kernel/rcu/tree.c:968 rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_held_common+0xb8/0x130 kernel/rcu/update.c:98 rcu_read_lock_bh_held+0x5a/0xb0 kernel/rcu/update.c:330 rcu_read_lock_sched_held+0xd0/0xd0 kernel/rcu/update.c:122 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x1091/0x25b0 net/ipv6/ip6_output.c:117 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x1091/0x25b0 net/ipv6/ip6_output.c:117 ip6_frag_next+0xb40/0xb40 net/ipv6/ip6_output.c:725 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 rcu_read_lock_held_common+0x130/0x130 kernel/rcu/update.c:275 __ip6_finish_output+0x442/0xab0 net/ipv6/ip6_output.c:143 __ip6_finish_output+0x442/0xab0 net/ipv6/ip6_output.c:143 ip6_finish_output+0x34/0x1f0 net/ipv6/ip6_output.c:153 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x239/0x810 net/ipv6/ip6_output.c:176 ip6_finish_output+0x1f0/0x1f0 include/net/inet_sock.h:266 __ip6_finish_output+0xab0/0xab0 include/net/ip6_route.h:270 csum_ipv6_magic+0x1b/0x70 arch/x86/lib/csum-wrappers_64.c:143 dst_output include/net/dst.h:435 [inline] ip6_local_out+0xaf/0x1a0 net/ipv6/output_core.c:179 ip6tunnel_xmit include/net/ip6_tunnel.h:160 [inline] udp_tunnel6_xmit_skb+0x6f4/0xcd0 net/ipv6/ip6_udp_tunnel.c:114 send6+0x4d7/0xbf0 drivers/net/wireguard/socket.c:152 send4+0xdf0/0xdf0 include/net/dst_cache.h:79 __kmalloc_reserve.isra.0+0xe0/0xe0 net/core/skbuff.c:154 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:3628 wg_socket_send_skb_to_peer drivers/net/wireguard/socket.c:177 [inline] wg_socket_send_buffer_to_peer+0x202/0x350 drivers/net/wireguard/socket.c:199 wg_packet_send_handshake_initiation+0x1fc/0x240 drivers/net/wireguard/send.c:40 wg_packet_queue_free+0x170/0x170 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_packet_handshake_send_worker+0x18/0x30 drivers/net/wireguard/send.c:51 process_one_work+0x965/0x16a0 kernel/workqueue.c:2268 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 pwq_dec_nr_in_flight+0x310/0x310 kernel/workqueue.c:1198 rwlock_bug.part.0+0x90/0x90 include/linux/sched.h:1329 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 process_one_work+0x16a0/0x16a0 kernel/workqueue.c:2273 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