================================================================== BUG: KASAN: use-after-free in __rb_insert lib/rbtree.c:115 [inline] BUG: KASAN: use-after-free in __rb_insert_augmented+0xb5/0x6f0 lib/rbtree.c:459 Read of size 8 at addr ffff8881c0000008 by task syz-executor/2813 CPU: 0 PID: 2813 Comm: syz-executor Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 __rb_insert lib/rbtree.c:115 [inline] __rb_insert_augmented+0xb5/0x6f0 lib/rbtree.c:459 rb_insert_augmented include/linux/rbtree_augmented.h:50 [inline] vma_interval_tree_insert_after+0x2a6/0x2c0 mm/interval_tree.c:57 dup_mmap kernel/fork.c:635 [inline] dup_mm kernel/fork.c:1533 [inline] copy_mm+0xb34/0x13a0 kernel/fork.c:1585 copy_process+0x1130/0x3230 kernel/fork.c:2355 kernel_clone+0x233/0x960 kernel/fork.c:2744 __do_sys_clone kernel/fork.c:2870 [inline] __se_sys_clone kernel/fork.c:2854 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2854 x64_sys_call+0x41f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f49de0e3252 Code: 89 e7 e8 b1 c7 f6 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffd13b2bfa0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffd13b2bfa0 RCX: 00007f49de0e3252 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffd13b2c12c R08: 0000000000000000 R09: 0000000000000001 R10: 000055558caf97d0 R11: 0000000000000246 R12: 0000000000000000 R13: 00000000000927c0 R14: 000000000002b3e9 R15: 00007ffd13b2c180 The buggy address belongs to the page: page:ffffea0007000000 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x1c0000 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0006f7a008 ffffea0006e78008 0000000000000000 raw: 0000000000000000 0000000000000007 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x506dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_ZERO|__GFP_ACCOUNT), pid 4355, ts 95858115060, free_ts 102750713311 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 vm_area_alloc_pages mm/vmalloc.c:-1 [inline] __vmalloc_area_node mm/vmalloc.c:3014 [inline] __vmalloc_node_range+0x507/0xad0 mm/vmalloc.c:3180 __bpf_map_area_alloc kernel/bpf/syscall.c:328 [inline] bpf_map_area_alloc+0xd5/0xe0 kernel/bpf/syscall.c:335 htab_map_alloc+0x3c0/0x15d0 kernel/bpf/hashtab.c:531 find_and_alloc_map kernel/bpf/syscall.c:129 [inline] map_create+0x3f4/0x1fa0 kernel/bpf/syscall.c:860 __sys_bpf+0x2ff/0x7d0 kernel/bpf/syscall.c:4615 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline] __se_sys_bpf kernel/bpf/syscall.c:4735 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735 x64_sys_call+0x4b9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1477 [inline] free_pcp_prepare mm/page_alloc.c:1549 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3540 free_unref_page+0xae/0x540 mm/page_alloc.c:3622 free_the_page mm/page_alloc.c:808 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5905 __vunmap+0x801/0x980 mm/vmalloc.c:2693 __vfree mm/vmalloc.c:2742 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2773 kvfree+0x26/0x40 mm/util.c:659 bpf_map_area_free+0x15/0x20 kernel/bpf/syscall.c:345 htab_map_alloc+0x897/0x15d0 kernel/bpf/hashtab.c:575 find_and_alloc_map kernel/bpf/syscall.c:129 [inline] map_create+0x3f4/0x1fa0 kernel/bpf/syscall.c:860 __sys_bpf+0x2ff/0x7d0 kernel/bpf/syscall.c:4615 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline] __se_sys_bpf kernel/bpf/syscall.c:4735 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735 x64_sys_call+0x4b9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff8881bfffff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881bfffff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881c0000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881c0000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881c0000100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== general protection fault, probably for non-canonical address 0xdffffc0000c58e42: 0000 [#1] PREEMPT SMP KASAN KASAN: probably user-memory-access in range [0x00000000062c7210-0x00000000062c7217] CPU: 0 PID: 2813 Comm: syz-executor Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:__rb_change_child include/linux/rbtree_augmented.h:173 [inline] RIP: 0010:__rb_rotate_set_parents lib/rbtree.c:81 [inline] RIP: 0010:__rb_insert lib/rbtree.c:180 [inline] RIP: 0010:__rb_insert_augmented+0x3a4/0x6f0 lib/rbtree.c:459 Code: ff e8 40 1f 38 ff 4d 89 27 4d 89 3e 48 85 db 0f 84 8d 02 00 00 4c 8d 63 10 4d 89 e5 49 c1 ed 03 48 b8 00 00 00 00 00 fc ff df <41> 80 7c 05 00 00 74 08 4c 89 e7 e8 6c 1e 38 ff 4d 39 34 24 0f 84 RSP: 0018:ffffc900011878f8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 00000000062c7200 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881c0000000 RBP: ffffc90001187948 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff0e5aa4c R12: 00000000062c7210 R13: 0000000000c58e42 R14: ffff8881c0000000 R15: ffff88815cb9b4f8 FS: 000055558caf9500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ee23ffc CR3: 000000019faf0000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: rb_insert_augmented include/linux/rbtree_augmented.h:50 [inline] vma_interval_tree_insert_after+0x2a6/0x2c0 mm/interval_tree.c:57 dup_mmap kernel/fork.c:635 [inline] dup_mm kernel/fork.c:1533 [inline] copy_mm+0xb34/0x13a0 kernel/fork.c:1585 copy_process+0x1130/0x3230 kernel/fork.c:2355 kernel_clone+0x233/0x960 kernel/fork.c:2744 __do_sys_clone kernel/fork.c:2870 [inline] __se_sys_clone kernel/fork.c:2854 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2854 x64_sys_call+0x41f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f49de0e3252 Code: 89 e7 e8 b1 c7 f6 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffd13b2bfa0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffd13b2bfa0 RCX: 00007f49de0e3252 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffd13b2c12c R08: 0000000000000000 R09: 0000000000000001 R10: 000055558caf97d0 R11: 0000000000000246 R12: 0000000000000000 R13: 00000000000927c0 R14: 000000000002b3e9 R15: 00007ffd13b2c180 Modules linked in: ---[ end trace 19ffcd46ab9585d2 ]--- RIP: 0010:__rb_change_child include/linux/rbtree_augmented.h:173 [inline] RIP: 0010:__rb_rotate_set_parents lib/rbtree.c:81 [inline] RIP: 0010:__rb_insert lib/rbtree.c:180 [inline] RIP: 0010:__rb_insert_augmented+0x3a4/0x6f0 lib/rbtree.c:459 Code: ff e8 40 1f 38 ff 4d 89 27 4d 89 3e 48 85 db 0f 84 8d 02 00 00 4c 8d 63 10 4d 89 e5 49 c1 ed 03 48 b8 00 00 00 00 00 fc ff df <41> 80 7c 05 00 00 74 08 4c 89 e7 e8 6c 1e 38 ff 4d 39 34 24 0f 84 RSP: 0018:ffffc900011878f8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 00000000062c7200 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881c0000000 RBP: ffffc90001187948 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff0e5aa4c R12: 00000000062c7210 R13: 0000000000c58e42 R14: ffff8881c0000000 R15: ffff88815cb9b4f8 FS: 000055558caf9500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000005da000 CR3: 000000019faf0000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: ff ljmp (bad) 1: e8 40 1f 38 ff call 0xff381f46 6: 4d 89 27 mov %r12,(%r15) 9: 4d 89 3e mov %r15,(%r14) c: 48 85 db test %rbx,%rbx f: 0f 84 8d 02 00 00 je 0x2a2 15: 4c 8d 63 10 lea 0x10(%rbx),%r12 19: 4d 89 e5 mov %r12,%r13 1c: 49 c1 ed 03 shr $0x3,%r13 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 80 7c 05 00 00 cmpb $0x0,0x0(%r13,%rax,1) <-- trapping instruction 30: 74 08 je 0x3a 32: 4c 89 e7 mov %r12,%rdi 35: e8 6c 1e 38 ff call 0xff381ea6 3a: 4d 39 34 24 cmp %r14,(%r12) 3e: 0f .byte 0xf 3f: 84 .byte 0x84