================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x40c/0x470 net/rose/rose_timer.c:183 Read of size 2 at addr ffff0000e936e82a by task ksoftirqd/0/14 CPU: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load2_noabort+0x44/0x50 mm/kasan/report_generic.c:307 rose_timer_expiry+0x40c/0x470 net/rose/rose_timer.c:183 call_timer_fn+0x19c/0x858 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x46c/0x6c4 kernel/time/timer.c:1767 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1780 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 run_ksoftirqd+0x7c/0x2a0 kernel/softirq.c:943 smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 Allocated by task 9755: 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+0xb0/0xf0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc_node_track_caller+0x234/0x3bc mm/slub.c:4963 kmalloc_reserve+0xe4/0x26c net/core/skbuff.c:356 __alloc_skb+0x23c/0x67c net/core/skbuff.c:427 __netdev_alloc_skb+0xb4/0x3b8 net/core/skbuff.c:494 netdev_alloc_skb include/linux/skbuff.h:3001 [inline] dev_alloc_skb include/linux/skbuff.h:3014 [inline] __ieee80211_beacon_get+0x934/0x19dc net/mac80211/tx.c:5080 ieee80211_beacon_get_tim+0x5c/0x790 net/mac80211/tx.c:5194 ieee80211_beacon_get include/net/mac80211.h:4981 [inline] mac80211_hwsim_beacon_tx+0x10c/0x7ac drivers/net/wireless/mac80211_hwsim.c:1812 __iterate_interfaces+0x204/0x484 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0xd4/0x180 net/mac80211/util.c:829 mac80211_hwsim_beacon+0x90/0x174 drivers/net/wireless/mac80211_hwsim.c:1865 __run_hrtimer kernel/time/hrtimer.c:1690 [inline] __hrtimer_run_queues+0x428/0xb6c kernel/time/hrtimer.c:1754 hrtimer_run_softirq+0x160/0x400 kernel/time/hrtimer.c:1771 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:457 [inline] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 irq_exit+0x14/0x88 kernel/softirq.c:683 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765 The buggy address belongs to the object at ffff0000e936e800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff0000e936e800, ffff0000e936ea00) The buggy address belongs to the page: page:0000000043b929c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000e936c800 pfn:0x12936c head:0000000043b929c0 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003a53708 fffffc000323d508 ffff0000c0002600 raw: ffff0000e936c800 0000000000100005 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e936e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000e936e780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000e936e800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000e936e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000e936e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================