XFS (loop0): Ending clean mount XFS (loop0): Quotacheck needed: Please wait. XFS (loop0): Quotacheck: Done. ================================================================== BUG: KASAN: slab-use-after-free in rose_get_neigh+0x348/0x880 net/rose/rose_route.c:692 Read of size 1 at addr ffff0000ccb8f830 by task syz.0.464/9526 CPU: 1 UID: 0 PID: 9526 Comm: syz.0.464 Not tainted 6.15.0-rc5-syzkaller-gc32f8dc5aaf9 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Allocated by task 7388: 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:4358 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:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __arm64_sys_ioctl+0x14c/0x1c4 fs/ioctl.c:892 __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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Freed by task 9526: 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:2380 [inline] slab_free mm/slub.c:4642 [inline] kfree+0x17c/0x474 mm/slub.c:4841 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:2176 [inline] call_netdevice_notifiers_extack net/core/dev.c:2214 [inline] call_netdevice_notifiers net/core/dev.c:2228 [inline] __dev_notify_flags+0x260/0x47c net/core/dev.c:-1 netif_change_flags+0xd0/0x15c net/core/dev.c:9434 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:821 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:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __arm64_sys_ioctl+0x14c/0x1c4 fs/ioctl.c:892 __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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the object at ffff0000ccb8f800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 48 bytes inside of freed 512-byte region [ffff0000ccb8f800, ffff0000ccb8fa00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10cb8c head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0001c80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0001c80 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 05ffc00000000002 fffffdffc332e301 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ccb8f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ccb8f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000ccb8f800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000ccb8f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000ccb8f900: 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: 0000000071d5d13d 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: 0000000071d5d13d 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: 0000000071d5d13d 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: 0000000071d5d13d 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: 0000000071d5d13d object type: timer_list hint: __refcount_sub_and_test include/linux/refcount.h:389 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000071d5d13d object type: timer_list hint: __refcount_dec_and_test include/linux/refcount.h:432 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000071d5d13d object type: timer_list hint: refcount_dec_and_test include/linux/refcount.h:450 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000071d5d13d object type: timer_list hint: ax25_cb_put include/net/ax25.h:281 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000071d5d13d object type: timer_list hint: rose_link_up net/rose/rose_link.c:131 [inline] ODEBUG: assert_init not available (active state 0) object: 0000000071d5d13d object type: timer_list hint: rose_t0timer_expiry+0x0/0x348 net/rose/rose_link.c:271 WARNING: CPU: 1 PID: 9526 at lib/debugobjects.c:615 debug_print_object+0x168/0x1e0 lib/debugobjects.c:612 Modules linked in: CPU: 1 UID: 0 PID: 9526 Comm: syz.0.464 Tainted: G B 6.15.0-rc5-syzkaller-gc32f8dc5aaf9 #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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 : ffff80009e9477c0 x29: ffff80009e9477c0 x28: dfff800000000000 x27: 0000000000000000 x26: ffff80008f311000 x25: dfff800000000000 x24: ffff0000ccb8f890 x23: ffff80008b3ea900 x22: ffff800089f208fc x21: ffff80008ae91ca0 x20: 0000000000000000 x19: ffff80008b3ea3e0 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008adb410c x15: 0000000000000001 x14: 1fffe000338716e2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000001e59 x9 : 5b6ec94d06e48400 x8 : 5b6ec94d06e48400 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009e947118 x4 : ffff80008f405b40 x3 : ffff8000807b1330 x2 : 0000000000000001 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:845 [inline] debug_assert_init kernel/time/timer.c:890 [inline] __timer_delete+0x48/0x354 kernel/time/timer.c:1408 timer_delete+0x24/0x34 kernel/time/timer.c:1448 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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 84188 hardirqs last enabled at (84188): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:85 [inline] hardirqs last enabled at (84188): [] exit_to_kernel_mode+0xc0/0xf0 arch/arm64/kernel/entry-common.c:95 hardirqs last disabled at (84187): [] __el1_irq arch/arm64/kernel/entry-common.c:580 [inline] hardirqs last disabled at (84187): [] el1_interrupt+0x24/0x54 arch/arm64/kernel/entry-common.c:598 softirqs last enabled at (84180): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (84180): [] lock_sock_nested+0xc8/0x118 net/core/sock.c:3709 softirqs last disabled at (84182): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (84182): [] rose_get_neigh+0x60/0x880 net/rose/rose_route.c:688 ---[ end trace 0000000000000000 ]---