==================================================================
BUG: KASAN: use-after-free in rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183
Read of size 2 at addr ffff88806173602a by task syz.1.1498/9456
CPU: 0 PID: 9456 Comm: syz.1.1498 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:console_unlock+0xd90/0x1200 kernel/printk/printk.c:2749
Code: 00 48 83 7c 24 28 00 75 19 e8 ec 9e 18 00 eb 18 e8 e5 9e 18 00 e8 80 49 42 08 48 83 7c 24 28 00 74 e7 e8 d3 9e 18 00 fb 31 ff <89> de e8 29 a2 18 00 85 db 0f 94 c0 22 44 24 17 3c 01 75 1f e8 b7
RSP: 0018:ffffc9000314f520 EFLAGS: 00000246
RAX: ffffffff815f234d RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc900056c9000 RSI: 0000000000036035 RDI: 0000000000000000
RBP: ffffc9000314f790 R08: dffffc0000000000 R09: fffffbfff1ff3619
R10: fffffbfff1ff3619 R11: 1ffffffff1ff3618 R12: 1ffffffff194c725
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffffffff194c71e
vprintk_emit+0xc0/0x150 kernel/printk/printk.c:2274
_printk+0xcc/0x110 kernel/printk/printk.c:2299
__xfs_printk fs/xfs/xfs_message.c:24 [inline]
xfs_notice+0x188/0x280 fs/xfs/xfs_message.c:56
xfs_qm_quotacheck+0x5b2/0x640 fs/xfs/xfs_qm.c:1399
xfs_qm_mount_quotas+0x325/0x5f0 fs/xfs/xfs_qm.c:1448
xfs_mountfs+0x1449/0x1b10 fs/xfs/xfs_mount.c:904
xfs_fs_fill_super+0x11a4/0x13f0 fs/xfs/xfs_super.c:1675
get_tree_bdev+0x3f1/0x610 fs/super.c:1325
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x24a/0xa40 fs/namespace.c:3010
do_mount fs/namespace.c:3353 [inline]
__do_sys_mount fs/namespace.c:3561 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3538
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:0x7f6b869240ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6b84789e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6b84789ef0 RCX: 00007f6b869240ca
RDX: 0000200000009600 RSI: 0000200000009640 RDI: 00007f6b84789eb0
RBP: 0000200000009600 R08: 00007f6b84789ef0 R09: 0000000000200800
R10: 0000000000200800 R11: 0000000000000246 R12: 0000200000009640
R13: 00007f6b84789eb0 R14: 0000000000009606 R15: 0000200000000240
Allocated by task 9062:
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
The buggy address belongs to the object at ffff888061736000
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
512-byte region [ffff888061736000, ffff888061736200)
The buggy address belongs to the page:
page:ffffea000185cd00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888061737800 pfn:0x61734
head:ffffea000185cd00 order:2 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea0001831c08 ffffea0001843708 ffff888016841c80
raw: ffff888061737800 0000000000100008 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 4169, ts 72734068331, free_ts 24098660081
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]
alloc_uevent_skb+0x7d/0x230 lib/kobject_uevent.c:290
uevent_net_broadcast_tagged lib/kobject_uevent.c:351 [inline]
kobject_uevent_net_broadcast+0x17e/0x530 lib/kobject_uevent.c:412
kobject_uevent_env+0x556/0x890 lib/kobject_uevent.c:608
netdev_queue_add_kobject net/core/net-sysfs.c:1677 [inline]
netdev_queue_update_kobjects+0x1d7/0x3e0 net/core/net-sysfs.c:1711
register_queue_kobjects net/core/net-sysfs.c:1772 [inline]
netdev_register_kobject+0x265/0x310 net/core/net-sysfs.c:2018
register_netdevice+0x1019/0x16b0 net/core/dev.c:10397
veth_newlink+0x8ed/0xda0 drivers/net/veth.c:1714
__rtnl_newlink net/core/rtnetlink.c:3524 [inline]
rtnl_newlink+0x114c/0x17d0 net/core/rtnetlink.c:3572
rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650
netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2489
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
free_contig_range+0x96/0xf0 mm/page_alloc.c:9393
destroy_args+0xef/0x8b0 mm/debug_vm_pgtable.c:1018
debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1331
do_one_initcall+0x1ee/0x680 init/main.c:1302
do_initcall_level+0x137/0x1f0 init/main.c:1375
do_initcalls+0x4b/0x90 init/main.c:1391
kernel_init_freeable+0x3ce/0x560 init/main.c:1615
kernel_init+0x19/0x1b0 init/main.c:1506
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Memory state around the buggy address:
ffff888061735f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888061735f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888061736000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888061736080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888061736100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 00 48 83 add %cl,-0x7d(%rax)
3: 7c 24 jl 0x29
5: 28 00 sub %al,(%rax)
7: 75 19 jne 0x22
9: e8 ec 9e 18 00 call 0x189efa
e: eb 18 jmp 0x28
10: e8 e5 9e 18 00 call 0x189efa
15: e8 80 49 42 08 call 0x842499a
1a: 48 83 7c 24 28 00 cmpq $0x0,0x28(%rsp)
20: 74 e7 je 0x9
22: e8 d3 9e 18 00 call 0x189efa
27: fb sti
28: 31 ff xor %edi,%edi
* 2a: 89 de mov %ebx,%esi <-- trapping instruction
2c: e8 29 a2 18 00 call 0x18a25a
31: 85 db test %ebx,%ebx
33: 0f 94 c0 sete %al
36: 22 44 24 17 and 0x17(%rsp),%al
3a: 3c 01 cmp $0x1,%al
3c: 75 1f jne 0x5d
3e: e8 .byte 0xe8
3f: b7 .byte 0xb7