------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: lib/refcount.c:25 at refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25, CPU#1: syz.3.3658/21527
Modules linked in:
CPU: 1 UID: 0 PID: 21527 Comm: syz.3.3658 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25
Code: eb 66 85 db 74 3e 83 fb 01 75 4c e8 3b 21 e9 fc 48 8d 3d 94 a2 a6 0b 67 48 0f b9 3a eb 4a e8 28 21 e9 fc 48 8d 3d 91 a2 a6 0b <67> 48 0f b9 3a eb 37 e8 15 21 e9 fc 48 8d 3d 8e a2 a6 0b 67 48 0f
RSP: 0018:ffffc90000a18c28 EFLAGS: 00010246
RAX: ffffffff84dea988 RBX: 0000000000000002 RCX: ffff88807e6eddc0
RDX: 0000000000000100 RSI: 0000000000000100 RDI: ffffffff90854c20
RBP: 0000000000000000 R08: ffff88807e6eddc0 R09: 0000000000000005
R10: 0000000000000004 R11: 0000000000000100 R12: dffffc0000000000
R13: 0000000000000001 R14: ffff888012320004 R15: ffff8880123203c0
FS: 0000555567fed500(0000) GS:ffff888124dd1000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe1cae8a9a0 CR3: 00000000217a4000 CR4: 00000000003526f0
Call Trace:
sctp_generate_timeout_event+0x1c8/0x390 net/sctp/sm_sideeffect.c:284
call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1748
expire_timers kernel/time/timer.c:1799 [inline]
__run_timers kernel/time/timer.c:2374 [inline]
__run_timer_base+0x652/0x8b0 kernel/time/timer.c:2386
run_timer_base kernel/time/timer.c:2395 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405
handle_softirqs+0x226/0x860 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:lockdep_unregister_key+0x2d4/0x350 kernel/locking/lockdep.c:6712
Code: e9 a1 14 09 00 48 c7 c7 90 29 9b 96 89 c6 e8 13 96 44 0a e9 66 fe ff ff e8 59 c4 41 0a 41 f7 c7 00 02 00 00 74 b4 fb 40 84 ed <75> b3 eb c4 90 0f 0b 90 e9 27 ff ff ff 90 0f 0b 90 e9 2f ff ff ff
RSP: 0018:ffffc90004987960 EFLAGS: 00000246
RAX: 0000000000000046 RBX: ffff888034f77268 RCX: 0000000000000046
RDX: ffffffff9456a4f8 RSI: ffffffff8e492223 RDI: ffffffff8c6d9c80
RBP: ffff88807e6edd00 R08: ffffffff81b0c4c8 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff20f4630 R12: 0000000000000000
R13: ffff888034f77269 R14: 0000000000001000 R15: 0000000000000a07
qdisc_lock_uninit include/net/pkt_sched.h:333 [inline]
__qdisc_destroy+0x1ab/0x470 net/sched/sch_generic.c:1124
netdev_for_each_tx_queue include/linux/netdevice.h:2752 [inline]
dev_shutdown+0x92/0x450 net/sched/sch_generic.c:1512
unregister_netdevice_many_notify+0x11f4/0x2140 net/core/dev.c:12505
unregister_netdevice_many net/core/dev.c:12589 [inline]
unregister_netdevice_queue+0x2f5/0x340 net/core/dev.c:12390
unregister_netdevice include/linux/netdevice.h:3490 [inline]
__tun_detach+0x1074/0x1900 drivers/net/tun.c:637
tun_detach drivers/net/tun.c:653 [inline]
tun_chr_close+0x10a/0x1c0 drivers/net/tun.c:3587
__fput+0x418/0xa50 fs/file_table.c:512
task_work_run+0x1d9/0x270 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline]
do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f424039e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe04d7d268 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f4240627da0 RCX: 00007f424039e159
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f4240627da0 R08: 00007f4240626038 R09: 0000000000000000
R10: 00000000003ffc4c R11: 0000000000000246 R12: 0000000000094b0b
R13: 00007f424062609c R14: 00000000000948ba R15: 00007f4240626090
----------------
Code disassembly (best guess):
0: eb 66 jmp 0x68
2: 85 db test %ebx,%ebx
4: 74 3e je 0x44
6: 83 fb 01 cmp $0x1,%ebx
9: 75 4c jne 0x57
b: e8 3b 21 e9 fc call 0xfce9214b
10: 48 8d 3d 94 a2 a6 0b lea 0xba6a294(%rip),%rdi # 0xba6a2ab
17: 67 48 0f b9 3a ud1 (%edx),%rdi
1c: eb 4a jmp 0x68
1e: e8 28 21 e9 fc call 0xfce9214b
23: 48 8d 3d 91 a2 a6 0b lea 0xba6a291(%rip),%rdi # 0xba6a2bb
* 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction
2f: eb 37 jmp 0x68
31: e8 15 21 e9 fc call 0xfce9214b
36: 48 8d 3d 8e a2 a6 0b lea 0xba6a28e(%rip),%rdi # 0xba6a2cb
3d: 67 addr32
3e: 48 rex.W
3f: 0f .byte 0xf