==================================================================
BUG: KASAN: slab-out-of-bounds in vma_pages include/linux/mm.h:2826 [inline]
BUG: KASAN: slab-out-of-bounds in vma_last_pgoff mm/interval_tree.c:20 [inline]
BUG: KASAN: slab-out-of-bounds in vma_interval_tree_augment_compute_max mm/interval_tree.c:23 [inline]
BUG: KASAN: slab-out-of-bounds in vma_interval_tree_augment_propagate mm/interval_tree.c:23 [inline]
BUG: KASAN: slab-out-of-bounds in __rb_erase_augmented include/linux/rbtree_augmented.h:295 [inline]
BUG: KASAN: slab-out-of-bounds in rb_erase_augmented include/linux/rbtree_augmented.h:303 [inline]
BUG: KASAN: slab-out-of-bounds in rb_erase_augmented_cached include/linux/rbtree_augmented.h:314 [inline]
BUG: KASAN: slab-out-of-bounds in vma_interval_tree_remove+0x67e/0xba0 mm/interval_tree.c:23
Read of size 8 at addr ffff888143d105c4 by task syz-executor.5/15516
CPU: 1 PID: 15516 Comm: syz-executor.5 Not tainted 5.15.122-syzkaller-00676-g1463976ddc64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
Call Trace:
__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:2826 [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_propagate mm/interval_tree.c:23 [inline]
__rb_erase_augmented include/linux/rbtree_augmented.h:295 [inline]
rb_erase_augmented include/linux/rbtree_augmented.h:303 [inline]
rb_erase_augmented_cached include/linux/rbtree_augmented.h:314 [inline]
vma_interval_tree_remove+0x67e/0xba0 mm/interval_tree.c:23
__remove_shared_vm_struct mm/mmap.c:158 [inline]
unlink_file_vma+0xd9/0xf0 mm/mmap.c:173
free_pgtables+0x13f/0x280 mm/memory.c:486
exit_mmap+0x3e7/0x6f0 mm/mmap.c:3210
__mmput+0x95/0x310 kernel/fork.c:1171
mmput+0x5b/0x170 kernel/fork.c:1194
exit_mm kernel/exit.c:551 [inline]
do_exit+0xbb4/0x2b60 kernel/exit.c:862
do_group_exit+0x141/0x310 kernel/exit.c:997
get_signal+0x7a3/0x1630 kernel/signal.c:2891
arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:865
handle_signal_work kernel/entry/common.c:148 [inline]
exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
__syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f8e7e4ddae9
Code: Unable to access opcode bytes at RIP 0x7f8e7e4ddabf.
RSP: 002b:00007f8e7d260178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f8e7e5fcf88 RCX: 00007f8e7e4ddae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f8e7e5fcf88
RBP: 00007f8e7e5fcf80 R08: 00007f8e7d2606c0 R09: 00007f8e7d2606c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8e7e5fcf8c
R13: 000000000000000b R14: 00007ffd37e1b410 R15: 00007ffd37e1b4f8
Allocated by task 32109:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
__kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466
kasan_slab_alloc include/linux/kasan.h:217 [inline]
slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550
slab_alloc_node mm/slub.c:3240 [inline]
slab_alloc mm/slub.c:3248 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3253
vm_area_alloc+0x24/0x130 kernel/fork.c:359
do_brk_flags+0x713/0xb80 mm/mmap.c:3103
vm_brk_flags+0x1aa/0x320 mm/mmap.c:3143
set_brk+0x59/0x110 fs/binfmt_elf.c:120
load_elf_binary+0x19e0/0x2750 fs/binfmt_elf.c:1218
search_binary_handler fs/exec.c:1739 [inline]
exec_binprm fs/exec.c:1780 [inline]
bprm_execve+0x7ae/0x14a0 fs/exec.c:1849
do_execveat_common+0x565/0x710 fs/exec.c:1954
do_execve fs/exec.c:2024 [inline]
__do_sys_execve fs/exec.c:2100 [inline]
__se_sys_execve fs/exec.c:2095 [inline]
__x64_sys_execve+0x92/0xb0 fs/exec.c:2095
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
Last potentially related work creation:
kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu kernel/rcu/tree.c:2994 [inline]
call_rcu+0x133/0x12a0 kernel/rcu/tree.c:3074
free_vm_area_struct kernel/fork.c:394 [inline]
vm_area_free_no_check+0xff/0x130 kernel/fork.c:408
vm_area_free+0x53/0x60 kernel/fork.c:418
remove_vma mm/mmap.c:190 [inline]
exit_mmap+0x50d/0x6f0 mm/mmap.c:3217
__mmput+0x95/0x310 kernel/fork.c:1171
mmput+0x5b/0x170 kernel/fork.c:1194
exit_mm kernel/exit.c:551 [inline]
do_exit+0xbb4/0x2b60 kernel/exit.c:862
__do_sys_exit kernel/exit.c:966 [inline]
__se_sys_exit kernel/exit.c:964 [inline]
__ia32_sys_exit+0x0/0x40 kernel/exit.c:964
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
Second to last potentially related work creation:
kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu kernel/rcu/tree.c:2994 [inline]
call_rcu+0x133/0x12a0 kernel/rcu/tree.c:3074
free_vm_area_struct kernel/fork.c:394 [inline]
vm_area_free_no_check+0xff/0x130 kernel/fork.c:408
vm_area_free+0x53/0x60 kernel/fork.c:418
remove_vma mm/mmap.c:190 [inline]
exit_mmap+0x50d/0x6f0 mm/mmap.c:3217
__mmput+0x95/0x310 kernel/fork.c:1171
mmput+0x5b/0x170 kernel/fork.c:1194
exit_mm kernel/exit.c:551 [inline]
do_exit+0xbb4/0x2b60 kernel/exit.c:862
do_group_exit+0x141/0x310 kernel/exit.c:997
get_signal+0x7a3/0x1630 kernel/signal.c:2891
arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:865
handle_signal_work kernel/entry/common.c:148 [inline]
exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
__syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x61/0xcb
The buggy address belongs to the object at ffff888143d104a0
which belongs to the cache vm_area_struct of size 232
The buggy address is located 60 bytes to the right of
232-byte region [ffff888143d104a0, ffff888143d10588)
The buggy address belongs to the page:
page:ffffea00050f4400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x143d10
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 0000000700000001 ffff8881001b4c00
raw: 0000000000000000 00000000000d000d 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 17438, ts 263733113240, free_ts 263709812374
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2600
prep_new_page mm/page_alloc.c:2606 [inline]
get_page_from_freelist+0x2ed2/0x2f90 mm/page_alloc.c:4474
__alloc_pages+0x206/0x5e0 mm/page_alloc.c:5765
allocate_slab mm/slub.c:1932 [inline]
new_slab+0x9a/0x4e0 mm/slub.c:1995
___slab_alloc+0x39e/0x830 mm/slub.c:3028
__slab_alloc+0x4a/0x90 mm/slub.c:3115
slab_alloc_node mm/slub.c:3206 [inline]
slab_alloc mm/slub.c:3248 [inline]
kmem_cache_alloc+0x134/0x200 mm/slub.c:3253
vm_area_dup+0x26/0x230 kernel/fork.c:367
dup_mmap kernel/fork.c:601 [inline]
dup_mm+0x81b/0x12c0 kernel/fork.c:1513
copy_mm+0x107/0x1b0 kernel/fork.c:1565
copy_process+0x12bc/0x3260 kernel/fork.c:2256
kernel_clone+0x21e/0x9e0 kernel/fork.c:2659
__do_sys_clone kernel/fork.c:2785 [inline]
__se_sys_clone kernel/fork.c:2769 [inline]
__x64_sys_clone+0x23f/0x290 kernel/fork.c:2769
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:1467 [inline]
free_pcp_prepare mm/page_alloc.c:1539 [inline]
free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3523
free_unref_page_list+0x14b/0xa60 mm/page_alloc.c:3660
release_pages+0x1310/0x1370 mm/swap.c:1009
free_pages_and_swap_cache+0x8a/0xa0 mm/swap_state.c:320
tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:240 [inline]
tlb_flush_mmu mm/mmu_gather.c:247 [inline]
tlb_finish_mmu+0x177/0x320 mm/mmu_gather.c:338
exit_mmap+0x3ef/0x6f0 mm/mmap.c:3211
__mmput+0x95/0x310 kernel/fork.c:1171
mmput+0x5b/0x170 kernel/fork.c:1194
exit_mm kernel/exit.c:551 [inline]
do_exit+0xbb4/0x2b60 kernel/exit.c:862
do_group_exit+0x141/0x310 kernel/exit.c:997
get_signal+0x7a3/0x1630 kernel/signal.c:2891
arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:865
handle_signal_work kernel/entry/common.c:148 [inline]
exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
__syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
Memory state around the buggy address:
ffff888143d10480: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00
ffff888143d10500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888143d10580: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00
^
ffff888143d10600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888143d10680: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb
==================================================================
general protection fault, probably for non-canonical address 0xe89c9cc41ffff113: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x44e50620ffff8898-0x44e50620ffff889f]
CPU: 1 PID: 15516 Comm: syz-executor.5 Tainted: G B 5.15.122-syzkaller-00676-g1463976ddc64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:vma_interval_tree_augment_compute_max mm/interval_tree.c:23 [inline]
RIP: 0010:vma_interval_tree_augment_propagate mm/interval_tree.c:23 [inline]
RIP: 0010:__rb_erase_augmented include/linux/rbtree_augmented.h:295 [inline]
RIP: 0010:rb_erase_augmented include/linux/rbtree_augmented.h:303 [inline]
RIP: 0010:rb_erase_augmented_cached include/linux/rbtree_augmented.h:314 [inline]
RIP: 0010:vma_interval_tree_remove+0x6d3/0xba0 mm/interval_tree.c:23
Code: 0d 00 4d 8d 74 1f ff 49 8b 5d 00 48 85 db 74 35 e8 72 99 cb ff 48 83 c3 18 48 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df <42> 80 3c 28 00 74 08 48 89 df e8 6e 30 0d 00 48 8b 03 4c 39 f0 4c
RSP: 0018:ffffc90001c77710 EFLAGS: 00010202
RAX: 089ca0c41ffff113 RBX: 44e50620ffff8899 RCX: ffff88814478cf00
RDX: 0000000000000000 RSI: 0000000000000282 RDI: 00000000ffffffff
RBP: ffffc90001c77778 R08: ffffffff8141615b R09: 0000000000000003
R10: fffffbfff0e5184c R11: dffffc0000000001 R12: ffff888143d1061c
R13: dffffc0000000000 R14: 0000017600000005 R15: 0000011affffffff
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555dc08f8 CR3: 000000015d867000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__remove_shared_vm_struct mm/mmap.c:158 [inline]
unlink_file_vma+0xd9/0xf0 mm/mmap.c:173
free_pgtables+0x13f/0x280 mm/memory.c:486
exit_mmap+0x3e7/0x6f0 mm/mmap.c:3210
__mmput+0x95/0x310 kernel/fork.c:1171
mmput+0x5b/0x170 kernel/fork.c:1194
exit_mm kernel/exit.c:551 [inline]
do_exit+0xbb4/0x2b60 kernel/exit.c:862
do_group_exit+0x141/0x310 kernel/exit.c:997
get_signal+0x7a3/0x1630 kernel/signal.c:2891
arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:865
handle_signal_work kernel/entry/common.c:148 [inline]
exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
__syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f8e7e4ddae9
Code: Unable to access opcode bytes at RIP 0x7f8e7e4ddabf.
RSP: 002b:00007f8e7d260178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f8e7e5fcf88 RCX: 00007f8e7e4ddae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f8e7e5fcf88
RBP: 00007f8e7e5fcf80 R08: 00007f8e7d2606c0 R09: 00007f8e7d2606c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8e7e5fcf8c
R13: 000000000000000b R14: 00007ffd37e1b410 R15: 00007ffd37e1b4f8
Modules linked in:
---[ end trace 5ffcc91d43504153 ]---
RIP: 0010:vma_interval_tree_augment_compute_max mm/interval_tree.c:23 [inline]
RIP: 0010:vma_interval_tree_augment_propagate mm/interval_tree.c:23 [inline]
RIP: 0010:__rb_erase_augmented include/linux/rbtree_augmented.h:295 [inline]
RIP: 0010:rb_erase_augmented include/linux/rbtree_augmented.h:303 [inline]
RIP: 0010:rb_erase_augmented_cached include/linux/rbtree_augmented.h:314 [inline]
RIP: 0010:vma_interval_tree_remove+0x6d3/0xba0 mm/interval_tree.c:23
Code: 0d 00 4d 8d 74 1f ff 49 8b 5d 00 48 85 db 74 35 e8 72 99 cb ff 48 83 c3 18 48 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df <42> 80 3c 28 00 74 08 48 89 df e8 6e 30 0d 00 48 8b 03 4c 39 f0 4c
RSP: 0018:ffffc90001c77710 EFLAGS: 00010202
RAX: 089ca0c41ffff113 RBX: 44e50620ffff8899 RCX: ffff88814478cf00
RDX: 0000000000000000 RSI: 0000000000000282 RDI: 00000000ffffffff
RBP: ffffc90001c77778 R08: ffffffff8141615b R09: 0000000000000003
R10: fffffbfff0e5184c R11: dffffc0000000001 R12: ffff888143d1061c
R13: dffffc0000000000 R14: 0000017600000005 R15: 0000011affffffff
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555dc08f8 CR3: 00000001108db000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 2 bytes skipped:
0: 4d 8d 74 1f ff lea -0x1(%r15,%rbx,1),%r14
5: 49 8b 5d 00 mov 0x0(%r13),%rbx
9: 48 85 db test %rbx,%rbx
c: 74 35 je 0x43
e: e8 72 99 cb ff call 0xffcb9985
13: 48 83 c3 18 add $0x18,%rbx
17: 48 89 d8 mov %rbx,%rax
1a: 48 c1 e8 03 shr $0x3,%rax
1e: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13
25: fc ff df
* 28: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2d: 74 08 je 0x37
2f: 48 89 df mov %rbx,%rdi
32: e8 6e 30 0d 00 call 0xd30a5
37: 48 8b 03 mov (%rbx),%rax
3a: 4c 39 f0 cmp %r14,%rax
3d: 4c rex.WR