================================================================== 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 ffff8881d2a5fee0 by task syz.1.66/610 CPU: 1 PID: 610 Comm: syz.1.66 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 578: 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_kmalloc+0xd/0x20 mm/kasan/common.c:543 __kmalloc+0x12a/0x2f0 mm/slub.c:3913 kmalloc_array include/linux/slab.h:618 [inline] realloc_stack_state kernel/bpf/verifier.c:595 [inline] realloc_func_state+0x305/0x5b0 kernel/bpf/verifier.c:611 copy_func_state kernel/bpf/verifier.c:704 [inline] copy_verifier_state+0x65f/0xc20 kernel/bpf/verifier.c:751 push_stack+0x156/0x480 kernel/bpf/verifier.c:819 check_cond_jmp_op+0x5c3/0x17f0 kernel/bpf/verifier.c:6192 do_check+0x5058/0x8a60 kernel/bpf/verifier.c:8109 bpf_check+0x208a/0x9cf0 kernel/bpf/verifier.c:9637 bpf_prog_load+0xa5f/0xe10 kernel/bpf/syscall.c:1724 __do_sys_bpf kernel/bpf/syscall.c:2891 [inline] __se_sys_bpf+0x435/0x570 kernel/bpf/syscall.c:2849 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:2849 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Freed by task 578: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] kasan_set_free_info mm/kasan/common.c:345 [inline] __kasan_slab_free+0x1c3/0x280 mm/kasan/common.c:487 kasan_slab_free+0xe/0x10 mm/kasan/common.c:496 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook+0xb7/0x180 mm/slub.c:1494 slab_free mm/slub.c:3080 [inline] kfree+0xbe/0x260 mm/slub.c:4071 free_func_state kernel/bpf/verifier.c:671 [inline] free_verifier_state+0xd6/0x220 kernel/bpf/verifier.c:688 pop_stack kernel/bpf/verifier.c:795 [inline] do_check+0x65d1/0x8a60 kernel/bpf/verifier.c:8098 bpf_check+0x208a/0x9cf0 kernel/bpf/verifier.c:9637 bpf_prog_load+0xa5f/0xe10 kernel/bpf/syscall.c:1724 __do_sys_bpf kernel/bpf/syscall.c:2891 [inline] __se_sys_bpf+0x435/0x570 kernel/bpf/syscall.c:2849 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:2849 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 The buggy address belongs to the object at ffff8881d2a5c000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 7904 bytes to the right of 8192-byte region [ffff8881d2a5c000, ffff8881d2a5e000) The buggy address belongs to the page: page:ffffea00074a9600 refcount:1 mapcount:0 mapping:ffff8881f5c0c500 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881f5c0c500 raw: 0000000000000000 0000000000020002 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] __kmalloc+0x176/0x2f0 mm/slub.c:3909 kmalloc_array include/linux/slab.h:618 [inline] realloc_stack_state kernel/bpf/verifier.c:595 [inline] realloc_func_state+0x305/0x5b0 kernel/bpf/verifier.c:611 copy_func_state kernel/bpf/verifier.c:704 [inline] copy_verifier_state+0x65f/0xc20 kernel/bpf/verifier.c:751 push_stack+0x156/0x480 kernel/bpf/verifier.c:819 check_cond_jmp_op+0x5c3/0x17f0 kernel/bpf/verifier.c:6192 do_check+0x5058/0x8a60 kernel/bpf/verifier.c:8109 bpf_check+0x208a/0x9cf0 kernel/bpf/verifier.c:9637 bpf_prog_load+0xa5f/0xe10 kernel/bpf/syscall.c:1724 __do_sys_bpf kernel/bpf/syscall.c:2891 [inline] __se_sys_bpf+0x435/0x570 kernel/bpf/syscall.c:2849 page_owner free stack trace missing Memory state around the buggy address: ffff8881d2a5fd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d2a5fe00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 >ffff8881d2a5fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881d2a5ff00: fc fc fc fc fc fc fc fc f1 f1 f1 f1 00 f2 f2 f2 ffff8881d2a5ff80: 04 f3 f3 f3 fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================