================================================================== BUG: KASAN: slab-use-after-free in soft_cursor+0x378/0x6bc drivers/video/fbdev/core/softcursor.c:70 Read of size 27 at addr ffff0000d61aacb8 by task syz.1.1213/9840 CPU: 0 UID: 0 PID: 9840 Comm: syz.1.1213 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x17c/0x1ac mm/kasan/generic.c:200 __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 soft_cursor+0x378/0x6bc drivers/video/fbdev/core/softcursor.c:70 ccw_cursor+0xafc/0x11a0 drivers/video/fbdev/core/fbcon_ccw.c:340 fbcon_cursor+0x370/0x4f4 drivers/video/fbdev/core/fbcon.c:1439 hide_cursor+0xdc/0x2d0 drivers/tty/vt/vt.c:997 con_font_set drivers/tty/vt/vt.c:5110 [inline] con_font_op+0x900/0xc4c drivers/tty/vt/vt.c:5153 vt_k_ioctl drivers/tty/vt/vt_ioctl.c:474 [inline] vt_ioctl+0x1664/0x1d4c drivers/tty/vt/vt_ioctl.c:747 tty_ioctl+0x82c/0xd04 drivers/tty/tty_io.c:2782 vfs_ioctl fs/ioctl.c:52 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl fs/ioctl.c:584 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:584 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Allocated by task 4727: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x84 mm/kasan/common.c:79 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:585 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_noprof+0x34c/0x6c8 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] tomoyo_realpath_from_path+0xbc/0x4dc security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x1f0/0x500 security/tomoyo/file.c:728 tomoyo_path_mkdir+0xac/0xf8 security/tomoyo/tomoyo.c:179 security_path_mkdir+0x160/0x318 security/security.c:1465 filename_mkdirat+0x1b8/0x420 fs/namei.c:5458 __do_sys_mkdirat fs/namei.c:5482 [inline] __se_sys_mkdirat fs/namei.c:5479 [inline] __arm64_sys_mkdirat+0x9c/0xc0 fs/namei.c:5479 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Freed by task 4727: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x84 mm/kasan/common.c:79 kasan_save_free_info+0x54/0x6c mm/kasan/generic.c:599 poison_slab_object mm/kasan/common.c:267 [inline] __kasan_slab_free+0x90/0xc0 mm/kasan/common.c:299 kasan_slab_free include/linux/kasan.h:239 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6637 [inline] kfree+0x18c/0x65c mm/slub.c:6930 tomoyo_realpath_from_path+0x494/0x4dc security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x1f0/0x500 security/tomoyo/file.c:728 tomoyo_path_mkdir+0xac/0xf8 security/tomoyo/tomoyo.c:179 security_path_mkdir+0x160/0x318 security/security.c:1465 filename_mkdirat+0x1b8/0x420 fs/namei.c:5458 __do_sys_mkdirat fs/namei.c:5482 [inline] __se_sys_mkdirat fs/namei.c:5479 [inline] __arm64_sys_mkdirat+0x9c/0xc0 fs/namei.c:5479 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 The buggy address belongs to the object at ffff0000d61aa000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3256 bytes inside of freed 4096-byte region [ffff0000d61aa000, ffff0000d61ab000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1161a8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0002140 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0002140 dead000000000100 dead000000000122 head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc3586a01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d61aab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d61aac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000d61aac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d61aad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d61aad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================