syzbot


general protection fault in anon_vma_interval_tree_insert

Status: auto-closed as invalid on 2021/09/09 17:59
Reported-by: syzbot+b89160b32010bb0c57b4@syzkaller.appspotmail.com
First crash: 509d, last: 509d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in anon_vma_interval_tree_insert 1 534d 534d 0/1 auto-closed as invalid on 2021/08/16 07:22
upstream general protection fault in anon_vma_interval_tree_insert 3 750d 827d 0/24 auto-closed as invalid on 2020/12/13 06:13
upstream general protection fault in anon_vma_interval_tree_insert (2) 4 312d 395d 0/24 auto-closed as invalid on 2022/02/24 00:52
upstream KASAN: use-after-free Read in anon_vma_interval_tree_insert 1 144d 143d 0/24 auto-closed as invalid on 2022/07/11 21:59
upstream KASAN: use-after-free Read in anon_vma_interval_tree_insert (2) 2 29d 81d 0/24 moderation: reported on 2022/07/14 12:09
linux-4.19 KASAN: slab-out-of-bounds Read in anon_vma_interval_tree_insert 1 282d 282d 0/1 auto-closed as invalid on 2022/04/24 23:41

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8158 Comm: syz-executor.1 Not tainted 4.19.190-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
base_sock_release(000000009a9271f3) sk=000000006deac75d
RIP: 0010:vma_start_pgoff mm/interval_tree.c:16 [inline]
RIP: 0010:avc_start_pgoff mm/interval_tree.c:64 [inline]
RIP: 0010:__anon_vma_interval_tree_insert mm/interval_tree.c:72 [inline]
RIP: 0010:anon_vma_interval_tree_insert+0x1d9/0x3d0 mm/interval_tree.c:83
Code: f8 d8 ff 48 8d 7b e0 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 68 01 00 00 4c 8b 7b e0 49 8d bf 98 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 2a 00 0f 85 42 01 00 00 4d 8b bf 98 00 00 00 4c 89 ef 4c 89
RSP: 0018:ffff88807f0dfac8 EFLAGS: 00010a02
RAX: 1ffff1100002dbea RBX: ffff88800016df70 RCX: ffffffff818965bf
RDX: 1fe0000000000013 RSI: ffffffff818965d2 RDI: ff00000000000098
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000001e37
R10: 0000000000000006 R11: 0000000036ac3308 R12: 0000000000001e37
R13: 0000000000001e16 R14: ffff88809715f690 R15: ff00000000000000
FS:  0000000001e16400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcf4baaff8 CR3: 000000007f0bf000 CR4: 00000000001406f0
base_sock_release(000000007936c4ad) sk=00000000f6db71fd
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 anon_vma_chain_link mm/rmap.c:144 [inline]
 anon_vma_clone+0x23f/0x5e0 mm/rmap.c:279
 anon_vma_fork+0x82/0x630 mm/rmap.c:332
 dup_mmap kernel/fork.c:504 [inline]
 dup_mm kernel/fork.c:1284 [inline]
 copy_mm kernel/fork.c:1340 [inline]
 copy_process.part.0+0x360f/0x8260 kernel/fork.c:1912
 copy_process kernel/fork.c:1709 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2218
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x464beb
Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00
base_sock_release(0000000016dac872) sk=000000000929fe87
RSP: 002b:00007ffca8886520 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000464beb
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000001e16400
R10: 0000000001e166d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffca8886610
Modules linked in:
---[ end trace dfca75285faaf647 ]---
RIP: 0010:vma_start_pgoff mm/interval_tree.c:16 [inline]
RIP: 0010:avc_start_pgoff mm/interval_tree.c:64 [inline]
RIP: 0010:__anon_vma_interval_tree_insert mm/interval_tree.c:72 [inline]
RIP: 0010:anon_vma_interval_tree_insert+0x1d9/0x3d0 mm/interval_tree.c:83
Code: f8 d8 ff 48 8d 7b e0 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 68 01 00 00 4c 8b 7b e0 49 8d bf 98 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 2a 00 0f 85 42 01 00 00 4d 8b bf 98 00 00 00 4c 89 ef 4c 89
base_sock_release(0000000082de5bc3) sk=0000000011f4544a
RSP: 0018:ffff88807f0dfac8 EFLAGS: 00010a02
RAX: 1ffff1100002dbea RBX: ffff88800016df70 RCX: ffffffff818965bf
RDX: 1fe0000000000013 RSI: ffffffff818965d2 RDI: ff00000000000098
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000001e37
R10: 0000000000000006 R11: 0000000036ac3308 R12: 0000000000001e37
R13: 0000000000001e16 R14: ffff88809715f690 R15: ff00000000000000
FS:  0000000001e16400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055929acc5ca0 CR3: 000000007f0bf000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/05/12 17:58 linux-4.19.y 3c8c23092588 86294427 .config log report info general protection fault in anon_vma_interval_tree_insert
* Struck through repros no longer work on HEAD.