------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 4270 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 4270 Comm: kworker/u5:8 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: hci0 hci_power_on
RIP: 0010:refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25
Code: 09 01 48 c7 c7 a0 d2 be 8a e8 ad 30 45 fd 0f 0b eb e0 e8 f4 1d 79 fd c6 05 fa 72 e2 09 01 48 c7 c7 e0 d1 be 8a e8 91 30 45 fd <0f> 0b eb c4 e8 d8 1d 79 fd c6 05 df 72 e2 09 01 48 c7 c7 40 d2 be
RSP: 0018:ffffc90000007688 EFLAGS: 00010246
RAX: 7537b6cb74460400 RBX: 0000000000000002 RCX: ffff888072ad1dc0
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900000077e8 R08: dffffc0000000000 R09: fffff52000000e61
R10: fffff52000000e61 R11: 1ffff92000000e60 R12: ffff88805692b880
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888054270448
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff9939e9e8 CR3: 0000000065b66000 CR4: 00000000003526f0
Call Trace:
__refcount_add include/linux/refcount.h:-1 [inline]
__refcount_inc include/linux/refcount.h:250 [inline]
refcount_inc include/linux/refcount.h:267 [inline]
get_net include/net/net_namespace.h:257 [inline]
tipc_aead_encrypt net/tipc/crypto.c:821 [inline]
tipc_crypto_xmit+0x17a9/0x2300 net/tipc/crypto.c:1761
tipc_crypto_clone_msg+0x91/0x160 net/tipc/crypto.c:1656
tipc_crypto_xmit+0x1928/0x2300 net/tipc/crypto.c:1717
tipc_bearer_xmit_skb+0x242/0x3f0 net/tipc/bearer.c:574
tipc_disc_timeout+0x568/0x6b0 net/tipc/discover.c:338
call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504
expire_timers kernel/time/timer.c:1549 [inline]
__run_timers+0x525/0x7c0 kernel/time/timer.c:1820
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
handle_softirqs+0x2a1/0x920 kernel/softirq.c:596
__do_softirq kernel/softirq.c:630 [inline]
invoke_softirq kernel/softirq.c:470 [inline]
__irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679
irq_exit_rcu+0x5/0x20 kernel/softirq.c:691
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:queue_work_on+0x183/0x1d0 kernel/workqueue.c:1553
Code: 4d 85 e4 75 16 e8 3d c4 2d 00 eb 15 e8 36 c4 2d 00 e8 e1 7e bc 08 4d 85 e4 74 ea e8 27 c4 2d 00 fb 48 c7 44 24 20 0e 36 e0 45 <48> b8 00 00 00 00 00 fc ff df 49 c7 44 05 00 00 00 00 00 66 41 c7
RSP: 0018:ffffc900041576e0 EFLAGS: 00000293
RAX: ffffffff81531249 RBX: 0000000000000000 RCX: ffff888072ad1dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900041577b0 R08: dffffc0000000000 R09: fffffbfff2117063
R10: fffffbfff2117063 R11: 1ffffffff2117062 R12: 0000000000000200
R13: 1ffff9200082aee0 R14: 0000000000000000 R15: ffff88805b834f01
queue_work include/linux/workqueue.h:512 [inline]
hci_cmd_sync_run net/bluetooth/hci_sync.c:140 [inline]
__hci_cmd_sync_sk+0x614/0xe20 net/bluetooth/hci_sync.c:162
__hci_cmd_sync_status_sk net/bluetooth/hci_sync.c:253 [inline]
__hci_cmd_sync_status net/bluetooth/hci_sync.c:277 [inline]
hci_reset_sync+0x46/0x130 net/bluetooth/hci_sync.c:3521
hci_init1_sync net/bluetooth/hci_sync.c:3656 [inline]
hci_init_sync net/bluetooth/hci_sync.c:4746 [inline]
hci_dev_init_sync net/bluetooth/hci_sync.c:4937 [inline]
hci_dev_open_sync+0x1290/0x3760 net/bluetooth/hci_sync.c:5017
hci_dev_do_open net/bluetooth/hci_core.c:439 [inline]
hci_power_on+0x1b1/0x6c0 net/bluetooth/hci_core.c:945
process_one_work+0x898/0x1160 kernel/workqueue.c:2292
worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess):
0: 4d 85 e4 test %r12,%r12
3: 75 16 jne 0x1b
5: e8 3d c4 2d 00 call 0x2dc447
a: eb 15 jmp 0x21
c: e8 36 c4 2d 00 call 0x2dc447
11: e8 e1 7e bc 08 call 0x8bc7ef7
16: 4d 85 e4 test %r12,%r12
19: 74 ea je 0x5
1b: e8 27 c4 2d 00 call 0x2dc447
20: fb sti
21: 48 c7 44 24 20 0e 36 movq $0x45e0360e,0x20(%rsp)
28: e0 45
* 2a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax <-- trapping instruction
31: fc ff df
34: 49 c7 44 05 00 00 00 movq $0x0,0x0(%r13,%rax,1)
3b: 00 00
3d: 66 data16
3e: 41 rex.B
3f: c7 .byte 0xc7