general protection fault in vma_interval_tree_remove

13 views
Skip to first unread message

syzbot

unread,
Nov 5, 2021, 7:44:36 AM11/5/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=115fd946b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=b3efdb46ea0c9dd79ad2
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b3efdb...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 5, 2022, 6:44:13 AM3/5/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages