================================================================== BUG: KASAN: slab-use-after-free in rose_send_frame net/rose/rose_link.c:105 [inline] BUG: KASAN: slab-use-after-free in rose_transmit_restart_request net/rose/rose_link.c:198 [inline] BUG: KASAN: slab-use-after-free in rose_t0timer_expiry+0x1ea/0x560 net/rose/rose_link.c:83 Read of size 8 at addr ffff8880507fcc18 by task syz-executor/5823 CPU: 1 UID: 0 PID: 5823 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 rose_send_frame net/rose/rose_link.c:105 [inline] rose_transmit_restart_request net/rose/rose_link.c:198 [inline] rose_t0timer_expiry+0x1ea/0x560 net/rose/rose_link.c:83 call_timer_fn+0x192/0x640 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2373 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2385 run_timer_base kernel/time/timer.c:2394 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2404 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x5f/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:194 Code: f7 e8 1d 71 ee f5 f7 c3 00 02 00 00 74 05 e8 10 d7 19 f6 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 e4 2d e0 f5 65 8b 05 0d f0 68 07 85 c0 74 18 5b 41 5e c3 cc cc RSP: 0018:ffffc90003707580 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000296 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8df28bae RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff90118cb7 R09: 1ffffffff2023196 R10: dffffc0000000000 R11: fffffbfff2023197 R12: ffff88803ed24438 R13: ffff88803ed24428 R14: ffffffff9a4c3da0 R15: 1ffff11007da4887 debug_object_activate+0x320/0x580 lib/debugobjects.c:853 debug_rcu_head_queue kernel/rcu/rcu.h:236 [inline] __call_rcu_common kernel/rcu/tree.c:3116 [inline] call_rcu+0x43/0x890 kernel/rcu/tree.c:3251 destroy_inode fs/inode.c:402 [inline] evict+0x95b/0xb10 fs/inode.c:870 proc_invalidate_siblings_dcache+0x42c/0x6c0 fs/proc/inode.c:152 release_task+0x1204/0x16f0 kernel/exit.c:291 wait_task_zombie kernel/exit.c:1280 [inline] wait_consider_task+0x1966/0x2e30 kernel/exit.c:1507 do_wait_thread kernel/exit.c:1570 [inline] __do_wait+0x152/0x740 kernel/exit.c:1688 do_wait+0x1e7/0x540 kernel/exit.c:1722 kernel_wait4+0x232/0x2b0 kernel/exit.c:1881 __do_sys_wait4 kernel/exit.c:1909 [inline] __se_sys_wait4 kernel/exit.c:1905 [inline] __x64_sys_wait4+0x166/0x240 kernel/exit.c:1905 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd1fb75cfce Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007ffe299725b8 EFLAGS: 00000246 ORIG_RAX: 000000000000003d RAX: ffffffffffffffda RBX: 000055556bf5f500 RCX: 00007fd1fb75cfce RDX: 0000000040000001 RSI: 00007ffe2997265c RDI: ffffffffffffffff RBP: 00007ffe2997265c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000001388 R13: 00000000000927c0 R14: 00000000000881e2 R15: 00007ffe299726b0 Allocated by task 13306: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x660 mm/slub.c:5380 kmalloc_noprof include/linux/slab.h:950 [inline] rose_add_node+0x23c/0xf00 net/rose/rose_route.c:85 rose_rt_ioctl+0xd35/0x12a0 net/rose/rose_route.c:748 rose_ioctl+0x3fb/0x8f0 net/rose/af_rose.c:1387 sock_do_ioctl+0x101/0x320 net/socket.c:1247 sock_ioctl+0x5c6/0x7f0 net/socket.c:1368 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 20193: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2685 [inline] slab_free mm/slub.c:6165 [inline] kfree+0x1c1/0x630 mm/slub.c:6483 rose_neigh_put include/net/rose.h:166 [inline] rose_timer_expiry+0x4cb/0x600 net/rose/rose_timer.c:183 call_timer_fn+0x192/0x640 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2373 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2385 run_timer_base kernel/time/timer.c:2394 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2404 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x5f/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 The buggy address belongs to the object at ffff8880507fcc00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 24 bytes inside of freed 512-byte region [ffff8880507fcc00, ffff8880507fce00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880507ffc00 pfn:0x507fc head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88813fea6c80 ffffea0001035f10 ffffea0000ce3410 raw: ffff8880507ffc00 0000000800100006 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88813fea6c80 ffffea0001035f10 ffffea0000ce3410 head: ffff8880507ffc00 0000000800100006 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea000141ff01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 10940, tgid 10934 (syz.0.1108), ts 271195512990, free_ts 184981769504 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab+0x77/0x660 mm/slub.c:3481 new_slab mm/slub.c:3539 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x2e6/0x730 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] __do_kmalloc_node mm/slub.c:5259 [inline] __kmalloc_noprof+0x474/0x760 mm/slub.c:5272 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] hash_ip4_add+0x18ba/0x1ee0 net/netfilter/ipset/ip_set_hash_gen.h:950 hash_ip4_uadt+0x664/0x860 net/netfilter/ipset/ip_set_hash_ip.c:160 call_ad+0x398/0xb60 net/netfilter/ipset/ip_set_core.c:1751 ip_set_ad+0x824/0x9d0 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0xc00/0x12c0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550 nfnetlink_rcv+0x2c0/0x27b0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 page last free pid 8874 tgid 8872 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xc2b/0xdb0 mm/page_alloc.c:2978 __folio_put+0x414/0x4f0 mm/swap.c:112 page_pool_empty_alloc_cache_once net/core/page_pool.c:1150 [inline] page_pool_scrub net/core/page_pool.c:1159 [inline] page_pool_release+0x19a/0xd90 net/core/page_pool.c:1191 page_pool_destroy+0x1d5/0x3f0 net/core/page_pool.c:1300 xdp_test_run_teardown net/bpf/test_run.c:207 [inline] bpf_test_run_xdp_live+0x1c52/0x1cf0 net/bpf/test_run.c:385 bpf_prog_test_run_xdp+0x81c/0x1160 net/bpf/test_run.c:1397 bpf_prog_test_run+0x2c7/0x340 kernel/bpf/syscall.c:4722 __sys_bpf+0x643/0x950 kernel/bpf/syscall.c:6246 __do_sys_bpf kernel/bpf/syscall.c:6341 [inline] __se_sys_bpf kernel/bpf/syscall.c:6339 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6339 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff8880507fcb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880507fcb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880507fcc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880507fcc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880507fcd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 1d 71 ee f5 f7 sbb $0xf7f5ee71,%eax 7: c3 ret 8: 00 02 add %al,(%rdx) a: 00 00 add %al,(%rax) c: 74 05 je 0x13 e: e8 10 d7 19 f6 call 0xf619d723 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 27 jne 0x43 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 e4 2d e0 f5 call 0xf5e02e13 <-- trapping instruction 2f: 65 8b 05 0d f0 68 07 mov %gs:0x768f00d(%rip),%eax # 0x768f043 36: 85 c0 test %eax,%eax 38: 74 18 je 0x52 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: c3 ret 3e: cc int3 3f: cc int3