================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 Read of size 2 at addr ffff88805fe7042a by task modprobe/7932 CPU: 0 PID: 7932 Comm: modprobe Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 call_timer_fn+0x16c/0x530 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 handle_softirqs+0x328/0x820 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x60 kernel/kcov.c:205 Code: 84 00 00 00 00 00 53 48 89 fb e8 17 00 00 00 48 8b 3d 00 ec f0 0b 48 89 de 5b e9 47 ae 44 00 00 00 cc cc 00 00 cc 48 8b 04 24 <65> 48 8b 0d 94 ad 8a 7e 65 8b 15 95 ad 8a 7e 81 e2 00 01 ff 00 74 RSP: 0018:ffffc9000338f840 EFLAGS: 00000246 RAX: ffffffff81b12c79 RBX: ffff888021f536a0 RCX: ffff8880274a3b80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffff94000076879 R10: fffff94000076879 R11: 1ffffd4000076878 R12: ffffea00003b43c8 R13: ffffea00003b43c0 R14: dffffc0000000000 R15: ffffea00003b43d8 page_remove_file_rmap mm/rmap.c:1260 [inline] page_remove_rmap+0x639/0x10f0 mm/rmap.c:1354 zap_pte_range mm/memory.c:1384 [inline] zap_pmd_range mm/memory.c:1505 [inline] zap_pud_range mm/memory.c:1534 [inline] zap_p4d_range mm/memory.c:1555 [inline] unmap_page_range+0xfbc/0x2520 mm/memory.c:1576 unmap_vmas+0x11b/0x230 mm/memory.c:1653 exit_mmap+0x38f/0x5f0 mm/mmap.c:3204 __mmput+0x115/0x3b0 kernel/fork.c:1127 exit_mm+0x567/0x6c0 kernel/exit.c:550 do_exit+0x599/0x20a0 kernel/exit.c:861 do_group_exit+0x12e/0x300 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4df27436c5 Code: Unable to access opcode bytes at RIP 0x7f4df274369b. RSP: 002b:00007ffc15f5d8f8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f4df2844fe8 RCX: 00007f4df27436c5 RDX: 00000000000000e7 RSI: ffffffffffffff88 RDI: 0000000000000001 RBP: 0000000000000001 R08: 00007ffc15f5d888 R09: 0000000000000000 R10: 00007ffc15f5d720 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f4df2843680 R15: 00007f4df2845000 Allocated by task 7721: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb5/0xf0 mm/kasan/common.c:522 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x22c/0x750 net/core/skbuff.c:427 skb_copy+0x139/0x790 net/core/skbuff.c:1595 mac80211_hwsim_tx_frame_no_nl+0xcc7/0x15d0 drivers/net/wireless/mac80211_hwsim.c:1569 mac80211_hwsim_tx_frame+0x1b5/0x200 drivers/net/wireless/mac80211_hwsim.c:1788 mac80211_hwsim_beacon_tx+0x4f3/0x920 drivers/net/wireless/mac80211_hwsim.c:1842 __iterate_interfaces+0x243/0x500 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0xb3/0x140 net/mac80211/util.c:829 mac80211_hwsim_beacon+0x9b/0x180 drivers/net/wireless/mac80211_hwsim.c:1865 __run_hrtimer kernel/time/hrtimer.c:1690 [inline] __hrtimer_run_queues+0x53d/0xc40 kernel/time/hrtimer.c:1754 hrtimer_run_softirq+0x176/0x240 kernel/time/hrtimer.c:1771 handle_softirqs+0x328/0x820 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 Freed by task 4254: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xef/0x2a0 mm/slub.c:4559 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x6fe/0x850 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] kfree_skb_reason+0xaf/0x110 net/core/skbuff.c:776 kfree_skb include/linux/skbuff.h:1118 [inline] ieee80211_iface_work+0x798/0xc60 net/mac80211/iface.c:1515 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff88805fe70400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff88805fe70400, ffff88805fe70600) The buggy address belongs to the page: page:ffffea00017f9c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5fe70 head:ffffea00017f9c00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888016841c80 raw: 0000000000000000 0000000000100010 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 4176, ts 62068637642, free_ts 62067029670 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] __kmalloc_node_track_caller+0x1fc/0x3a0 mm/slub.c:4958 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x22c/0x750 net/core/skbuff.c:427 alloc_skb include/linux/skbuff.h:1162 [inline] nlmsg_new include/net/netlink.h:953 [inline] netlink_ack+0x3a6/0xb60 net/netlink/af_netlink.c:2424 netlink_rcv_skb+0x265/0x430 net/netlink/af_netlink.c:2495 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x77c/0x920 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2071 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 stack_depot_save+0x418/0x440 lib/stackdepot.c:335 kasan_save_stack mm/kasan/common.c:40 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0xb3/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] kmem_cache_alloc_node+0x12d/0x2d0 mm/slub.c:3256 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_rt_notify+0xdd/0x290 net/ipv6/route.c:6181 fib6_add_rt2node net/ipv6/ip6_fib.c:1255 [inline] fib6_add+0x1d3b/0x3d30 net/ipv6/ip6_fib.c:1484 __ip6_ins_rt net/ipv6/route.c:1305 [inline] ip6_ins_rt+0xc5/0x110 net/ipv6/route.c:1315 __ipv6_ifa_notify+0x4be/0xda0 net/ipv6/addrconf.c:6191 ipv6_ifa_notify net/ipv6/addrconf.c:6230 [inline] add_addr+0x1aa/0x2c0 net/ipv6/addrconf.c:3137 add_v4_addrs+0x6f9/0xbf0 net/ipv6/addrconf.c:3193 addrconf_sit_config net/ipv6/addrconf.c:3442 [inline] addrconf_init_auto_addrs+0x385/0xb20 net/ipv6/addrconf.c:3485 addrconf_notify+0xa6b/0xf00 net/ipv6/addrconf.c:3668 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 Memory state around the buggy address: ffff88805fe70300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805fe70380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805fe70400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805fe70480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805fe70500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 84 00 test %al,(%rax) 2: 00 00 add %al,(%rax) 4: 00 00 add %al,(%rax) 6: 53 push %rbx 7: 48 89 fb mov %rdi,%rbx a: e8 17 00 00 00 call 0x26 f: 48 8b 3d 00 ec f0 0b mov 0xbf0ec00(%rip),%rdi # 0xbf0ec16 16: 48 89 de mov %rbx,%rsi 19: 5b pop %rbx 1a: e9 47 ae 44 00 jmp 0x44ae66 1f: 00 00 add %al,(%rax) 21: cc int3 22: cc int3 23: 00 00 add %al,(%rax) 25: cc int3 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 0d 94 ad 8a mov %gs:0x7e8aad94(%rip),%rcx # 0x7e8aadc6 <-- trapping instruction 31: 7e 32: 65 8b 15 95 ad 8a 7e mov %gs:0x7e8aad95(%rip),%edx # 0x7e8aadce 39: 81 e2 00 01 ff 00 and $0xff0100,%edx 3f: 74 .byte 0x74