================================================================== BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0 net/rose/rose_timer.c:183 Read of size 2 at addr ffff88805786182a by task syz-executor/17426 CPU: 0 UID: 0 PID: 17426 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 rose_timer_expiry+0x471/0x4b0 net/rose/rose_timer.c:183 call_timer_fn+0x17e/0x5f0 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers kernel/time/timer.c:2372 [inline] __run_timer_base+0x61a/0x860 kernel/time/timer.c:2384 run_timer_base kernel/time/timer.c:2393 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403 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:1050 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:get_current arch/x86/include/asm/current.h:25 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:216 Code: 8b 3d c4 59 fe 0b 48 89 de 5b e9 f3 9a 58 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 08 60 a0 92 65 8b 15 e8 b4 e0 10 81 e2 00 01 ff 00 RSP: 0018:ffffc900161c7a28 EFLAGS: 00000286 RAX: ffffffff82384346 RBX: ffff88807cda44d0 RCX: ffff88807cda3c00 RDX: 0000000000000000 RSI: ffffc900161c7b80 RDI: ffff8880267db320 RBP: ffffc900161c7d08 R08: ffff88803366aaa0 R09: ffff888056d585e0 R10: ffff88803366aaa0 R11: ffff888056d585e0 R12: ffffc900161c7b80 R13: dffffc0000000000 R14: ffff8880267db320 R15: dffffc0000000000 link_path_walk+0x26/0xea0 fs/namei.c:2420 path_parentat fs/namei.c:2701 [inline] __filename_parentat+0x246/0x670 fs/namei.c:2725 filename_parentat fs/namei.c:2743 [inline] filename_create+0xd2/0x3c0 fs/namei.c:4120 do_symlinkat+0xbc/0x3f0 fs/namei.c:4749 __do_sys_symlinkat fs/namei.c:4772 [inline] __se_sys_symlinkat fs/namei.c:4769 [inline] __x64_sys_symlinkat+0x95/0xb0 fs/namei.c:4769 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f50ee58e167 Code: 73 01 c3 48 c7 c1 a8 ff ff ff 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 0a 01 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:00007fff57493708 EFLAGS: 00000202 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f50ee58e167 RDX: 00007f50ee6136da RSI: 00000000ffffff9c RDI: 00007fff574937a0 RBP: 00007fff5749374c R08: 0000000000000013 R09: 00007fff57493457 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000037 R13: 00000000000927c0 R14: 0000000000053b72 R15: 00007fff574937a0 Allocated by task 16607: 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:388 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kmalloc_noprof+0x27a/0x4f0 mm/slub.c:4377 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] hash_ip4_resize+0xa88/0x1990 net/netfilter/ipset/ip_set_hash_gen.h:725 call_ad+0x44e/0xb00 net/netfilter/ipset/ip_set_core.c:1757 ip_set_ad+0x791/0x930 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0xb4a/0x1130 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x205/0x470 net/netlink/af_netlink.c:2552 nfnetlink_rcv+0x26a/0x2520 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmsg net/socket.c:2700 [inline] __do_sys_sendmsg net/socket.c:2705 [inline] __se_sys_sendmsg net/socket.c:2703 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2703 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 16607: 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:243 [inline] __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x18e/0x440 mm/slub.c:4879 hash_ip4_ahash_destroy net/netfilter/ipset/ip_set_hash_gen.h:441 [inline] hash_ip4_resize+0x1757/0x1990 net/netfilter/ipset/ip_set_hash_gen.h:781 call_ad+0x44e/0xb00 net/netfilter/ipset/ip_set_core.c:1757 ip_set_ad+0x791/0x930 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0xb4a/0x1130 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x205/0x470 net/netlink/af_netlink.c:2552 nfnetlink_rcv+0x26a/0x2520 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmsg net/socket.c:2700 [inline] __do_sys_sendmsg net/socket.c:2705 [inline] __se_sys_sendmsg net/socket.c:2703 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2703 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888057861800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of freed 512-byte region [ffff888057861800, ffff888057861a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888057861800 pfn:0x57860 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801a441c80 ffffea0000ebce10 ffffea0000a47310 raw: ffff888057861800 000000000010000a 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801a441c80 ffffea0000ebce10 ffffea0000a47310 head: ffff888057861800 000000000010000a 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00015e1801 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5936, tgid 5936 (kworker/1:6), ts 62780444109, free_ts 18130296642 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0xbeb/0x1410 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __do_kmalloc_node mm/slub.c:4364 [inline] __kmalloc_noprof+0x305/0x4f0 mm/slub.c:4377 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:671 __br_mdb_notify+0x73/0x970 net/bridge/br_mdb.c:532 __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:3047 [inline] br_multicast_ipv6_rcv net/bridge/br_multicast.c:3985 [inline] br_multicast_rcv+0x3a5f/0x74b0 net/bridge/br_multicast.c:4043 br_handle_frame_finish+0x78a/0x19b0 net/bridge/br_input.c:156 br_nf_hook_thresh+0x3c3/0x4a0 net/bridge/br_netfilter_hooks.c:-1 br_nf_pre_routing_finish_ipv6+0x999/0xd60 net/bridge/br_netfilter_ipv6.c:-1 NF_HOOK include/linux/netfilter.h:318 [inline] br_nf_pre_routing_ipv6+0x37e/0x6b0 net/bridge/br_netfilter_ipv6.c:184 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 __free_pages mm/page_alloc.c:5260 [inline] free_contig_range+0x1bd/0x4a0 mm/page_alloc.c:7091 destroy_args+0x64/0x4a0 mm/debug_vm_pgtable.c:958 debug_vm_pgtable+0x39f/0x3b0 mm/debug_vm_pgtable.c:1340 do_one_initcall+0x233/0x820 init/main.c:1269 do_initcall_level+0x104/0x190 init/main.c:1331 do_initcalls+0x59/0xa0 init/main.c:1347 kernel_init_freeable+0x334/0x4b0 init/main.c:1579 kernel_init+0x1d/0x1d0 init/main.c:1469 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888057861700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888057861780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888057861800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888057861880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888057861900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 8b 3d c4 59 fe 0b mov 0xbfe59c4(%rip),%edi # 0xbfe59ca 6: 48 89 de mov %rbx,%rsi 9: 5b pop %rbx a: e9 f3 9a 58 00 jmp 0x589b02 f: cc int3 10: cc int3 11: cc int3 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: f3 0f 1e fa endbr64 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 0c 25 08 60 mov %gs:0xffffffff92a06008,%rcx <-- trapping instruction 31: a0 92 33: 65 8b 15 e8 b4 e0 10 mov %gs:0x10e0b4e8(%rip),%edx # 0x10e0b522 3a: 81 e2 00 01 ff 00 and $0xff0100,%edx