BUG: unable to handle kernel paging request in vma_interval_tree_insert_after

8 views
Skip to first unread message

syzbot

unread,
Oct 12, 2022, 1:34:44 PM10/12/22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 43eb03f7ce81 Merge 5.15.72 into android13-5.15-lts
git tree: android13-5.15-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=13901162880000
kernel config: https://syzkaller.appspot.com/x/.config?x=a1f5e2a41a2f89af
dashboard link: https://syzkaller.appspot.com/bug?extid=d764d4598c1184d8a6b0
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=118c8578880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1607c994880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e6914a80f72e/disk-43eb03f7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c0b71dce9a71/vmlinux-43eb03f7.xz

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

general protection fault, probably for non-canonical address 0xe195a97d20000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0cad6be900000008-0x0cad6be90000000f]
CPU: 1 PID: 1424 Comm: syz-executor332 Not tainted 5.15.72-syzkaller-04310-g43eb03f7ce81 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:__rb_insert lib/rbtree.c:115 [inline]
RIP: 0010:__rb_insert_augmented+0x9b/0x670 lib/rbtree.c:459
Code: e8 7a e3 2c ff 4d 8b 27 41 f6 c4 01 0f 85 b5 05 00 00 48 89 5d a8 4c 89 75 b8 4c 89 7d d0 4d 8d 7c 24 08 4d 89 fe 49 c1 ee 03 <43> 80 3c 2e 00 74 08 4c 89 ff e8 46 e3 2c ff 49 8b 1f 48 3b 5d d0
RSP: 0018:ffffc90002db78a0 EFLAGS: 00010202
RAX: 1ffff110238c37c7 RBX: 1ffff11020d73e9e RCX: dffffc0000000000
RDX: ffffffff81a6fa00 RSI: ffff8881098f5af0 RDI: ffff88811ccc1ac0
RBP: ffffc90002db7908 R08: dffffc0000000000 R09: ffff88811ccc1ac8
R10: ffffed102399835b R11: 1ffff11023998359 R12: 0cad6be900000000
R13: dffffc0000000000 R14: 0195ad7d20000001 R15: 0cad6be900000008
FS: 00007f10131a0700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f101319ffc8 CR3: 000000011ce32000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
rb_insert_augmented include/linux/rbtree_augmented.h:50 [inline]
vma_interval_tree_insert_after+0x2cd/0x2e0 mm/interval_tree.c:57
dup_mmap+0x8bd/0xea0 kernel/fork.c:621
dup_mm+0x91/0x330 kernel/fork.c:1502
copy_mm+0x108/0x1b0 kernel/fork.c:1554
copy_process+0x1295/0x3250 kernel/fork.c:2245
kernel_clone+0x22d/0x990 kernel/fork.c:2646
__do_sys_clone kernel/fork.c:2772 [inline]
__se_sys_clone kernel/fork.c:2756 [inline]
__x64_sys_clone+0x289/0x310 kernel/fork.c:2756
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f10131fb5d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f10131a01e8 EFLAGS: 00000246
ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f1013284248 RCX: 00007f10131fb5d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000f0aa1080
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000003338
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe62ccffef R14: 00007f10131a0300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 358914a7c59deb9f ]---
RIP: 0010:__rb_insert lib/rbtree.c:115 [inline]
RIP: 0010:__rb_insert_augmented+0x9b/0x670 lib/rbtree.c:459
Code: e8 7a e3 2c ff 4d 8b 27 41 f6 c4 01 0f 85 b5 05 00 00 48 89 5d a8 4c 89 75 b8 4c 89 7d d0 4d 8d 7c 24 08 4d 89 fe 49 c1 ee 03 <43> 80 3c 2e 00 74 08 4c 89 ff e8 46 e3 2c ff 49 8b 1f 48 3b 5d d0
RSP: 0018:ffffc90002db78a0 EFLAGS: 00010202
RAX: 1ffff110238c37c7 RBX: 1ffff11020d73e9e RCX: dffffc0000000000
RDX: ffffffff81a6fa00 RSI: ffff8881098f5af0 RDI: ffff88811ccc1ac0
RBP: ffffc90002db7908 R08: dffffc0000000000 R09: ffff88811ccc1ac8
R10: ffffed102399835b R11: 1ffff11023998359 R12: 0cad6be900000000
R13: dffffc0000000000 R14: 0195ad7d20000001 R15: 0cad6be900000008
FS: 00007f10131a0700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555563b93b8 CR3: 000000011ce32000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e8 7a e3 2c ff callq 0xff2ce37f
5: 4d 8b 27 mov (%r15),%r12
8: 41 f6 c4 01 test $0x1,%r12b
c: 0f 85 b5 05 00 00 jne 0x5c7
12: 48 89 5d a8 mov %rbx,-0x58(%rbp)
16: 4c 89 75 b8 mov %r14,-0x48(%rbp)
1a: 4c 89 7d d0 mov %r15,-0x30(%rbp)
1e: 4d 8d 7c 24 08 lea 0x8(%r12),%r15
23: 4d 89 fe mov %r15,%r14
26: 49 c1 ee 03 shr $0x3,%r14
* 2a: 43 80 3c 2e 00 cmpb $0x0,(%r14,%r13,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 4c 89 ff mov %r15,%rdi
34: e8 46 e3 2c ff callq 0xff2ce37f
39: 49 8b 1f mov (%r15),%rbx
3c: 48 3b 5d d0 cmp -0x30(%rbp),%rbx


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages