syzbot


WARNING: refcount bug in tipc_crypto_xmit

Status: upstream: reported syz repro on 2025/06/04 19:21
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+75a261934ba56edf436c@syzkaller.appspotmail.com
First crash: 3d08h, last: 2h02m
Bug presence (1)
Date Name Commit Repro Result
2025/06/05 upstream (ToT) 7fdaba912981 C [report] WARNING: refcount bug in tipc_crypto_xmit
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING: refcount bug in tipc_crypto_xmit origin:lts-only syz 46 1h03m 3d10h 0/3 upstream: reported syz repro on 2025/06/04 16:45
upstream WARNING: refcount bug in tipc_crypto_xmit tipc C done 4968 1d18h 12d 24/28 upstream: reported C repro on 2025/05/26 08:50

Sample crash report:
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 0 at lib/refcount.c:25 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.185-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25
lr : refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25
sp : ffff800008007800
x29: ffff800008007800 x28: ffff0000eb5ac400 x27: ffff0000cf0b1000
x26: 1ffff00002830711 x25: dfff800000000000 x24: 1fffe00019e16201
x23: ffff0000c0c57c00 x22: ffff0000d4ff1bd4 x21: ffff0000c1f11880
x20: ffff0000d4ff1bd4 x19: ffff80001659e000 x18: 0000000000000102
x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff
x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100
x11: 0000000000000101 x10: 0000000000000000 x9 : c12710d1fc301400
x8 : c12710d1fc301400 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000080070f8 x4 : ffff80001423f280 x3 : ffff800008503958
x2 : 0000000000000001 x1 : 0000000100000101 x0 : 000000000000002a
Call trace:
 refcount_warn_saturate+0x134/0x1f8 lib/refcount.c:25
 __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:252 [inline]
 tipc_aead_encrypt net/tipc/crypto.c:832 [inline]
 tipc_crypto_xmit+0x1634/0x2220 net/tipc/crypto.c:1772
 tipc_bearer_xmit_skb+0x1f0/0x384 net/tipc/bearer.c:574
 tipc_disc_timeout+0x4c8/0x608 net/tipc/discover.c:338
 call_timer_fn+0x19c/0x858 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x46c/0x6c4 kernel/time/timer.c:1767
 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1780
 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576
 __do_softirq kernel/softirq.c:610 [inline]
 do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
 invoke_softirq kernel/softirq.c:457 [inline]
 __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659
 irq_exit+0x14/0x88 kernel/softirq.c:683
 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711
 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765
 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899
 do_interrupt_handler+0x6c/0x88 arch/arm64/kernel/entry-common.c:267
 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470
 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522
 arch_local_irq_enable+0xc/0x18 arch/arm64/include/asm/irqflags.h:35
 default_idle_call+0xcc/0x418 kernel/sched/idle.c:112
 cpuidle_idle_call kernel/sched/idle.c:194 [inline]
 do_idle+0x1c8/0x480 kernel/sched/idle.c:306
 cpu_startup_entry+0x24/0x28 kernel/sched/idle.c:403
 rest_init+0x360/0x390 init/main.c:741
 arch_call_rest_init+0x14/0x20 init/main.c:893
 start_kernel+0x49c/0x54c init/main.c:1140
 __primary_switched+0xa8/0xb0 arch/arm64/kernel/head.S:468
