[moderation] [afs?] [net?] KASAN: slab-use-after-free Read in rxrpc_input_call_event

11 views
Skip to first unread message

syzbot

unread,
Jun 6, 2025, 6:20:31 PM6/6/25
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cd2e103d57e5 Merge tag 'hardening-v6.16-rc1-fix1-take2' of..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13b5ac82580000
kernel config: https://syzkaller.appspot.com/x/.config?x=577ec106a16bf15a
dashboard link: https://syzkaller.appspot.com/bug?extid=ec3b7c0ad3268b2d5e69
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
CC: [da...@davemloft.net dhow...@redhat.com edum...@google.com ho...@kernel.org ku...@kernel.org linu...@lists.infradead.org linux-...@vger.kernel.org marc....@auristor.com net...@vger.kernel.org pab...@redhat.com]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ba02c8955018/disk-cd2e103d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3fca8d5724a8/vmlinux-cd2e103d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2cafee8604fb/bzImage-cd2e103d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ec3b7c...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: slab-use-after-free in rxrpc_input_call_event+0x211f/0x2310 net/rxrpc/call_event.c:475
Read of size 8 at addr ffff88805a9e0f48 by task krxrpcio/0/7411

CPU: 0 UID: 0 PID: 7411 Comm: krxrpcio/0 Not tainted 6.15.0-syzkaller-10820-gcd2e103d57e5 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0xcd/0x680 mm/kasan/report.c:521
kasan_report+0xe0/0x110 mm/kasan/report.c:634
rxrpc_input_call_event+0x211f/0x2310 net/rxrpc/call_event.c:475
rxrpc_distribute_error net/rxrpc/peer_event.c:232 [inline]
rxrpc_store_error net/rxrpc/peer_event.c:209 [inline]
rxrpc_input_error+0x7d9/0xf20 net/rxrpc/peer_event.c:177
rxrpc_io_thread+0x1412/0x4020 net/rxrpc/io_thread.c:488
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
</TASK>

Allocated by task 7409:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:319 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:345
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4147 [inline]
slab_alloc_node mm/slub.c:4196 [inline]
kmem_cache_alloc_noprof+0x1cb/0x3b0 mm/slub.c:4203
rxrpc_alloc_call+0x17b/0x1090 net/rxrpc/call_object.c:127
rxrpc_alloc_client_call net/rxrpc/call_object.c:200 [inline]
rxrpc_new_client_call+0x138/0x17c0 net/rxrpc/call_object.c:347
rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:645 [inline]
rxrpc_do_sendmsg+0xb16/0x15d0 net/rxrpc/sendmsg.c:695
rxrpc_sendmsg+0x498/0x680 net/rxrpc/af_rxrpc.c:598
sock_sendmsg_nosec net/socket.c:712 [inline]
__sock_sendmsg net/socket.c:727 [inline]
____sys_sendmsg+0xa98/0xc70 net/socket.c:2566
___sys_sendmsg+0x134/0x1d0 net/socket.c:2620
__sys_sendmsg+0x16d/0x220 net/socket.c:2652
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

Freed by task 7409:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576
poison_slab_object mm/kasan/common.c:247 [inline]
__kasan_slab_free+0x51/0x70 mm/kasan/common.c:264
kasan_slab_free include/linux/kasan.h:233 [inline]
slab_free_hook mm/slub.c:2380 [inline]
slab_free mm/slub.c:4642 [inline]
kmem_cache_free+0x2d1/0x4d0 mm/slub.c:4744
rxrpc_rcu_free_call+0x3e/0x90 net/rxrpc/call_object.c:679
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0x79c/0x14e0 kernel/rcu/tree.c:2832
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

Last potentially related work creation:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:548
__call_rcu_common.constprop.0+0x9a/0x9f0 kernel/rcu/tree.c:3090
rxrpc_cleanup_call+0x12f/0x1a0 net/rxrpc/call_object.c:722
rxrpc_put_call+0x2a5/0x390 net/rxrpc/call_object.c:667
rxrpc_input_call_event+0xfc8/0x2310 net/rxrpc/call_event.c:474
rxrpc_distribute_error net/rxrpc/peer_event.c:232 [inline]
rxrpc_store_error net/rxrpc/peer_event.c:209 [inline]
rxrpc_input_error+0x7d9/0xf20 net/rxrpc/peer_event.c:177
rxrpc_io_thread+0x1412/0x4020 net/rxrpc/io_thread.c:488
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

The buggy address belongs to the object at ffff88805a9e0f00
which belongs to the cache rxrpc_call_jar of size 1760
The buggy address is located 72 bytes inside of
freed 1760-byte region [ffff88805a9e0f00, ffff88805a9e15e0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5a9e0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88814b8fd000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000080110011 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88814b8fd000 dead000000000122 0000000000000000
head: 0000000000000000 0000000080110011 00000000f5000000 0000000000000000
head: 00fff00000000003 ffffea00016a7801 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6491, tgid 6490 (syz.3.126), ts 118297331787, free_ts 117839760044
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959
alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419
alloc_slab_page mm/slub.c:2450 [inline]
allocate_slab mm/slub.c:2618 [inline]
new_slab+0x23b/0x330 mm/slub.c:2672
___slab_alloc+0xd9c/0x1940 mm/slub.c:3858
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3948
__slab_alloc_node mm/slub.c:4023 [inline]
slab_alloc_node mm/slub.c:4184 [inline]
kmem_cache_alloc_noprof+0xef/0x3b0 mm/slub.c:4203
rxrpc_alloc_call+0x17b/0x1090 net/rxrpc/call_object.c:127
rxrpc_service_prealloc_one+0x35d/0xfd0 net/rxrpc/call_accept.c:97
rxrpc_kernel_charge_accept+0xcd/0x110 net/rxrpc/call_accept.c:474
afs_charge_preallocation+0xc6/0x320 fs/afs/rxrpc.c:758
afs_open_socket+0x323/0x400 fs/afs/rxrpc.c:112
afs_net_init+0x825/0xb00 fs/afs/main.c:116
ops_init+0x1df/0x5f0 net/core/net_namespace.c:138
setup_net+0x1ff/0x510 net/core/net_namespace.c:442
page last free pid 2 tgid 2 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0x7fe/0x1180 mm/page_alloc.c:2706
discard_slab mm/slub.c:2716 [inline]
__put_partials+0x16d/0x1c0 mm/slub.c:3185
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4147 [inline]
slab_alloc_node mm/slub.c:4196 [inline]
kmem_cache_alloc_node_noprof+0x1d5/0x3b0 mm/slub.c:4248
alloc_task_struct_node kernel/fork.c:183 [inline]
dup_task_struct kernel/fork.c:869 [inline]
copy_process+0x4b6/0x76a0 kernel/fork.c:1999
kernel_clone+0xfc/0x960 kernel/fork.c:2599
kernel_thread+0xd4/0x120 kernel/fork.c:2661
create_kthread kernel/kthread.c:487 [inline]
kthreadd+0x503/0x800 kernel/kthread.c:847
ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
ffff88805a9e0e00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88805a9e0e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88805a9e0f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88805a9e0f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88805a9e1000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Aug 31, 2025, 6:17:17 PM8/31/25
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages