------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 3 PID: 5949 at lib/refcount.c:25 refcount_warn_saturate+0x1ca/0x210 lib/refcount.c:25
Modules linked in:
CPU: 3 UID: 0 PID: 5949 Comm: syz-executor Not tainted 6.15.0-syzkaller-12141-gec7714e49479 #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:refcount_warn_saturate+0x1ca/0x210 lib/refcount.c:25
Code: ff 89 de e8 98 4d e0 fc 84 db 0f 85 e6 fe ff ff e8 ab 52 e0 fc c6 05 d6 9e b4 0b 01 90 48 c7 c7 80 1b 15 8c e8 17 1e 9f fc 90 <0f> 0b 90 90 e9 c3 fe ff ff e8 88 52 e0 fc c6 05 b1 9e b4 0b 01 90
RSP: 0018:ffffc900006f88b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817ae368
RDX: ffff888023f0a440 RSI: ffffffff817ae375 RDI: 0000000000000001
RBP: ffff8880273f016c R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880273f016c
R13: ffff8880273f0000 R14: ffff888106fc5b00 R15: ffff88804833f000
FS: 0000555564a20500(0000) GS:ffff8880d6a5a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fccc52e56c0 CR3: 000000004f0cc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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:const_folio_flags.constprop.0+0x29/0x70 include/linux/page-flags.h:347
Code: 90 55 53 48 89 fb e8 a6 ea b4 ff 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 3c 48 8b 6b 08 <31> ff 83 e5 01 48 89 ee e8 ea e5 b4 ff 48 85 ed 75 0f e8 70 ea b4
RSP: 0018:ffffc90004937690 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffffea000140a940 RCX: ffffffff82072693
RDX: 1ffffd4000281529 RSI: ffffffff82072baa RDI: ffffea000140a948
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffea000140a940 R15: ffff88804f0d3f00
folio_test_head include/linux/page-flags.h:867 [inline]
folio_test_large include/linux/page-flags.h:888 [inline]
__folio_dup_file_rmap include/linux/rmap.h:556 [inline]
folio_dup_file_rmap_pte include/linux/rmap.h:596 [inline]
copy_present_ptes mm/memory.c:1051 [inline]
copy_pte_range mm/memory.c:1179 [inline]
copy_pmd_range mm/memory.c:1267 [inline]
copy_pud_range mm/memory.c:1304 [inline]
copy_p4d_range mm/memory.c:1328 [inline]
copy_page_range+0x1dc6/0x5d90 mm/memory.c:1416
dup_mmap+0xe88/0x21d0 mm/mmap.c:1838
dup_mm kernel/fork.c:1477 [inline]
copy_mm kernel/fork.c:1529 [inline]
copy_process+0x4081/0x76a0 kernel/fork.c:2169
kernel_clone+0xfc/0x960 kernel/fork.c:2599
__do_sys_clone+0xce/0x120 kernel/fork.c:2742
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fccc4585193
Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffd3ed8c438 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fccc4585193
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
R10: 0000555564a207d0 R11: 0000000000000246 R12: 0000000000000000
R13: 00000000000927c0 R14: 000000000001afb4 R15: 00007ffd3ed8c5d0
----------------
Code disassembly (best guess):
0: 90 nop
1: 55 push %rbp
2: 53 push %rbx
3: 48 89 fb mov %rdi,%rbx
6: e8 a6 ea b4 ff call 0xffb4eab1
b: 48 8d 7b 08 lea 0x8(%rbx),%rdi
f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
16: fc ff df
19: 48 89 fa mov %rdi,%rdx
1c: 48 c1 ea 03 shr $0x3,%rdx
20: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
24: 75 3c jne 0x62
26: 48 8b 6b 08 mov 0x8(%rbx),%rbp
* 2a: 31 ff xor %edi,%edi <-- trapping instruction
2c: 83 e5 01 and $0x1,%ebp
2f: 48 89 ee mov %rbp,%rsi
32: e8 ea e5 b4 ff call 0xffb4e621
37: 48 85 ed test %rbp,%rbp
3a: 75 0f jne 0x4b
3c: e8 .byte 0xe8
3d: 70 ea jo 0x29
3f: b4 .byte 0xb4