==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0 net/rose/rose_timer.c:183
Read of size 2 at addr ffff8880296fc02a by task syz-executor/12569
CPU: 1 UID: 0 PID: 12569 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00178-g9540984da649 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0xb4/0x290 mm/kasan/report.c:521
kasan_report+0x118/0x150 mm/kasan/report.c:634
rose_timer_expiry+0x471/0x4b0 net/rose/rose_timer.c:183
call_timer_fn+0x17b/0x5f0 kernel/time/timer.c:1789
expire_timers kernel/time/timer.c:1840 [inline]
__run_timers kernel/time/timer.c:2414 [inline]
__run_timer_base+0x61a/0x860 kernel/time/timer.c:2426
run_timer_base kernel/time/timer.c:2435 [inline]
run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2445
handle_softirqs+0x283/0x870 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:filter_irq_stacks+0x32/0xa0 kernel/stacktrace.c:397
Code: 41 55 41 54 53 85 f6 74 70 49 89 fe 41 89 f4 31 db 49 bd 00 00 00 00 00 fc ff df 49 89 ff 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 <74> 08 4c 89 ff e8 84 fd 74 00 49 8b 04 de 48 3d 30 02 00 81 0f 93
RSP: 0018:ffffc90003def720 EFLAGS: 00000246
RAX: 1ffff920007bdf02 RBX: 000000000000000a RCX: 0000000000000001
RDX: 0000000000000000 RSI: 000000000000000c RDI: ffffc90003def7c0
RBP: ffffc90003def9e8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff81ce8486 R12: 000000000000000c
R13: dffffc0000000000 R14: ffffc90003def7c0 R15: ffffc90003def810
stack_depot_save_flags+0x40/0x910 lib/stackdepot.c:610
kasan_save_stack+0x4d/0x60 mm/kasan/common.c:48
kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:548
slab_free_hook mm/slub.c:2359 [inline]
slab_free mm/slub.c:4656 [inline]
kmem_cache_free+0x2ee/0x3f0 mm/slub.c:4758
exit_mmap+0x593/0xba0 mm/mmap.c:1309
__mmput+0x118/0x420 kernel/fork.c:1379
exit_mm+0x1da/0x2c0 kernel/exit.c:589
do_exit+0x859/0x2550 kernel/exit.c:940
do_group_exit+0x21c/0x2d0 kernel/exit.c:1102
__do_sys_exit_group kernel/exit.c:1113 [inline]
__se_sys_exit_group kernel/exit.c:1111 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1111
x64_sys_call+0x21ba/0x21c0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f14bb78e969
Code: Unable to access opcode bytes at 0x7f14bb78e93f.
RSP: 002b:00007fff1641b2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f14bb78e969
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043
RBP: 00007f14bb7ee8f0 R08: 00007fff16419097 R09: 0000000000000003
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000003 R14: 00000000ffffffff R15: 00007fff1641b4b0
Allocated by task 9:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
poison_kmalloc_redzone mm/kasan/common.c:377 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:394
kasan_kmalloc include/linux/kasan.h:260 [inline]
__do_kmalloc_node mm/slub.c:4341 [inline]
__kmalloc_noprof+0x27a/0x4f0 mm/slub.c:4353
kmalloc_noprof include/linux/slab.h:909 [inline]
switchdev_deferred_enqueue+0x2d/0x240 net/switchdev/switchdev.c:117
br_switchdev_mdb_notify+0x369/0x410 net/bridge/br_switchdev.c:663
br_mdb_notify+0x68/0x970 net/bridge/br_mdb.c:529
__br_multicast_add_group+0x6b5/0xa30 net/bridge/br_multicast.c:1547
br_multicast_add_group net/bridge/br_multicast.c:1569 [inline]
br_ip6_multicast_add_group net/bridge/br_multicast.c:1621 [inline]
br_ip6_multicast_mld2_report net/bridge/br_multicast.c:2976 [inline]
br_multicast_ipv6_rcv net/bridge/br_multicast.c:3914 [inline]
br_multicast_rcv+0x3a5f/0x74b0 net/bridge/br_multicast.c:3972
br_handle_frame_finish+0x78a/0x1950 net/bridge/br_input.c:156
br_nf_hook_thresh+0x3bf/0x490 net/bridge/br_netfilter_hooks.c:-1
br_nf_pre_routing_finish_ipv6+0x948/0xd00 net/bridge/br_netfilter_ipv6.c:-1
NF_HOOK include/linux/netfilter.h:314 [inline]
br_nf_pre_routing_ipv6+0x37e/0x6b0 net/bridge/br_netfilter_ipv6.c:184
nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
nf_hook_bridge_pre net/bridge/br_input.c:282 [inline]
br_handle_frame+0x97f/0x14c0 net/bridge/br_input.c:433
__netif_receive_skb_core+0x10de/0x4180 net/core/dev.c:5773
__netif_receive_skb_one_core net/core/dev.c:5885 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6000
process_backlog+0x60e/0x14f0 net/core/dev.c:6352
__napi_poll+0xc4/0x480 net/core/dev.c:7324
napi_poll net/core/dev.c:7388 [inline]
net_rx_action+0x6ea/0xdf0 net/core/dev.c:7510
handle_softirqs+0x283/0x870 kernel/softirq.c:579
do_softirq+0xec/0x180 kernel/softirq.c:480
__local_bh_enable_ip+0x17d/0x1c0 kernel/softirq.c:407
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:910 [inline]
__dev_queue_xmit+0x1cd7/0x3a70 net/core/dev.c:4656
dev_queue_xmit include/linux/netdevice.h:3350 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip6_finish_output2+0x11bc/0x16a0 net/ipv6/ip6_output.c:141
__ip6_finish_output net/ipv6/ip6_output.c:-1 [inline]
ip6_finish_output+0x234/0x7d0 net/ipv6/ip6_output.c:226
NF_HOOK+0x9e/0x380 include/linux/netfilter.h:314
mld_sendpack+0x800/0xd80 net/ipv6/mcast.c:1868
mld_send_cr net/ipv6/mcast.c:2169 [inline]
mld_ifc_work+0x835/0xde0 net/ipv6/mcast.c:2702
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Freed by task 9:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576
poison_slab_object mm/kasan/common.c:247 [inline]
__kasan_slab_free+0x62/0x70 mm/kasan/common.c:264
kasan_slab_free include/linux/kasan.h:233 [inline]
slab_free_hook mm/slub.c:2398 [inline]
slab_free mm/slub.c:4656 [inline]
kfree+0x193/0x440 mm/slub.c:4855
switchdev_deferred_process+0x203/0x2b0 net/switchdev/switchdev.c:97
switchdev_deferred_process_work+0x13/0x20 net/switchdev/switchdev.c:105
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff8880296fc000
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
freed 512-byte region [ffff8880296fc000, ffff8880296fc200)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x296fc
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801a041c80 ffffea0001f50400 dead000000000002
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88801a041c80 ffffea0001f50400 dead000000000002
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000a5bf01 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5942, tgid 5940 (syz.1.12), ts 90422157064, free_ts 89987414871
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1d8/0x230 mm/page_alloc.c:1718
prep_new_page mm/page_alloc.c:1726 [inline]
get_page_from_freelist+0x21ce/0x22b0 mm/page_alloc.c:3688
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4970
alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2301
alloc_slab_page mm/slub.c:2468 [inline]
allocate_slab+0x8a/0x3b0 mm/slub.c:2632
new_slab mm/slub.c:2686 [inline]
___slab_alloc+0xbfc/0x1480 mm/slub.c:3872
__slab_alloc mm/slub.c:3962 [inline]
__slab_alloc_node mm/slub.c:4037 [inline]
slab_alloc_node mm/slub.c:4198 [inline]
__kmalloc_cache_noprof+0x296/0x3d0 mm/slub.c:4367
kmalloc_noprof include/linux/slab.h:905 [inline]
kzalloc_noprof include/linux/slab.h:1039 [inline]
mca_alloc net/ipv6/mcast.c:884 [inline]
__ipv6_dev_mc_inc+0x420/0xaf0 net/ipv6/mcast.c:975
ipv6_add_dev+0xe63/0x1370 net/ipv6/addrconf.c:473
addrconf_notify+0x794/0x1010 net/ipv6/addrconf.c:3654
notifier_call_chain+0x1b3/0x3e0 kernel/notifier.c:85
call_netdevice_notifiers_extack net/core/dev.c:2214 [inline]
call_netdevice_notifiers net/core/dev.c:2228 [inline]
register_netdevice+0x1608/0x1af0 net/core/dev.c:11035
veth_newlink+0x42f/0xa50 drivers/net/veth.c:1818
rtnl_newlink_create+0x305/0xaf0 net/core/rtnetlink.c:3833
__rtnl_newlink net/core/rtnetlink.c:3950 [inline]
rtnl_newlink+0x16d6/0x1c70 net/core/rtnetlink.c:4065
rtnetlink_rcv_msg+0x7cc/0xb70 net/core/rtnetlink.c:6955
page last free pid 5188 tgid 5188 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1262 [inline]
__free_frozen_pages+0xb0e/0xcd0 mm/page_alloc.c:2725
__slab_free+0x326/0x400 mm/slub.c:4567
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4161 [inline]
slab_alloc_node mm/slub.c:4210 [inline]
__do_kmalloc_node mm/slub.c:4340 [inline]
__kmalloc_node_track_caller_noprof+0x216/0x4e0 mm/slub.c:4360
kmalloc_reserve+0x136/0x290 net/core/skbuff.c:599
__alloc_skb+0x142/0x2d0 net/core/skbuff.c:668
alloc_skb include/linux/skbuff.h:1340 [inline]
alloc_skb_with_frags+0xca/0x890 net/core/skbuff.c:6639
sock_alloc_send_pskb+0x857/0x990 net/core/sock.c:2954
unix_dgram_sendmsg+0x5c2/0x17c0 net/unix/af_unix.c:2007
sock_sendmsg_nosec net/socket.c:712 [inline]
__sock_sendmsg+0x219/0x270 net/socket.c:727
__sys_sendto+0x3bd/0x520 net/socket.c:2180
__do_sys_sendto net/socket.c:2187 [inline]
__se_sys_sendto net/socket.c:2183 [inline]
__x64_sys_sendto+0xde/0x100 net/socket.c:2183
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff8880296fbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8880296fbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8880296fc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880296fc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880296fc100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 41 55 push %r13
2: 41 54 push %r12
4: 53 push %rbx
5: 85 f6 test %esi,%esi
7: 74 70 je 0x79
9: 49 89 fe mov %rdi,%r14
c: 41 89 f4 mov %esi,%r12d
f: 31 db xor %ebx,%ebx
11: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13
18: fc ff df
1b: 49 89 ff mov %rdi,%r15
1e: 4c 89 f8 mov %r15,%rax
21: 48 c1 e8 03 shr $0x3,%rax
25: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
* 2a: 74 08 je 0x34 <-- trapping instruction
2c: 4c 89 ff mov %r15,%rdi
2f: e8 84 fd 74 00 call 0x74fdb8
34: 49 8b 04 de mov (%r14,%rbx,8),%rax
38: 48 3d 30 02 00 81 cmp $0xffffffff81000230,%rax
3e: 0f .byte 0xf
3f: 93 xchg %eax,%ebx