================================================================== BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x404/0x45c net/rose/rose_timer.c:183 Read of size 2 at addr ffff0000f80fa82a by task syz.1.1862/12444 CPU: 1 UID: 0 PID: 12444 Comm: syz.1.1862 Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x220 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:480 kasan_report+0xb0/0x110 mm/kasan/report.c:593 __asan_report_load2_noabort+0x20/0x2c mm/kasan/report_generic.c:379 rose_timer_expiry+0x404/0x45c net/rose/rose_timer.c:183 call_timer_fn+0x1b4/0x818 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers kernel/time/timer.c:2372 [inline] __run_timer_base+0x51c/0x76c kernel/time/timer.c:2384 run_timer_base kernel/time/timer.c:2393 [inline] run_timer_softirq+0xcc/0x194 kernel/time/timer.c:2403 handle_softirqs+0x328/0xc88 kernel/softirq.c:579 __do_softirq+0x14/0x20 kernel/softirq.c:613 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:68 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:891 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:73 invoke_softirq kernel/softirq.c:460 [inline] __irq_exit_rcu+0x1b0/0x478 kernel/softirq.c:680 irq_exit_rcu+0x14/0x84 kernel/softirq.c:696 __el1_irq arch/arm64/kernel/entry-common.c:654 [inline] el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:668 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:673 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:592 __preempt_count_dec_and_test arch/arm64/include/asm/preempt.h:62 [inline] (P) lockdep_enabled kernel/locking/lockdep.c:121 [inline] (P) lock_release+0xa4/0x39c kernel/locking/lockdep.c:5884 (P) __might_fault+0xf0/0x124 mm/memory.c:6971 ____sys_recvmsg+0x3d0/0x744 net/socket.c:2807 ___sys_recvmsg+0x188/0x45c net/socket.c:2828 do_recvmmsg+0x294/0x7cc net/socket.c:2923 __sys_recvmmsg net/socket.c:2997 [inline] __do_sys_recvmmsg net/socket.c:3020 [inline] __se_sys_recvmmsg net/socket.c:3013 [inline] __arm64_sys_recvmmsg+0x17c/0x238 net/socket.c:3013 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Allocated by task 12393: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x2a4/0x3fc mm/slub.c:4359 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] rxrpc_alloc_peer+0x8c/0x328 net/rxrpc/peer_object.c:229 rxrpc_service_prealloc_one+0x188/0xb94 net/rxrpc/call_accept.c:73 rxrpc_kernel_charge_accept+0xc4/0x100 net/rxrpc/call_accept.c:480 afs_charge_preallocation+0x2dc/0x40c fs/afs/rxrpc.c:758 afs_open_socket+0x2d4/0x36c fs/afs/rxrpc.c:112 afs_net_init+0x590/0x74c fs/afs/main.c:116 ops_init+0x310/0x544 net/core/net_namespace.c:138 setup_net+0x224/0x518 net/core/net_namespace.c:442 copy_net_ns+0x2a4/0x4a4 net/core/net_namespace.c:574 create_new_namespaces+0x318/0x5a8 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:218 ksys_unshare+0x420/0x738 kernel/fork.c:3121 __do_sys_unshare kernel/fork.c:3192 [inline] __se_sys_unshare kernel/fork.c:3190 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3190 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Freed by task 9850: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x68/0x88 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x17c/0x474 mm/slub.c:4842 rxrpc_discard_prealloc+0x158/0x72c net/rxrpc/call_accept.c:200 rxrpc_listen+0x21c/0x314 net/rxrpc/af_rxrpc.c:246 kernel_listen+0x6c/0x80 net/socket.c:3543 afs_close_socket+0xa0/0x33c fs/afs/rxrpc.c:130 afs_net_exit+0x6c/0xe8 fs/afs/main.c:149 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x3c0/0x7ec net/core/net_namespace.c:253 cleanup_net+0x3e4/0x6c0 net/core/net_namespace.c:686 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 The buggy address belongs to the object at ffff0000f80fa800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of freed 512-byte region [ffff0000f80fa800, ffff0000f80faa00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1380f8 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0001c80 fffffdffc3e2ee00 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0001c80 fffffdffc3e2ee00 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 05ffc00000000002 fffffdffc3e03e01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f80fa700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000f80fa780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000f80fa800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000f80fa880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000f80fa900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================