BUG: spinlock recursion on CPU#0, syz.1.23/5438 ================================================================== BUG: KASAN: out-of-bounds in fixup_exception+0xa7/0x1cc0 arch/x86/mm/extable.c:320 Read of size 8 at addr ffffc900044dee58 by task syz.1.23/5438 CPU: 1 UID: 0 PID: 5438 Comm: syz.1.23 Not tainted 6.11.0-rc4-next-20240821-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 fixup_exception+0xa7/0x1cc0 arch/x86/mm/extable.c:320 gp_try_fixup_and_notify arch/x86/kernel/traps.c:667 [inline] __exc_general_protection arch/x86/kernel/traps.c:727 [inline] exc_general_protection+0x1e8/0x5d0 arch/x86/kernel/traps.c:693 The buggy address belongs to stack of task syz.1.23/5438 and is located at offset 728 in frame: fixup_exception+0x0/0x1cc0 This frame has 1 object: [32, 144) 'insn.i' The buggy address belongs to the virtual mapping at [ffffc900044d8000, ffffc900044e1000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2206 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801f3bb8b8 pfn:0x1f3bb memcg:ffff88802005a682 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88801f3bb8b8 0000000000000000 00000001ffffffff ffff88802005a682 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5368, tgid 5368 (syz.2.9), ts 62560857622, free_ts 59939381769 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3004/0x30c0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3600 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0xa40/0x1400 mm/vmalloc.c:3850 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2206 kernel_clone+0x226/0x8f0 kernel/fork.c:2787 __do_sys_clone3 kernel/fork.c:3091 [inline] __se_sys_clone3+0x2cb/0x350 kernel/fork.c:3070 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5339 tgid 5339 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page+0xc07/0xd90 mm/page_alloc.c:2651 discard_slab mm/slub.c:2630 [inline] __put_partials+0xeb/0x130 mm/slub.c:3098 put_cpu_partial+0x17c/0x250 mm/slub.c:3173 __slab_free+0x2ea/0x3d0 mm/slub.c:4391 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4085 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4092 mt_alloc_one lib/maple_tree.c:162 [inline] mas_alloc_nodes+0x26c/0x840 lib/maple_tree.c:1242 mas_node_count_gfp lib/maple_tree.c:1322 [inline] mas_preallocate+0x554/0x8c0 lib/maple_tree.c:5557 vma_iter_prealloc mm/vma.h:301 [inline] __split_vma+0x2e5/0xc30 mm/vma.c:211 split_vma mm/vma.c:270 [inline] vma_modify+0x268/0x350 mm/vma.c:1161 vma_modify_flags mm/vma.h:106 [inline] mprotect_fixup+0x3ea/0xa90 mm/mprotect.c:661 do_mprotect_pkey+0x91a/0xe10 mm/mprotect.c:844 __do_sys_mprotect mm/mprotect.c:865 [inline] __se_sys_mprotect mm/mprotect.c:862 [inline] __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:862 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Memory state around the buggy address: ffffc900044ded00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900044ded80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900044dee00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900044dee80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900044def00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================