================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 Read of size 2 at addr ffff8880540ee02a by task udevd/4273 CPU: 0 PID: 4273 Comm: udevd Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x200 mm/kasan/report.c:418 kasan_report+0x10b/0x140 mm/kasan/report.c:522 rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:106 [inline] RIP: 0010:lock_is_held_type+0x61/0x190 kernel/locking/lockdep.c:5701 Code: 0f 85 f4 00 00 00 65 48 8b 1d 9b 4a ec 75 83 bb dc 0a 00 00 00 0f 85 df 00 00 00 41 89 f7 49 89 fe 48 c7 04 24 00 00 00 00 9c <8f> 04 24 4c 8b 2c 24 fa 48 c7 c7 40 11 8c 8a e8 eb 12 00 00 65 ff RSP: 0018:ffffc90003ce7870 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8880304d5940 RCX: ffff8880304d5940 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8cb2ae80 RBP: 00000000ffffffff R08: ffff8880304d5940 R09: 0000000000000003 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88807e09cd80 R13: dffffc0000000000 R14: ffffffff8cb2ae80 R15: 00000000ffffffff lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0xa3/0x610 kernel/sched/core.c:9928 down_read+0x1e/0x2d0 kernel/locking/rwsem.c:1519 anon_vma_lock_read include/linux/rmap.h:131 [inline] validate_mm+0x136/0x2b0 mm/mmap.c:339 remove_mt mm/mmap.c:2318 [inline] do_mas_align_munmap+0xf98/0x1220 mm/mmap.c:2591 do_mas_munmap+0x240/0x2b0 mm/mmap.c:2646 __vm_munmap+0x18d/0x290 mm/mmap.c:2932 __do_sys_munmap mm/mmap.c:2957 [inline] __se_sys_munmap mm/mmap.c:2954 [inline] __x64_sys_munmap+0x5c/0x70 mm/mmap.c:2954 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa72ad1e097 Code: 73 01 c3 48 8b 0d 61 2d 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 31 2d 0d 00 f7 d8 64 89 01 48 RSP: 002b:00007ffdf1520a58 EFLAGS: 00000246 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 0000560e4b7982c0 RCX: 00007fa72ad1e097 RDX: 0000560e4b7a6000 RSI: 0000000000000200 RDI: 00007fa72b342000 RBP: 0000560e4b7a6000 R08: 0000000000000000 R09: 0000000000000400 R10: 0000560e4b7a5ff0 R11: 0000000000000246 R12: 00007fa72b41bc00 R13: 00007fa72b41f39c R14: 0000000000000048 R15: 0000000000000001 Allocated by task 1076: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xae/0x230 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x22a/0x7e0 net/core/skbuff.c:515 skb_copy+0x139/0x790 net/core/skbuff.c:1732 mac80211_hwsim_tx_frame_no_nl+0xd6e/0x1330 drivers/net/wireless/mac80211_hwsim.c:1729 mac80211_hwsim_tx_frame+0x1b5/0x200 drivers/net/wireless/mac80211_hwsim.c:2058 mac80211_hwsim_beacon_tx+0x61e/0xae0 drivers/net/wireless/mac80211_hwsim.c:2121 __iterate_interfaces+0x243/0x500 net/mac80211/util.c:788 ieee80211_iterate_active_interfaces_atomic+0xd7/0x170 net/mac80211/util.c:824 mac80211_hwsim_beacon+0xb7/0x1b0 drivers/net/wireless/mac80211_hwsim.c:2147 __run_hrtimer kernel/time/hrtimer.c:1752 [inline] __hrtimer_run_queues+0x554/0xd60 kernel/time/hrtimer.c:1816 hrtimer_run_softirq+0x183/0x2a0 kernel/time/hrtimer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 The buggy address belongs to the object at ffff8880540ee000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff8880540ee000, ffff8880540ee200) The buggy address belongs to the physical page: page:ffffea0001503b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880540ed400 pfn:0x540ec head:ffffea0001503b00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea000156fd08 ffffea000151d108 ffff888017441c80 raw: ffff8880540ed400 0000000000100001 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4280, tgid 4280 (syz-executor), ts 82072705453, free_ts 22959131305 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] fib6_info_alloc+0x2e/0xe0 net/ipv6/ip6_fib.c:156 ip6_route_info_create+0x44f/0x1210 net/ipv6/route.c:3794 addrconf_f6i_alloc+0x1b9/0x3f0 net/ipv6/route.c:4621 ipv6_add_addr+0x43a/0xf90 net/ipv6/addrconf.c:1121 inet6_addr_add+0x43b/0x9b0 net/ipv6/addrconf.c:3014 inet6_rtm_newaddr+0x617/0x870 net/ipv6/addrconf.c:4974 rtnetlink_rcv_msg+0x79b/0xed0 net/core/rtnetlink.c:6153 netlink_rcv_skb+0x1de/0x420 net/netlink/af_netlink.c:2511 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_contig_range+0x9d/0x150 mm/page_alloc.c:9574 destroy_args+0xef/0x8bf mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x32a/0x37e mm/debug_vm_pgtable.c:1354 do_one_initcall+0x214/0x7a0 init/main.c:1298 do_initcall_level+0x137/0x1e4 init/main.c:1371 do_initcalls+0x4b/0x8a init/main.c:1387 kernel_init_freeable+0x3fa/0x5ac init/main.c:1626 kernel_init+0x19/0x1b0 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff8880540edf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880540edf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880540ee000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880540ee080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880540ee100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 0f 85 f4 00 00 00 jne 0xfa 6: 65 48 8b 1d 9b 4a ec mov %gs:0x75ec4a9b(%rip),%rbx # 0x75ec4aa9 d: 75 e: 83 bb dc 0a 00 00 00 cmpl $0x0,0xadc(%rbx) 15: 0f 85 df 00 00 00 jne 0xfa 1b: 41 89 f7 mov %esi,%r15d 1e: 49 89 fe mov %rdi,%r14 21: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 28: 00 29: 9c pushf * 2a: 8f 04 24 pop (%rsp) <-- trapping instruction 2d: 4c 8b 2c 24 mov (%rsp),%r13 31: fa cli 32: 48 c7 c7 40 11 8c 8a mov $0xffffffff8a8c1140,%rdi 39: e8 eb 12 00 00 call 0x1329 3e: 65 gs 3f: ff .byte 0xff