================================================================== BUG: KASAN: slab-out-of-bounds in user_mode arch/x86/include/asm/ptrace.h:131 [inline] BUG: KASAN: slab-out-of-bounds in trace_page_fault_entries arch/x86/mm/fault.c:1516 [inline] BUG: KASAN: slab-out-of-bounds in do_page_fault+0x6d/0x320 arch/x86/mm/fault.c:1528 Read of size 8 at addr ffff8881bc3b7f00 by task syz.6.1040/4202 CPU: 1 PID: 4202 Comm: syz.6.1040 Tainted: G W 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: Allocated by task 714674688: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x162/0x200 mm/kasan/common.c:529 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:537 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] __kmalloc+0x106/0x2f0 mm/slub.c:3909 kmalloc include/linux/slab.h:561 [inline] kzalloc include/linux/slab.h:690 [inline] platform_device_alloc drivers/base/platform.c:383 [inline] platform_device_register_full+0x76/0x740 drivers/base/platform.c:627 acpi_create_platform_device+0x4bd/0x550 drivers/acpi/acpi_platform.c:156 acpi_default_enumeration drivers/acpi/scan.c:1941 [inline] acpi_bus_attach+0x87f/0xb50 drivers/acpi/scan.c:2047 acpi_bus_attach+0x238/0xb50 drivers/acpi/scan.c:2053 acpi_bus_attach+0x238/0xb50 drivers/acpi/scan.c:2053 acpi_bus_attach+0x238/0xb50 drivers/acpi/scan.c:2053 acpi_bus_attach+0x238/0xb50 drivers/acpi/scan.c:2053 acpi_bus_scan+0xd2/0x120 drivers/acpi/scan.c:2105 acpi_scan_init+0x1e5/0x6e6 drivers/acpi/scan.c:2265 acpi_init+0x170/0x223 drivers/acpi/bus.c:1250 do_one_initcall+0x196/0x5c0 init/main.c:1192 do_initcall_level+0x21b/0x408 init/main.c:1259 do_initcalls+0x50/0x92 init/main.c:1275 do_basic_setup+0x88/0x8f init/main.c:1295 kernel_init_freeable+0x282/0x42f init/main.c:1458 kernel_init+0x11/0x1a0 init/main.c:1375 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 Freed by task 2175: (stack is not available) The buggy address belongs to the object at ffff8881bc3b6600 which belongs to the cache names_cache of size 4096 The buggy address is located 2304 bytes to the right of 4096-byte region [ffff8881bc3b6600, ffff8881bc3b7600) The buggy address belongs to the page: page:ffffea0006f0ec00 refcount:1 mapcount:0 mapping:ffff8881f5d00c80 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881f5d00c80 raw: 0000000000000000 0000000000070007 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x35e/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x1296/0x1310 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x202/0x4b0 mm/page_alloc.c:4894 alloc_slab_page+0x3c/0x3b0 mm/slub.c:343 allocate_slab mm/slub.c:1683 [inline] new_slab+0x93/0x420 mm/slub.c:1749 new_slab_objects mm/slub.c:2505 [inline] ___slab_alloc+0x29e/0x420 mm/slub.c:2667 __slab_alloc+0x63/0xa0 mm/slub.c:2707 slab_alloc_node mm/slub.c:2792 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0x12c/0x270 mm/slub.c:2842 getname_flags+0xb9/0x500 fs/namei.c:141 getname+0x19/0x20 fs/namei.c:212 do_sys_open+0x26c/0x5d0 fs/open.c:1117 __do_sys_openat fs/open.c:1150 [inline] __se_sys_openat fs/open.c:1144 [inline] __x64_sys_openat+0xa2/0xb0 fs/open.c:1144 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 page_owner free stack trace missing Memory state around the buggy address: ffff8881bc3b7e00: fc fc fc fc fc fc fc fc fc fc fc fc 00 00 00 00 ffff8881bc3b7e80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881bc3b7f00: fc fc fc fc fc fc fc fc fc fc fc fc f1 f1 f1 f1 ^ ffff8881bc3b7f80: 00 f2 f2 f2 04 f3 f3 f3 fc fc fc fc fc fc fc fc ffff8881bc3b8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================