ip6_tunnel: syztnl0 xmit: Local address not yet configured!
============================================
WARNING: possible recursive locking detected
6.16.0-rc5-syzkaller-00159-g47c84997c686 #0 Not tainted
--------------------------------------------
syz.0.2023/13130 is trying to acquire lock:
ffff88810007d158 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: sch_direct_xmit+0x153/0x4b0

but task is already holding lock:
ffff888028b49d58 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: sch_direct_xmit+0x153/0x4b0

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&qdisc_xmit_lock_key#4);
  lock(&qdisc_xmit_lock_key#4);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

10 locks held by syz.0.2023/13130:
 #0: ffffffff8f51d808 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
 #1: ffffc90000007be0 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0
 #2: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: ndisc_send_skb+0x208/0x1400
 #3: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: ip6_finish_output2+0x701/0x16a0
 #4: ffffffff8e13f1c0 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x27e/0x3a70
 #5: ffff88803acf5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#2){+...}-{3:3}, at: __dev_queue_xmit+0x1300/0x3a70
 #6: ffff888028b49d58 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: sch_direct_xmit+0x153/0x4b0
 #7: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x452/0x1160
 #8: ffffffff8e13f1c0 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x27e/0x3a70
 #9: ffff88802fd89258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#2){+...}-{3:3}, at: __dev_queue_xmit+0x1300/0x3a70

stack backtrace:
CPU: 0 UID: 0 PID: 13130 Comm: syz.0.2023 Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_deadlock_bug+0x28b/0x2a0
 validate_chain+0x1a3f/0x2140
 __lock_acquire+0xab9/0xd20
 lock_acquire+0x120/0x360
 _raw_spin_lock+0x2e/0x40
 sch_direct_xmit+0x153/0x4b0
 __dev_queue_xmit+0x17b6/0x3a70
 ip_finish_output2+0xd40/0x1160
 iptunnel_xmit+0x571/0xa00
 ip_tunnel_xmit+0x1c3c/0x2380
 gre_tap_xmit+0x590/0x7a0
 dev_hard_start_xmit+0x2d7/0x830
 sch_direct_xmit+0x241/0x4b0
 __dev_queue_xmit+0x17b6/0x3a70
 ip6_finish_output2+0x11fe/0x16a0
 ip6_finish_output+0x234/0x7d0
 ndisc_send_skb+0xb47/0x1400
 addrconf_rs_timer+0x369/0x670
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:preempt_schedule_irq+0xb0/0x150
Code: 24 20 f6 44 24 21 02 74 0c 90 0f 0b 48 f7 03 08 00 00 00 74 64 bf 01 00 00 00 e8 7b 7e 20 f6 e8 36 5f 57 f6 fb bf 01 00 00 00 <e8> 1b ab ff ff 48 c7 44 24 40 00 00 00 00 9c 8f 44 24 40 8b 44 24
RSP: 0018:ffffc90002bdf7c0 EFLAGS: 00000282
RAX: ac01ea40ed89de00 RBX: 0000000000000000 RCX: ac01ea40ed89de00
RDX: 0000000000000006 RSI: ffffffff8d998b0c RDI: 0000000000000001
RBP: ffffc90002bdf870 R08: ffffffff8fa1f3f7 R09: 1ffffffff1f43e7e
R10: dffffc0000000000 R11: fffffbfff1f43e7f R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff9200057bef8
 irqentry_exit+0x6f/0x90
 asm_sysvec_call_function_single+0x1a/0x20
RIP: 0010:lockdep_unregister_key+0x2c5/0x310
Code: 65 48 8b 05 6d ec 01 11 48 3b 44 24 10 0f 84 26 fe ff ff e8 0d d4 d0 09 e8 38 d5 d0 09 41 f7 c7 00 02 00 00 74 bd fb 40 84 ed <75> bc eb cd 90 0f 0b 90 e9 19 ff ff ff 90 0f 0b 90 e9 2a ff ff ff
RSP: 0018:ffffc90002bdf938 EFLAGS: 00000202
RAX: ac01ea40ed89de00 RBX: 0000000000000000 RCX: ac01ea40ed89de00
RDX: ffffffff93640318 RSI: ffffffff8d9ac3d0 RDI: ffffffff8be29dc0
RBP: ffff888126601201 R08: 0000000000000000 R09: ffffffff81ab4dc8
R10: dffffc0000000000 R11: fffffbfff1f43e7f R12: 0000000000000000
R13: 0000000000001000 R14: 0000000000000000 R15: 0000000000000a07
 __qdisc_destroy+0x166/0x420
 dev_shutdown+0x93/0x440
 unregister_netdevice_many_notify+0xea7/0x2320
 unregister_netdevice_queue+0x33c/0x380
 __tun_detach+0xda4/0x1560
 tun_chr_close+0x10a/0x1c0
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa191d8e929
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffff148ef58 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 0000000000035834 RCX: 00007fa191d8e929
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007fa191fb7ba0 R08: 0000000000000001 R09: 00000006f148f24f
R10: 00007fa191c00000 R11: 0000000000000246 R12: 00007fa191fb5fac
R13: 00007fa191fb5fa0 R14: ffffffffffffffff R15: 00007ffff148f070
 </TASK>
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
