syzbot


general protection fault in vma_interval_tree_remove

Status: auto-closed as invalid on 2022/03/05 11:44
Reported-by: syzbot+b3efdb46ea0c9dd79ad2@syzkaller.appspotmail.com
First crash: 1112d, last: 1112d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in vma_interval_tree_remove origin:downstream C error 2071 1d15h 770d 0/2 upstream: reported C repro on 2022/10/12 19:12
upstream general protection fault in vma_interval_tree_remove mm C done 14 175d 934d 1/28 upstream: reported C repro on 2022/05/02 12:06

Sample crash report:
ntfs: (device loop3): parse_options(): Invalid mft_zone_multiplier. Using default value, i.e. 1.
kasan: CONFIG_KASAN_INLINE enabled
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 30012 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__rb_erase_color+0x20e/0xd80 lib/rbtree.c:370
Code: 89 ef 48 89 c5 e9 41 fe ff ff 4c 8d 45 10 4c 89 c0 48 c1 e8 03 80 3c 18 00 0f 85 05 08 00 00 4c 8b 65 10 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 07 08 00 00 49 8b 04 24 49 8d 7c 24 08 48 89 fa
RSP: 0018:ffff88802fcd7840 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff81898bba
RDX: ffffffff81897a50 RSI: ffff8880a1f757d0 RDI: ffff888000100e00
RBP: ffff888000100e00 R08: ffff888000100e10 R09: 0000000000000fff
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880a1f757d0 R14: ffffed10143eeafa R15: 0000000000000000
FS:  00007f590d4dc700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fca489c8000 CR3: 000000004c8d6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rb_erase_augmented_cached include/linux/rbtree_augmented.h:289 [inline]
 vma_interval_tree_remove+0x6c6/0xf10 mm/interval_tree.c:24
 unlink_file_vma+0x7f/0xb0 mm/mmap.c:162
 free_pgtables+0xea/0x2f0 mm/memory.c:639
 exit_mmap+0x2c8/0x530 mm/mmap.c:3094
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 exit_mm kernel/exit.c:549 [inline]
 do_exit+0xaec/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f590ff66ae9
Code: Bad RIP value.
RSP: 002b:00007f590d4dc218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f5910079f68 RCX: 00007f590ff66ae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f5910079f68
RBP: 00007f5910079f60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5910079f6c
R13: 00007ffde1744a5f R14: 00007f590d4dc300 R15: 0000000000022000
Modules linked in:
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 0 PID: 29995 Comm: syz-executor.5 Tainted: G      D           4.19.211-syzkaller #0
ntfs: (device loop1): parse_options(): The dmask option requires an argument.
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unmap_page_range+0xe9/0x2c50 mm/memory.c:1529
Code: e8 03 80 3c 18 00 0f 85 0f 26 00 00 48 8b 44 24 20 48 8b 58 40 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 dd 25 00 00 49 be 00 00 00 00 00 fc ff df 4c 89
RSP: 0018:ffff8880472ff770 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff818b8ca3
RDX: 000000000000000a RSI: ffffffff818b8cb1 RDI: 0000000000000050
RBP: ffff888000100460 R08: 0000000000000000 R09: 00007f590f0de000
R10: 0000000000000006 R11: 0000000000000000 R12: 00007f590f0de000
R13: 00007f590f0de000 R14: 00007f590f2de000 R15: 00007f590f0de000
FS:  00007f590d4dc700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f56b6fab718 CR3: 0000000238fa4000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 exit_mm kernel/exit.c:549 [inline]
 do_exit+0xaec/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f590ff66ae9
Code: Bad RIP value.
RSP: 002b:00007f590d4dc218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f5910079f68 RCX: 00007f590ff66ae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f5910079f68
RBP: 00007f5910079f60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5910079f6c
R13: 00007ffde1744a5f R14: 00007f590d4dc300 R15: 0000000000022000
Modules linked in:
caif:caif_disconnect_client(): nothing to disconnect
caif:caif_disconnect_client(): nothing to disconnect
---[ end trace 38824dd8cd0c2f42 ]---
RIP: 0010:__rb_erase_color+0x20e/0xd80 lib/rbtree.c:370
ntfs: (device loop1): parse_options(): The dmask option requires an argument.
Code: 89 ef 48 89 c5 e9 41 fe ff ff 4c 8d 45 10 4c 89 c0 48 c1 e8 03 80 3c 18 00 0f 85 05 08 00 00 4c 8b 65 10 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 07 08 00 00 49 8b 04 24 49 8d 7c 24 08 48 89 fa
RSP: 0018:ffff88802fcd7840 EFLAGS: 00010246
EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff81898bba
RDX: ffffffff81897a50 RSI: ffff8880a1f757d0 RDI: ffff888000100e00
---[ end trace 38824dd8cd0c2f43 ]---
RBP: ffff888000100e00 R08: ffff888000100e10 R09: 0000000000000fff
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000000
RIP: 0010:__rb_erase_color+0x20e/0xd80 lib/rbtree.c:370
R13: ffff8880a1f757d0 R14: ffffed10143eeafa R15: 0000000000000000
Code: 89 ef 48 89 c5 e9 41 fe ff ff 4c 8d 45 10 4c 89 c0 48 c1 e8 03 80 3c 18 00 0f 85 05 08 00 00 4c 8b 65 10 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 0f 85 07 08 00 00 49 8b 04 24 49 8d 7c 24 08 48 89 fa
FS:  00007f590d4dc700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RSP: 0018:ffff88802fcd7840 EFLAGS: 00010246
CR2: 00007fcccb781018 CR3: 000000008f4a8000 CR4: 00000000003406e0
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff81898bba
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
RDX: ffffffff81897a50 RSI: ffff8880a1f757d0 RDI: ffff888000100e00
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 ef                	mov    %ebp,%edi
   2:	48 89 c5             	mov    %rax,%rbp
   5:	e9 41 fe ff ff       	jmpq   0xfffffe4b
   a:	4c 8d 45 10          	lea    0x10(%rbp),%r8
   e:	4c 89 c0             	mov    %r8,%rax
  11:	48 c1 e8 03          	shr    $0x3,%rax
  15:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  19:	0f 85 05 08 00 00    	jne    0x824
  1f:	4c 8b 65 10          	mov    0x10(%rbp),%r12
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	0f 85 07 08 00 00    	jne    0x83b
  34:	49 8b 04 24          	mov    (%r12),%rax
  38:	49 8d 7c 24 08       	lea    0x8(%r12),%rdi
  3d:	48 89 fa             	mov    %rdi,%rdx

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