syzbot


general protection fault in anon_vma_clone

Status: auto-closed as invalid on 2022/04/11 18:34
Reported-by: syzbot+5f2e756399e4dfa500b3@syzkaller.appspotmail.com
First crash: 865d, last: 865d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in anon_vma_clone mm 1 447d 443d 0/26 auto-obsoleted due to no activity on 2023/04/04 16:58

Sample crash report:
swap_dup: Bad swap file entry 47ffc47fffff
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: 4417 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lock_anon_vma_root mm/rmap.c:233 [inline]
RIP: 0010:anon_vma_clone+0x111/0x5e0 mm/rmap.c:278
Code: 84 0b 02 00 00 e8 8f 3e d2 ff 49 8d 7d 08 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 f1 03 00 00 4d 8b 65 08 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 cf 03 00 00 4d 8b 3c 24 4c 8b 74 24 08 4d 39 fe
RSP: 0018:ffff88802218fb10 EFLAGS: 00010206
RAX: 00ee000ee817e796 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff819046e1 RDI: ffff888000103d98
RBP: ffff888232a89ee0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000033c50e8b R12: 0770007740bf3cb0
R13: ffff888000103d90 R14: ffff888232a89e80 R15: 0000000000000001
FS:  00007f4256a50700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4256a506b8 CR3: 0000000022123000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 00000000b8fecd19 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 anon_vma_fork+0x82/0x630 mm/rmap.c:332
 dup_mmap kernel/fork.c:504 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x360f/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f42580dae99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4256a50168 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f42581edf60 RCX: 00007f42580dae99
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f4258135031 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff361c720f R14: 00007f4256a50300 R15: 0000000000022000
Modules linked in:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
cgroup: fork rejected by pids controller in /system.slice/ssh.service
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 5403 Comm: syz-executor.3 Tainted: G      D           4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__anon_vma_interval_tree_insert mm/interval_tree.c:72 [inline]
RIP: 0010:anon_vma_interval_tree_insert+0x186/0x3d0 mm/interval_tree.c:83
Code: 03 80 3c 2a 00 0f 85 b1 01 00 00 49 8b 17 48 85 d2 0f 84 9e 00 00 00 48 89 d3 e8 05 e9 d8 ff 48 8d 7b 18 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 7e 01 00 00 4c 8b 7b 18 4c 89 e7 4c 89 fe e8 f1
RSP: 0018:ffff888022207ac8 EFLAGS: 00010206
RAX: 00ee000ee0000003 RBX: 0770007700000000 RCX: ffffffff81899ce5
RDX: 0000000000000000 RSI: ffffffff81899c6b RDI: 0770007700000018
RBP: dffffc0000000000 R08: 0000000000400200 R09: 000000055555699b
R10: 0000000000000006 R11: 0000000033c50e8b R12: 00000005555569bc
R13: 000000055555699b R14: ffff88820e373e70 R15: ffff888000103258
FS:  00007f4256a50700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f038 CR3: 0000000022140000 CR4: 00000000003426e0
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:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x360f/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f42580dae99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4256a50168 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f42581edf60 RCX: 00007f42580dae99
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f4258135031 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff361c720f R14: 00007f4256a50300 R15: 0000000000022000
Modules linked in:
---[ end trace b323742f79b355ae ]---
RIP: 0010:lock_anon_vma_root mm/rmap.c:233 [inline]
RIP: 0010:anon_vma_clone+0x111/0x5e0 mm/rmap.c:278
Code: 84 0b 02 00 00 e8 8f 3e d2 ff 49 8d 7d 08 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 f1 03 00 00 4d 8b 65 08 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 cf 03 00 00 4d 8b 3c 24 4c 8b 74 24 08 4d 39 fe
RSP: 0018:ffff88802218fb10 EFLAGS: 00010206
RAX: 00ee000ee817e796 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff819046e1 RDI: ffff888000103d98
RBP: ffff888232a89ee0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000033c50e8b R12: 0770007740bf3cb0
R13: ffff888000103d90 R14: ffff888232a89e80 R15: 0000000000000001
FS:  00007f4256a50700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8f213abfc0 CR3: 0000000022123000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 00000000b8fecd19 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	0b 02                	or     (%rdx),%eax
   2:	00 00                	add    %al,(%rax)
   4:	e8 8f 3e d2 ff       	callq  0xffd23e98
   9:	49 8d 7d 08          	lea    0x8(%r13),%rdi
   d:	48 89 f8             	mov    %rdi,%rax
  10:	48 c1 e8 03          	shr    $0x3,%rax
  14:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  18:	0f 85 f1 03 00 00    	jne    0x40f
  1e:	4d 8b 65 08          	mov    0x8(%r13),%r12
  22:	4c 89 e0             	mov    %r12,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2d:	0f 85 cf 03 00 00    	jne    0x402
  33:	4d 8b 3c 24          	mov    (%r12),%r15
  37:	4c 8b 74 24 08       	mov    0x8(%rsp),%r14
  3c:	4d 39 fe             	cmp    %r15,%r14

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/12 18:33 linux-4.19.y 3f8a27f9e27b 49ca1f59 .config console log report info ci2-linux-4-19 general protection fault in anon_vma_clone
* Struck through repros no longer work on HEAD.