================================================================== BUG: KASAN: slab-use-after-free in rose_get_neigh+0x348/0x880 net/rose/rose_route.c:692 Read of size 1 at addr ffff0000d8da2430 by task syz.2.153/7298 CPU: 1 UID: CPU: 1 UID: 0 PID: 7298 Comm: syz.2.153 Not tainted 6.16.0-rc4-syzkaller-g7482bb149b9f #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:501 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x254 mm/kasan/report.c:408 print_report+0x68/0x84 mm/kasan/report.c:521 kasan_report+0xb0/0x110 mm/kasan/report.c:634 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 rose_get_neigh+0x348/0x880 net/rose/rose_route.c:692 rose_connect+0x354/0xd54 net/rose/af_rose.c:816 __sys_connect_file net/socket.c:2038 [inline] __sys_connect+0x2a0/0x3ac net/socket.c:2057 __do_sys_connect net/socket.c:2063 [inline] __se_sys_connect net/socket.c:2060 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:2060 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Allocated by task 7044: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x2a4/0x3fc mm/slub.c:4359 kmalloc_noprof include/linux/slab.h:905 [inline] rose_add_node+0x1f4/0xbb4 net/rose/rose_route.c:85 rose_rt_ioctl+0x8b4/0xd58 net/rose/rose_route.c:747 rose_ioctl+0x378/0xab8 net/rose/af_rose.c:1380 sock_do_ioctl+0xf4/0x2b4 net/socket.c:1190 sock_ioctl+0x57c/0x84c net/socket.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c4 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Freed by task 7215: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x68/0x88 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x17c/0x474 mm/slub.c:4842 rose_remove_neigh+0x240/0x2bc net/rose/rose_route.c:-1 rose_rt_device_down+0x620/0x67c net/rose/rose_route.c:522 rose_device_event+0x5d8/0x68c net/rose/af_rose.c:248 notifier_call_chain+0x1b8/0x4e4 kernel/notifier.c:85 raw_notifier_call_chain+0x3c/0x50 kernel/notifier.c:453 call_netdevice_notifiers_info net/core/dev.c:2230 [inline] call_netdevice_notifiers_extack net/core/dev.c:2268 [inline] call_netdevice_notifiers net/core/dev.c:2282 [inline] __dev_notify_flags+0x260/0x47c net/core/dev.c:-1 netif_change_flags+0xd0/0x15c net/core/dev.c:9526 dev_change_flags+0x10c/0x204 net/core/dev_api.c:68 dev_ifsioc+0xd8/0xb90 net/core/dev_ioctl.c:565 dev_ioctl+0x4b0/0xc74 net/core/dev_ioctl.c:823 sock_do_ioctl+0x200/0x2b4 net/socket.c:1204 sock_ioctl+0x57c/0x84c net/socket.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c4 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the object at ffff0000d8da2400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 48 bytes inside of freed 512-byte region [ffff0000d8da2400, ffff0000d8da2600) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000d8da2400 pfn:0x118da0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000240 ffff0000c0001c80 fffffdffc3dd8910 fffffdffc3634b10 raw: ffff0000d8da2400 0000000000100002 00000000f5000000 0000000000000000 head: 05ffc00000000240 ffff0000c0001c80 fffffdffc3dd8910 fffffdffc3634b10 head: ffff0000d8da2400 0000000000100002 00000000f5000000 0000000000000000 head: 05ffc00000000002 fffffdffc3636801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d8da2300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d8da2380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d8da2400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d8da2480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d8da2500: 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: 0000000046793d19 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: 0000000046793d19 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: 0000000046793d19 object type: timer_list hint: raw_atomic_fetch_sub_release include/linux/atomic/atomic-arch-fallback.h:944 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:401 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: __refcount_sub_and_test include/linux/refcount.h:389 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: __refcount_dec_and_test include/linux/refcount.h:432 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: refcount_dec_and_test include/linux/refcount.h:450 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: ax25_cb_put include/net/ax25.h:281 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: rose_link_up net/rose/rose_link.c:131 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000046793d19 object type: timer_list hint: rose_t0timer_expiry+0x0/0x348 net/rose/rose_link.c:271 WARNING: CPU: 1 PID: 7298 at lib/debugobjects.c:615 debug_print_object+0x168/0x1e0 lib/debugobjects.c:612 Modules linked in: CPU: 1 UID: 0 PID: 7298 Comm: syz.2.153 Tainted: G B 6.16.0-rc4-syzkaller-g7482bb149b9f #0 PREEMPT Tainted: [B]=BAD_PAGE 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+0x168/0x1e0 lib/debugobjects.c:612 lr : debug_print_object+0x168/0x1e0 lib/debugobjects.c:612 sp : ffff80009e1a77c0 x29: ffff80009e1a77c0 x28: dfff800000000000 x27: 0000000000000000 x26: ffff80008f671000 x25: dfff800000000000 x24: ffff0000d8da2490 x23: ffff80008b539460 x22: ffff80008a098ac8 x21: ffff80008afd3540 x20: 0000000000000000 x19: ffff80008b538f40 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008ae642c8 x15: ffff700011ede14c x14: 1ffff00011ede14c x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000080000 x10: 0000000000001cf7 x9 : ad0a2eded9dd6e00 x8 : ad0a2eded9dd6e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009e1a7118 x4 : ffff80008f766c20 x3 : ffff80008054d360 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: debug_print_object+0x168/0x1e0 lib/debugobjects.c:612 (P) debug_object_assert_init+0x250/0x2c8 lib/debugobjects.c:1020 debug_timer_assert_init kernel/time/timer.c:803 [inline] debug_assert_init kernel/time/timer.c:848 [inline] __timer_delete+0x48/0x354 kernel/time/timer.c:1366 timer_delete+0x24/0x34 kernel/time/timer.c:1406 rose_start_t0timer net/rose/rose_link.c:46 [inline] rose_transmit_link+0x444/0x674 net/rose/rose_link.c:286 rose_write_internal+0xef0/0x17c4 net/rose/rose_subr.c:198 rose_connect+0x724/0xd54 net/rose/af_rose.c:879 __sys_connect_file net/socket.c:2038 [inline] __sys_connect+0x2a0/0x3ac net/socket.c:2057 __do_sys_connect net/socket.c:2063 [inline] __se_sys_connect net/socket.c:2060 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:2060 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 350 hardirqs last enabled at (350): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:86 [inline] hardirqs last enabled at (350): [] exit_to_kernel_mode+0xc0/0xf0 arch/arm64/kernel/entry-common.c:96 hardirqs last disabled at (349): [] __el1_irq arch/arm64/kernel/entry-common.c:650 [inline] hardirqs last disabled at (349): [] el1_interrupt+0x24/0x54 arch/arm64/kernel/entry-common.c:668 softirqs last enabled at (342): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (342): [] lock_sock_nested+0xc8/0x118 net/core/sock.c:3759 softirqs last disabled at (344): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (344): [] rose_get_neigh+0x60/0x880 net/rose/rose_route.c:688 ---[ end trace 0000000000000000 ]---