------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 5939 at lib/refcount.c:25 refcount_warn_saturate+0x1ca/0x210 lib/refcount.c:25
Modules linked in:
CPU: 0 UID: 0 PID: 5939 Comm: kworker/u8:4 Not tainted 6.15.0-syzkaller-12293-g7fdaba912981 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound nsim_dev_trap_report_work
RIP: 0010:refcount_warn_saturate+0x1ca/0x210 lib/refcount.c:25
Code: ff 89 de e8 28 c9 e2 fc 84 db 0f 85 e6 fe ff ff e8 3b ce e2 fc c6 05 6f 34 b7 0b 01 90 48 c7 c7 00 08 15 8c e8 57 9a a1 fc 90 <0f> 0b 90 90 e9 c3 fe ff ff e8 18 ce e2 fc c6 05 4a 34 b7 0b 01 90
RSP: 0018:ffffc900000078b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817ae368
RDX: ffff88802de48000 RSI: ffffffff817ae375 RDI: 0000000000000001
RBP: ffff88807b23016c R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88807b23016c
R13: ffff88807b230000 R14: ffff88802a882400 R15: ffff8880217fa000
FS: 0000000000000000(0000) GS:ffff88812475e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c3464db CR3: 000000000e382000 CR4: 0000000000350ef0
Call Trace:
__refcount_add include/linux/refcount.h:289 [inline]
__refcount_inc include/linux/refcount.h:366 [inline]
refcount_inc include/linux/refcount.h:383 [inline]
get_net include/net/net_namespace.h:268 [inline]
tipc_aead_encrypt net/tipc/crypto.c:821 [inline]
tipc_crypto_xmit+0x20c1/0x2550 net/tipc/crypto.c:1761
tipc_bearer_xmit_skb+0x15f/0x430 net/tipc/bearer.c:572
tipc_disc_timeout+0x5b2/0x850 net/tipc/discover.c:338
call_timer_fn+0x19a/0x620 kernel/time/timer.c:1747
expire_timers kernel/time/timer.c:1798 [inline]
__run_timers+0x6ef/0x960 kernel/time/timer.c:2372
__run_timer_base kernel/time/timer.c:2384 [inline]
__run_timer_base kernel/time/timer.c:2376 [inline]
run_timer_base+0x114/0x190 kernel/time/timer.c:2393
run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2403
handle_softirqs+0x219/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:crng_make_state+0x2b5/0x6d0 drivers/char/random.c:394
Code: fc 4d 85 ed 0f 85 cf 01 00 00 e8 76 64 5f fc 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 d4 5f 5f fc 48 85 db 0f 85 59 02 00 00 <48> 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f e9 48 64 5f fc e8 43 64
RSP: 0018:ffffc9000401fa10 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff855cb310
RDX: ffff88802de48000 RSI: ffffffff855cb31e RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 00000000cb7f1be3 R12: ffff8880b8436730
R13: 0000000000000200 R14: 0000000000000002 R15: 0000000000000024
_get_random_bytes+0x120/0x1e0 drivers/char/random.c:406
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:775 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline]
nsim_dev_trap_report_work+0x78a/0xcf0 drivers/net/netdevsim/dev.c:851
process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238
process_scheduled_works kernel/workqueue.c:3321 [inline]
worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402
kthread+0x3c5/0x780 kernel/kthread.c:464
ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
----------------
Code disassembly (best guess):
0: fc cld
1: 4d 85 ed test %r13,%r13
4: 0f 85 cf 01 00 00 jne 0x1d9
a: e8 76 64 5f fc call 0xfc5f6485
f: 9c pushf
10: 5b pop %rbx
11: 81 e3 00 02 00 00 and $0x200,%ebx
17: 31 ff xor %edi,%edi
19: 48 89 de mov %rbx,%rsi
1c: e8 d4 5f 5f fc call 0xfc5f5ff5
21: 48 85 db test %rbx,%rbx
24: 0f 85 59 02 00 00 jne 0x283
* 2a: 48 83 c4 20 add $0x20,%rsp <-- trapping instruction
2e: 5b pop %rbx
2f: 5d pop %rbp
30: 41 5c pop %r12
32: 41 5d pop %r13
34: 41 5e pop %r14
36: 41 5f pop %r15
38: e9 48 64 5f fc jmp 0xfc5f6485
3d: e8 .byte 0xe8
3e: 43 rex.XB
3f: 64 fs