================================================================== 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 ffff8881e91f7f00 by task syz.4.610/2603 CPU: 1 PID: 2603 Comm: syz.4.610 Not tainted 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 4113322752: 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] kmem_cache_alloc_trace+0xe6/0x290 mm/slub.c:2854 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:690 [inline] acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline] acpi_ds_create_walk_state+0xd6/0x270 drivers/acpi/acpica/dswstate.c:518 acpi_ds_call_control_method+0x135/0x760 drivers/acpi/acpica/dsmethod.c:498 acpi_ps_parse_aml+0x303/0x9a0 drivers/acpi/acpica/psparse.c:503 acpi_ps_execute_method+0x7a3/0x900 drivers/acpi/acpica/psxface.c:190 acpi_ns_evaluate+0x629/0xa00 drivers/acpi/acpica/nseval.c:205 acpi_evaluate_object+0x53c/0xa00 drivers/acpi/acpica/nsxfeval.c:354 acpi_evaluate_integer+0xf5/0x1c0 drivers/acpi/utils.c:283 acpi_bus_get_status_handle+0x26/0x80 drivers/acpi/bus.c:83 acpi_bus_type_and_status drivers/acpi/scan.c:1757 [inline] acpi_bus_check_add+0x29c/0xbe0 drivers/acpi/scan.c:1911 acpi_ns_walk_namespace+0x23e/0x680 drivers/acpi/acpica/nswalk.c:231 acpi_walk_namespace+0xf6/0x140 drivers/acpi/acpica/nsxfeval.c:606 acpi_bus_scan+0xb7/0x120 drivers/acpi/scan.c:2101 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 2117: (stack is not available) The buggy address belongs to the object at ffff8881e91f6600 which belongs to the cache names_cache of size 4096 The buggy address is located 2304 bytes to the right of 4096-byte region [ffff8881e91f6600, ffff8881e91f7600) The buggy address belongs to the page: page:ffffea0007a47c00 refcount:1 mapcount:0 mapping:ffff8881f5d01b80 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881f5d01b80 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 fs/namei.c:212 [inline] user_path_create fs/namei.c:3842 [inline] do_symlinkat+0x7e/0x3b0 fs/namei.c:4296 __do_sys_symlinkat fs/namei.c:4317 [inline] __se_sys_symlinkat fs/namei.c:4314 [inline] __x64_sys_symlinkat+0x7b/0x90 fs/namei.c:4314 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] __free_pages_ok+0x7e4/0x910 mm/page_alloc.c:1438 free_the_page mm/page_alloc.c:4956 [inline] __free_pages+0x8c/0x110 mm/page_alloc.c:4962 __free_slab+0x218/0x2d0 mm/slub.c:1774 free_slab mm/slub.c:1789 [inline] discard_slab mm/slub.c:1795 [inline] unfreeze_partials+0x165/0x1a0 mm/slub.c:2288 put_cpu_partial+0xc1/0x180 mm/slub.c:2324 __slab_free+0x2be/0x380 mm/slub.c:2971 do_slab_free mm/slub.c:3068 [inline] ___cache_free+0xbb/0xd0 mm/slub.c:3087 qlink_free+0x23/0x30 mm/kasan/quarantine.c:148 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:167 quarantine_reduce+0x1a8/0x200 mm/kasan/quarantine.c:260 __kasan_kmalloc+0x42/0x200 mm/kasan/common.c:507 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] kmem_cache_alloc+0xe2/0x270 mm/slub.c:2842 getname_flags+0xb9/0x500 fs/namei.c:141 user_path_at_empty+0x2f/0x50 fs/namei.c:2703 user_path_at include/linux/namei.h:49 [inline] vfs_statx+0x116/0x200 fs/stat.c:187 Memory state around the buggy address: ffff8881e91f7e00: fc fc fc fc fc fc fc fc fc fc fc fc 00 00 00 00 ffff8881e91f7e80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881e91f7f00: fc fc fc fc fc fc fc fc fc fc fc fc f1 f1 f1 f1 ^ ffff8881e91f7f80: 00 f2 f2 f2 04 f3 f3 f3 fc fc fc fc fc fc fc fc ffff8881e91f8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== PANIC: double fault, error_code: 0x0 CPU: 1 PID: 2603 Comm: syz.4.610 Tainted: G B 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:check_memory_region_inline mm/kasan/generic.c:172 [inline] RIP: 0010:check_memory_region+0x13/0x280 mm/kasan/generic.c:191 Code: 0a 48 c7 c7 ba bd 3a 85 48 89 de e8 57 b3 99 02 45 31 ff eb d1 00 00 b0 01 48 85 f6 0f 84 9d 01 00 00 55 48 89 e5 41 57 41 56 <53> 49 89 f8 49 c1 e8 2f 41 81 f8 ff ff 01 00 0f 82 44 02 00 00 49 RSP: 0018:ffff8881e8cea000 EFLAGS: 00010002 RAX: 0000000000000001 RBX: ffffe8ffffd17158 RCX: ffffffff812dec2a RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff862bb528 RBP: ffff8881e8cea010 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e8cea078 FS: 0000555594b4f500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8881e8ce9ff8 CR3: 00000001f5c2a000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 c7 c7 ba bd 3a 85 mov $0xffffffff853abdba,%rdi 7: 48 89 de mov %rbx,%rsi a: e8 57 b3 99 02 call 0x299b366 f: 45 31 ff xor %r15d,%r15d 12: eb d1 jmp 0xffffffe5 14: 00 00 add %al,(%rax) 16: b0 01 mov $0x1,%al 18: 48 85 f6 test %rsi,%rsi 1b: 0f 84 9d 01 00 00 je 0x1be 21: 55 push %rbp 22: 48 89 e5 mov %rsp,%rbp 25: 41 57 push %r15 27: 41 56 push %r14 * 29: 53 push %rbx <-- trapping instruction 2a: 49 89 f8 mov %rdi,%r8 2d: 49 c1 e8 2f shr $0x2f,%r8 31: 41 81 f8 ff ff 01 00 cmp $0x1ffff,%r8d 38: 0f 82 44 02 00 00 jb 0x282 3e: 49 rex.WB