================================================================== BUG: KASAN: use-after-free in rose_transmit_link+0x500/0x680 net/rose/rose_link.c:266 Read of size 1 at addr ffff0000db3ab832 by task syz.1.8/4121 CPU: 1 PID: 4121 Comm: syz.1.8 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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_transmit_link+0x500/0x680 net/rose/rose_link.c:266 rose_write_internal+0xee8/0x17c4 net/rose/rose_subr.c:198 rose_release+0x228/0x544 net/rose/af_rose.c:670 __sock_release net/socket.c:649 [inline] sock_close+0xb4/0x1f8 net/socket.c:1336 __fput+0x1c0/0x7f8 fs/file_table.c:311 ____fput+0x20/0x30 fs/file_table.c:339 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 get_signal+0x1240/0x1340 kernel/signal.c:2672 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 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 4121: 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 4119: 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 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 rhashtable_rehash_table lib/rhashtable.c:345 [inline] rht_deferred_worker+0x146c/0x1bc8 lib/rhashtable.c:429 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:870 The buggy address belongs to the object at ffff0000db3ab800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 50 bytes inside of 512-byte region [ffff0000db3ab800, ffff0000db3aba00) The buggy address belongs to the page: page:0000000002a43aa3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b3a8 head:0000000002a43aa3 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003698100 0000000400000004 ffff0000c0002600 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000db3ab700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000db3ab780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000db3ab800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000db3ab880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000db3ab900: 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: 1 PID: 4121 at lib/debugobjects.c:521 debug_print_object+0x148/0x1d4 lib/debugobjects.c:518 Modules linked in: CPU: 1 PID: 4121 Comm: syz.1.8 Tainted: G B 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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 : ffff80001f557690 x29: ffff80001f557690 x28: dfff800000000000 x27: 0000000000000000 x26: ffff800014150000 x25: ffff80000837c92c x24: dfff800000000000 x23: 0000000000000000 x22: ffff800010429180 x21: ffff8000117aa020 x20: ffff800011312ce0 x19: ffff8000117a9b60 x18: 0000000000000002 x17: 0000000040000000 x16: ffff8000111a3970 x15: 0000000000000002 x14: 0000000000ff0100 x13: ffffffffffffffff x12: 0000000000080000 x11: 000000000002e94d x10: ffff800020a4a000 x9 : e4b6f55fe84c7700 x8 : e4b6f55fe84c7700 x7 : 0000000000000000 x6 : ffff800008244078 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008503848 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_release+0x228/0x544 net/rose/af_rose.c:670 __sock_release net/socket.c:649 [inline] sock_close+0xb4/0x1f8 net/socket.c:1336 __fput+0x1c0/0x7f8 fs/file_table.c:311 ____fput+0x20/0x30 fs/file_table.c:339 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 get_signal+0x1240/0x1340 kernel/signal.c:2672 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 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: 1754 hardirqs last enabled at (1753): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (1753): [] _raw_spin_unlock_irqrestore+0xa8/0x14c kernel/locking/spinlock.c:194 hardirqs last disabled at (1754): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1754): [] _raw_spin_lock_irqsave+0xfc/0x14c kernel/locking/spinlock.c:162 softirqs last enabled at (1742): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (1742): [] lock_sock_nested+0x14c/0x1d4 net/core/sock.c:3258 softirqs last disabled at (1740): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (1740): [] lock_sock_nested+0xf4/0x1d4 net/core/sock.c:3254 ---[ end trace 7de72d02e8465455 ]---