================================================================== BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x46a/0x4b0 net/rose/rose_timer.c:183 Read of size 2 at addr ffff88802fe2142a by task syz-executor/9643 CPU: 0 PID: 9643 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xac/0x220 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 rose_timer_expiry+0x46a/0x4b0 net/rose/rose_timer.c:183 call_timer_fn+0x16e/0x530 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x52d/0x7d0 kernel/time/timer.c:2022 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2035 handle_softirqs+0x280/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xc7/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:preempt_schedule_irq+0xb0/0x140 kernel/sched/core.c:7009 Code: 44 24 20 f6 44 24 21 02 74 0b 0f 0b 48 f7 03 08 00 00 00 74 63 bf 01 00 00 00 e8 eb 29 e5 f6 e8 e6 b2 15 f7 fb bf 01 00 00 00 db b5 ff ff 48 c7 44 24 40 00 00 00 00 9c 8f 44 24 40 8b 44 24 RSP: 0018:ffffc9000497f0c0 EFLAGS: 00000282 RAX: 85ed689edb997f00 RBX: 0000000000000000 RCX: 85ed689edb997f00 RDX: dffffc0000000000 RSI: ffffffff8aaaba20 RDI: 0000000000000001 RBP: ffffc9000497f160 R08: ffffffff90da550f R09: 1ffffffff21b4aa1 R10: dffffc0000000000 R11: fffffbfff21b4aa2 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff9200092fe18 irqentry_exit+0x67/0x70 kernel/entry/common.c:438 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:692 RIP: 0010:lockdep_unregister_key+0x4e6/0x580 kernel/locking/lockdep.c:6490 Code: 54 d5 90 48 c7 c6 10 ab 67 81 e8 45 09 08 00 e8 10 1c 08 00 e9 67 fc ff ff e8 a6 4e 06 09 41 f7 c4 00 02 00 00 74 d1 fb 84 db <75> d0 eb e1 0f 0b 31 db eb a1 0f 0b e9 fd fe ff ff e8 84 4d 06 09 RSP: 0018:ffffc9000497f220 EFLAGS: 00000246 RAX: 85ed689edb997f00 RBX: 0000000000000000 RCX: 85ed689edb997f00 RDX: 0000000000000001 RSI: ffffffff8aaac700 RDI: ffffffff8afc7040 RBP: ffffc9000497f300 R08: ffffffff90d56c3f R09: 1ffffffff21aad87 R10: dffffc0000000000 R11: fffffbfff21aad88 R12: 0000000000000a03 R13: ffffffff9075a920 R14: ffff888059c16299 R15: 1ffff9200092fe48 __qdisc_destroy+0x128/0x3c0 net/sched/sch_generic.c:1078 qdisc_put net/sched/sch_generic.c:1104 [inline] dev_shutdown+0x34f/0x440 net/sched/sch_generic.c:1492 unregister_netdevice_many_notify+0x8d2/0x1810 net/core/dev.c:11076 unregister_netdevice_many net/core/dev.c:11142 [inline] unregister_netdevice_queue+0x324/0x360 net/core/dev.c:11022 unregister_netdevice include/linux/netdevice.h:3137 [inline] lapbeth_free_device drivers/net/wan/lapbether.c:437 [inline] lapbeth_device_event+0x661/0xa10 drivers/net/wan/lapbether.c:472 notifier_call_chain+0x197/0x390 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] unregister_netdevice_many_notify+0xf36/0x1810 net/core/dev.c:11086 unregister_netdevice_many net/core/dev.c:11142 [inline] unregister_netdevice_queue+0x324/0x360 net/core/dev.c:11022 unregister_netdevice include/linux/netdevice.h:3137 [inline] nsim_destroy+0x4d/0x180 drivers/net/netdevsim/netdev.c:418 __nsim_dev_port_del+0x14d/0x1b0 drivers/net/netdevsim/dev.c:1428 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline] nsim_dev_reload_destroy+0x283/0x480 drivers/net/netdevsim/dev.c:1661 nsim_drv_remove+0x58/0x160 drivers/net/netdevsim/dev.c:1676 device_remove drivers/base/dd.c:567 [inline] __device_release_driver drivers/base/dd.c:1272 [inline] device_release_driver_internal+0x468/0x7a0 drivers/base/dd.c:1295 bus_remove_device+0x342/0x400 drivers/base/bus.c:576 device_del+0x50b/0x900 drivers/base/core.c:3872 device_unregister+0x20/0xc0 drivers/base/core.c:3913 nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline] del_device_store+0x2ab/0x360 drivers/net/netdevsim/bus.c:219 kernfs_fop_write_iter+0x37d/0x4d0 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x43b/0x940 fs/read_write.c:584 ksys_write+0x147/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f5e0778d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007ffe66254900 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f5e0778d69f RDX: 0000000000000001 RSI: 00007ffe66254950 RDI: 0000000000000005 RBP: 00007f5e078130c1 R08: 0000000000000000 R09: 00007ffe66254757 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffe66254950 R14: 00007f5e084f4620 R15: 0000000000000003 Allocated by task 8828: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] device_private_init drivers/base/core.c:3528 [inline] device_add+0xbe/0xc20 drivers/base/core.c:3579 netdev_register_kobject+0x17a/0x310 net/core/net-sysfs.c:2042 register_netdevice+0x128f/0x1ae0 net/core/dev.c:10280 veth_newlink+0x598/0xc30 drivers/net/veth.c:1871 rtnl_newlink_create net/core/rtnetlink.c:3517 [inline] __rtnl_newlink net/core/rtnetlink.c:3737 [inline] rtnl_newlink+0x14d0/0x2020 net/core/rtnetlink.c:3750 rtnetlink_rcv_msg+0x7c7/0xf10 net/core/rtnetlink.c:6475 netlink_rcv_skb+0x216/0x480 net/netlink/af_netlink.c:2545 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c1/0xbe0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x46a/0x620 net/socket.c:2201 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2209 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 1112: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2e/0x50 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1806 [inline] slab_free_freelist_hook+0x130/0x1b0 mm/slub.c:1832 slab_free mm/slub.c:3816 [inline] __kmem_cache_free+0xba/0x1f0 mm/slub.c:3829 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x221/0x470 lib/kobject.c:737 netdev_run_todo+0xc93/0xd90 net/core/dev.c:10601 default_device_exit_batch+0x9d0/0xa60 net/core/dev.c:11621 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x77f/0xb90 net/core/net_namespace.c:652 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xee/0x780 kernel/rcu/tree.c:3452 mld_clear_delrec+0x193/0x5d0 net/ipv6/mcast.c:824 ipv6_mc_destroy_dev+0x45/0x590 net/ipv6/mcast.c:2794 addrconf_ifdown+0x139f/0x1880 net/ipv6/addrconf.c:3968 addrconf_notify+0x6c6/0x1010 net/ipv6/addrconf.c:-1 notifier_call_chain+0x197/0x390 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] unregister_netdevice_many_notify+0xf36/0x1810 net/core/dev.c:11086 ip_tunnel_delete_nets+0x31c/0x360 net/ipv4/ip_tunnel.c:1171 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x77f/0xb90 net/core/net_namespace.c:652 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff88802fe21400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of freed 512-byte region [ffff88802fe21400, ffff88802fe21600) The buggy address belongs to the physical page: page:ffffea0000bf8800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2fe20 head:ffffea0000bf8800 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017841c80 ffffea00007bd800 dead000000000002 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 4498, tgid 4498 (kworker/u4:3), ts 25776220544, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 alloc_slab_page+0x5d/0x170 mm/slub.c:1876 allocate_slab mm/slub.c:2023 [inline] new_slab+0x87/0x2e0 mm/slub.c:2076 ___slab_alloc+0xc6d/0x12f0 mm/slub.c:3230 __slab_alloc mm/slub.c:3329 [inline] __slab_alloc_node mm/slub.c:3382 [inline] slab_alloc_node mm/slub.c:3475 [inline] __kmem_cache_alloc_node+0x1a2/0x260 mm/slub.c:3524 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] alloc_bprm+0x56/0x9c0 fs/exec.c:1538 kernel_execve+0x98/0x9c0 fs/exec.c:2023 call_usermodehelper_exec_async+0x20b/0x350 kernel/umh.c:110 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 page_owner free stack trace missing Memory state around the buggy address: ffff88802fe21300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802fe21380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802fe21400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802fe21480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802fe21500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 44 24 20 rex.R and $0x20,%al 3: f6 44 24 21 02 testb $0x2,0x21(%rsp) 8: 74 0b je 0x15 a: 0f 0b ud2 c: 48 f7 03 08 00 00 00 testq $0x8,(%rbx) 13: 74 63 je 0x78 15: bf 01 00 00 00 mov $0x1,%edi 1a: e8 eb 29 e5 f6 call 0xf6e52a0a 1f: e8 e6 b2 15 f7 call 0xf715b30a 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 db b5 ff ff call 0xffffb60a <-- trapping instruction 2f: 48 c7 44 24 40 00 00 movq $0x0,0x40(%rsp) 36: 00 00 38: 9c pushf 39: 8f 44 24 40 pop 0x40(%rsp) 3d: 8b .byte 0x8b 3e: 44 rex.R 3f: 24 .byte 0x24