================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x40c/0x470 net/rose/rose_timer.c:183 Read of size 2 at addr ffff0000d1c71c2a by task swapper/0/0 CPU: 0 PID: 0 Comm: swapper/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 __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 call_on_irq_stack+0x24/0x30 arch/arm64/kernel/entry.S:855 do_interrupt_handler+0x6c/0x88 arch/arm64/kernel/entry-common.c:267 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 arch_local_irq_enable+0xc/0x18 arch/arm64/include/asm/irqflags.h:35 default_idle_call+0xcc/0x418 kernel/sched/idle.c:112 cpuidle_idle_call kernel/sched/idle.c:194 [inline] do_idle+0x1c8/0x480 kernel/sched/idle.c:306 cpu_startup_entry+0x24/0x28 kernel/sched/idle.c:403 rest_init+0x360/0x390 init/main.c:741 arch_call_rest_init+0x14/0x20 init/main.c:893 start_kernel+0x49c/0x54c init/main.c:1140 __primary_switched+0xa8/0xb0 arch/arm64/kernel/head.S:468 Allocated by task 153: 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+0x298/0x44c mm/slub.c:4407 kmalloc include/linux/slab.h:609 [inline] kzalloc include/linux/slab.h:735 [inline] fib6_info_alloc+0x38/0xe0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x3b0/0xf90 net/ipv6/route.c:3769 addrconf_f6i_alloc+0x188/0x330 net/ipv6/route.c:4592 ipv6_add_addr+0x3a8/0xb6c net/ipv6/addrconf.c:1123 addrconf_add_linklocal+0x224/0x5dc net/ipv6/addrconf.c:3239 addrconf_addr_gen+0x3ac/0x4bc net/ipv6/addrconf.c:3370 addrconf_init_auto_addrs+0x59c/0x9a4 net/ipv6/addrconf.c:-1 addrconf_notify+0x884/0xc6c net/ipv6/addrconf.c:3668 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2049 [inline] netdev_state_change+0x150/0x1fc net/core/dev.c:1440 linkwatch_do_dev+0x2b0/0x3c8 net/core/link_watch.c:167 __linkwatch_run_queue+0x3d4/0x674 net/core/link_watch.c:213 linkwatch_event+0x58/0x68 net/core/link_watch.c:252 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 Freed by task 4386: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1e8 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x170/0x40c mm/slub.c:4559 fib6_info_destroy_rcu+0x190/0x23c net/ipv6/ip6_fib.c:178 rcu_do_batch kernel/rcu/tree.c:2523 [inline] rcu_core+0x7c8/0x1764 kernel/rcu/tree.c:2763 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2776 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 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x110/0x8f0 kernel/rcu/tree.c:3087 fib6_info_release include/net/ip6_fib.h:339 [inline] __ip6_del_rt+0xfc/0x188 net/ipv6/route.c:3892 ip6_del_rt+0xac/0xf4 net/ipv6/route.c:3903 __ipv6_ifa_notify+0x6d8/0xbf4 net/ipv6/addrconf.c:6218 addrconf_ifdown+0xc6c/0x1688 net/ipv6/addrconf.c:3905 addrconf_notify+0x2f4/0xc6c net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2049 [inline] call_netdevice_notifiers_extack net/core/dev.c:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] dev_close_many+0x2cc/0x440 net/core/dev.c:1650 unregister_netdevice_many+0x3d4/0x17d0 net/core/dev.c:11110 default_device_exit_batch+0x444/0x4a4 net/core/dev.c:11667 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x644/0xa98 net/core/net_namespace.c:635 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 The buggy address belongs to the object at ffff0000d1c71c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff0000d1c71c00, ffff0000d1c71e00) The buggy address belongs to the page: page:00000000607f820f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111c70 head:00000000607f820f order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002600 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d1c71b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d1c71b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d1c71c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d1c71c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d1c71d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================