syzbot |
sign-in | mailing list | source | docs |
================================================================== BUG: KASAN: use-after-free in vma_pages include/linux/mm.h:2827 [inline] BUG: KASAN: use-after-free in vma_last_pgoff mm/interval_tree.c:20 [inline] BUG: KASAN: use-after-free in vma_interval_tree_augment_compute_max mm/interval_tree.c:23 [inline] BUG: KASAN: use-after-free in vma_interval_tree_augment_rotate+0xab/0x1d0 mm/interval_tree.c:23 Read of size 8 at addr ffff8881bfffffb0 by task syz-executor.3/21484 CPU: 1 PID: 21484 Comm: syz-executor.3 Tainted: G W 5.15.148-syzkaller-00718-g993bed180178 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 vma_pages include/linux/mm.h:2827 [inline] vma_last_pgoff mm/interval_tree.c:20 [inline] vma_interval_tree_augment_compute_max mm/interval_tree.c:23 [inline] vma_interval_tree_augment_rotate+0xab/0x1d0 mm/interval_tree.c:23 __rb_insert_augmented+0x5de/0x610 lib/rbtree.c:459 rb_insert_augmented include/linux/rbtree_augmented.h:50 [inline] vma_interval_tree_insert_after+0x2be/0x2d0 mm/interval_tree.c:57 dup_mmap kernel/fork.c:631 [inline] dup_mm kernel/fork.c:1521 [inline] copy_mm+0xba2/0x13e0 kernel/fork.c:1573 copy_process+0x1149/0x3290 kernel/fork.c:2264 kernel_clone+0x21e/0x9e0 kernel/fork.c:2662 __do_sys_clone kernel/fork.c:2788 [inline] __se_sys_clone kernel/fork.c:2772 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2772 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f3c5e55edd3 Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 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 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00 RSP: 002b:00007fff895414c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3c5e55edd3 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000555555fea750 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 </TASK> The buggy address belongs to the page: page:ffffea0006ffffc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1bffff flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0006fa4008 ffffea0006ffff88 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 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 0x506dc0(GFP_USER|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_ZERO|__GFP_ACCOUNT), pid 970, ts 797515996788, free_ts 799860935497 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2604 prep_new_page+0x1b/0x110 mm/page_alloc.c:2610 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4484 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5776 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:96 [inline] bpf_ringbuf_alloc+0xd0/0x3d0 kernel/bpf/ringbuf.c:133 ringbuf_map_alloc+0x202/0x320 kernel/bpf/ringbuf.c:172 find_and_alloc_map kernel/bpf/syscall.c:129 [inline] map_create+0x411/0x2050 kernel/bpf/syscall.c:857 __sys_bpf+0x296/0x760 kernel/bpf/syscall.c:4609 __do_sys_bpf kernel/bpf/syscall.c:4731 [inline] __se_sys_bpf kernel/bpf/syscall.c:4729 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4729 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1471 [inline] free_pcp_prepare mm/page_alloc.c:1543 [inline] free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3533 free_unref_page+0xe8/0x750 mm/page_alloc.c:3615 free_the_page mm/page_alloc.c:804 [inline] __free_pages+0x61/0xf0 mm/page_alloc.c:5852 bpf_ringbuf_free kernel/bpf/ringbuf.c:191 [inline] ringbuf_map_free+0xbe/0x120 kernel/bpf/ringbuf.c:200 bpf_map_free_deferred+0x10d/0x1e0 kernel/bpf/syscall.c:481 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Memory state around the buggy address: ffff8881bffffe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 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: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881c0000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2024/02/26 05:20 | android13-5.15-lts | 993bed180178 | 8d446f15 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-android-5-15-perf | KASAN: use-after-free Read in vma_interval_tree_augment_rotate | ||
2024/02/24 07:34 | android13-5.15-lts | 993bed180178 | 8d446f15 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-android-5-15-perf | KASAN: use-after-free Read in vma_interval_tree_augment_rotate |