irq event stamp: 281413
hardirqs last  enabled at (281412): [<ffff8000082f7764>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (281413): [<ffff8000111a5098>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (281364): [<ffff80000819d1e8>] softirq_handle_end kernel/softirq.c:419 [inline]
softirqs last  enabled at (281364): [<ffff80000819d1e8>] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604
softirqs last disabled at (281389): [<ffff80000819d7ec>] __do_softirq kernel/softirq.c:610 [inline]
softirqs last disabled at (281389): [<ffff80000819d7ec>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (281389): [<ffff80000819d7ec>] invoke_softirq kernel/softirq.c:457 [inline]
softirqs last disabled at (281389): [<ffff80000819d7ec>] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659
---[ end trace 02a0ad5046a1c486 ]---
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 0 at lib/refcount.c:28 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W         5.15.185-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28
lr : refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28
sp : ffff800008007800
x29: ffff800008007800 x28: ffff0000eb5ac400 x27: 0000000000000000
x26: 1ffff00002830711 x25: dfff800000000000 x24: 1fffe00019e16201
x23: ffff0000dcf32b38 x22: ffff0000d4ff1a80 x21: ffff0000c1f11880
x20: ffff0000d4ff1bd4 x19: ffff80001659e000 x18: 0000000000000102
x17: 0000000000000000 x16: ffff8000083008fc x15: 00000000ffffffff
x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100
x11: 0000000000000101 x10: 0000000000000000 x9 : c12710d1fc301400
x8 : c12710d1fc301400 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000080070f8 x4 : ffff80001423f280 x3 : ffff800008300a0c
x2 : 0000000000000001 x1 : 0000000000000101 x0 : 0000000000000026
Call trace:
 refcount_warn_saturate+0x154/0x1f8 lib/refcount.c:28
 __refcount_sub_and_test include/linux/refcount.h:283 [inline]
 __refcount_dec_and_test include/linux/refcount.h:315 [inline]
 refcount_dec_and_test include/linux/refcount.h:333 [inline]
 put_net include/net/net_namespace.h:270 [inline]
 tipc_aead_encrypt net/tipc/crypto.c:840 [inline]
 tipc_crypto_xmit+0x177c/0x2220 net/tipc/crypto.c:1772
 tipc_bearer_xmit_skb+0x1f0/0x384 net/tipc/bearer.c:574
 tipc_disc_timeout+0x4c8/0x608 net/tipc/discover.c:338
 call_timer_fn+0x19c/0x858 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x46c/0x6c4 kernel/time/timer.c:1767
 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1780
 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576
 __do_softirq kernel/softirq.c:610 [inline]
 do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
 invoke_softirq kernel/softirq.c:457 [inline]
 __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659
 irq_exit+0x14/0x88 kernel/softirq.c:683
 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711
 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765
 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899
 do_interrupt_handler+0x6c/0x88 arch/arm64/kernel/entry-common.c:267
 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470
 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522
 arch_local_irq_enable+0xc/0x18 arch/arm64/include/asm/irqflags.h:35
 default_idle_call+0xcc/0x418 kernel/sched/idle.c:112
 cpuidle_idle_call kernel/sched/idle.c:194 [inline]
 do_idle+0x1c8/0x480 kernel/sched/idle.c:306
 cpu_startup_entry+0x24/0x28 kernel/sched/idle.c:403
 rest_init+0x360/0x390 init/main.c:741
 arch_call_rest_init+0x14/0x20 init/main.c:893
 start_kernel+0x49c/0x54c init/main.c:1140
 __primary_switched+0xa8/0xb0 arch/arm64/kernel/head.S:468
irq event stamp: 281443
hardirqs last  enabled at (281442): [<ffff8000082f7764>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (281443): [<ffff8000111a5098>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (281364): [<ffff80000819d1e8>] softirq_handle_end kernel/softirq.c:419 [inline]
softirqs last  enabled at (281364): [<ffff80000819d1e8>] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:604
softirqs last disabled at (281389): [<ffff80000819d7ec>] __do_softirq kernel/softirq.c:610 [inline]
softirqs last disabled at (281389): [<ffff80000819d7ec>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (281389): [<ffff80000819d7ec>] invoke_softirq kernel/softirq.c:457 [inline]
softirqs last disabled at (281389): [<ffff80000819d7ec>] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659
---[ end trace 02a0ad5046a1c487 ]---

Crashes (71):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/07 12:20 linux-5.15.y 1c700860e8bc 4826c28e .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 20:28 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 17:03 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 23:46 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 06:26 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 06:23 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 17:24 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:43 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:32 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:19 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:18 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:15 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 20:35 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 03:14 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 03:14 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/04 20:47 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/04 19:35 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/04 19:32 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/04 19:20 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in tipc_crypto_xmit
2025/06/08 00:58 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 20:45 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 19:37 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 15:46 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 14:29 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 09:13 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 07:50 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 06:39 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 06:33 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 06:24 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/07 04:49 linux-5.15.y 1c700860e8bc 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 18:17 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:25 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:23 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:12 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:03 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 14:03 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/06 01:02 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 16:34 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 16:29 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 15:30 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 15:03 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 15:03 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 14:15 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 14:08 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 14:01 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 13:54 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 03:13 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/05 03:12 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/04 21:01 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
2025/06/04 19:23 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING: refcount bug in tipc_crypto_xmit
* Struck through repros no longer work on HEAD.