================================================================== BUG: KASAN: use-after-free in rose_get_neigh+0x17c/0x480 net/rose/rose_route.c:690 Read of size 1 at addr ffff0000ea88cc30 by task syz.3.129/4621 CPU: 1 PID: 4621 Comm: syz.3.129 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_load1_noabort+0x44/0x50 mm/kasan/report_generic.c:306 rose_get_neigh+0x17c/0x480 net/rose/rose_route.c:690 rose_connect+0x350/0xffc net/rose/af_rose.c:814 __sys_connect_file net/socket.c:1923 [inline] __sys_connect+0x264/0x28c net/socket.c:1940 __do_sys_connect net/socket.c:1950 [inline] __se_sys_connect net/socket.c:1947 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:1947 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 4453: 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] kmem_cache_alloc_trace+0x274/0x3fc mm/slub.c:3247 kmalloc include/linux/slab.h:604 [inline] rose_add_node+0x1f4/0xba4 net/rose/rose_route.c:85 rose_rt_ioctl+0xa58/0xe38 net/rose/rose_route.c:745 rose_ioctl+0x37c/0xd40 net/rose/af_rose.c:1372 sock_do_ioctl+0xf8/0x240 net/socket.c:1140 sock_ioctl+0x5c8/0x87c net/socket.c:1257 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Freed by task 4623: 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 rose_remove_neigh+0x24c/0x2e0 net/rose/rose_route.c:-1 rose_rt_device_down+0x33c/0x394 net/rose/rose_route.c:522 rose_device_event+0x600/0x6b4 net/rose/af_rose.c:247 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_notify_flags+0x250/0x46c net/core/dev.c:-1 dev_change_flags+0xc8/0x154 net/core/dev.c:8929 dev_ifsioc+0x504/0xef4 net/core/dev_ioctl.c:324 dev_ioctl+0x4d0/0xc94 net/core/dev_ioctl.c:587 sock_do_ioctl+0x18c/0x240 net/socket.c:1154 sock_ioctl+0x5c8/0x87c net/socket.c:1257 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000ea88cc00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 48 bytes inside of 512-byte region [ffff0000ea88cc00, ffff0000ea88ce00) The buggy address belongs to the page: page:000000005b91cd0d refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000ea88e400 pfn:0x12a88c head:000000005b91cd0d order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003436208 fffffc00032a0108 ffff0000c0002600 raw: ffff0000ea88e400 0000000000100009 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ea88cb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ea88cb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000ea88cc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000ea88cc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000ea88cd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ ODEBUG: assert_init not available (active state 0) object type: timer_list hint: __ll_sc_atomic_fetch_sub_release arch/arm64/include/asm/atomic_ll_sc.h:-1 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: arch_atomic_fetch_sub_release arch/arm64/include/asm/atomic.h:51 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:168 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: __refcount_sub_and_test include/linux/refcount.h:272 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: __refcount_dec_and_test include/linux/refcount.h:315 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: refcount_dec_and_test include/linux/refcount.h:333 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: ax25_cb_put include/net/ax25.h:288 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: rose_link_up net/rose/rose_link.c:131 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: rose_t0timer_expiry+0x0/0x344 net/rose/rose_link.c:271 WARNING: CPU: 0 PID: 4621 at lib/debugobjects.c:521 debug_print_object+0x148/0x1d4 lib/debugobjects.c:518 Modules linked in: CPU: 0 PID: 4621 Comm: syz.3.129 Tainted: G B 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : debug_print_object+0x148/0x1d4 lib/debugobjects.c:518 lr : debug_print_object+0x148/0x1d4 lib/debugobjects.c:518 sp : ffff80001fb477f0 x29: ffff80001fb477f0 x28: dfff800000000000 x27: 000000000000000d x26: ffff800014160000 x25: ffff80000837e250 x24: dfff800000000000 x23: 0000000000000000 x22: ffff800010437514 x21: ffff8000117ba360 x20: ffff800011322ce0 x19: ffff8000117b9ea0 x18: 1fffe0003421d396 x17: 1fffe0003421d396 x16: ffff8000111b2714 x15: ffff8000141feda0 x14: ffff0001a10e9cc0 x13: ffff0001a10e9cbc x12: 0000000000080000 x11: 000000000000287c x10: ffff80002385a000 x9 : 149dea83db812a00 x8 : 149dea83db812a00 x7 : 0000000000000000 x6 : ffff80000824599c x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008505198 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000006e Call trace: debug_print_object+0x148/0x1d4 lib/debugobjects.c:518 debug_object_assert_init+0x24c/0x2c4 lib/debugobjects.c:894 debug_timer_assert_init kernel/time/timer.c:739 [inline] debug_assert_init kernel/time/timer.c:784 [inline] del_timer+0x48/0x1e4 kernel/time/timer.c:1224 rose_start_t0timer net/rose/rose_link.c:46 [inline] rose_transmit_link+0x444/0x680 net/rose/rose_link.c:286 rose_write_internal+0xee8/0x17c4 net/rose/rose_subr.c:198 rose_connect+0x8f0/0xffc net/rose/af_rose.c:875 __sys_connect_file net/socket.c:1923 [inline] __sys_connect+0x264/0x28c net/socket.c:1940 __do_sys_connect net/socket.c:1950 [inline] __se_sys_connect net/socket.c:1947 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:1947 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 245 hardirqs last enabled at (243): [] __local_bh_enable_ip+0x1f8/0x380 kernel/softirq.c:406 hardirqs last disabled at (245): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (245): [] _raw_spin_lock_irqsave+0xfc/0x14c kernel/locking/spinlock.c:162 softirqs last enabled at (242): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (242): [] lock_sock_nested+0x14c/0x1d4 net/core/sock.c:3258 softirqs last disabled at (244): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (244): [] rose_get_neigh+0x60/0x480 net/rose/rose_route.c:686 ---[ end trace 3a813670baec6f4f ]---