[v6.1] kernel BUG in mas_store_prealloc

8 views
Skip to first unread message

syzbot

unread,
Apr 15, 2023, 2:33:00 AM4/15/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0102425ac76b Linux 6.1.24
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1277b07dc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f23561925d39903
dashboard link: https://syzkaller.appspot.com/bug?extid=3ca8dbb2b9ee242c4908
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/11b4f76a294e/disk-0102425a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/45c8eec62c60/vmlinux-0102425a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0a7b8f48ec43/Image-0102425a.gz.xz

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

------------[ cut here ]------------
kernel BUG at lib/maple_tree.c:5790!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 6085 Comm: syz-executor.2 Not tainted 6.1.24-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5790
lr : mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5790
sp : ffff800024e47520
x29: ffff800024e47600 x28: 1ffff000049c8eff x27: dfff800000000000
x26: ffff7000049c8ea8 x25: 000000002023c000 x24: 0000000000000001
x23: 1ffff000049c8eac x22: ffff800024e477f8 x21: ffffffffffffffd2
x20: 0000000000000002 x19: ffff800024e477e0 x18: 0000000000000000
x17: 0000aaaaac527fff x16: ffff8000084f4b7c x15: 0000000000000000
x14: 0000000000000002 x13: 0000000000000000 x12: 0000000000040000
x11: 000000000000142d x10: ffff800026934000 x9 : ffff80001205b3e4
x8 : 000000000000142e x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000002800
x2 : ffff0000c000d500 x1 : 0000000000000002 x0 : 0000000000000002
Call trace:
mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5790
vma_mas_store+0x19c/0x490 mm/mmap.c:434
__vma_adjust+0xec8/0x17a8 mm/mmap.c:789
vma_merge+0xabc/0xb4c
mlock_fixup+0x258/0x470 mm/mlock.c:420
apply_vma_lock_flags+0x2bc/0x3f8 mm/mlock.c:501
do_mlock+0x430/0x590 mm/mlock.c:602
__do_sys_mlock mm/mlock.c:616 [inline]
__se_sys_mlock mm/mlock.c:614 [inline]
__arm64_sys_mlock+0x60/0x78 mm/mlock.c:614
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 977b23cd 17ffff7b 940206d5 977b2a32 (d4210000)
---[ end trace 0000000000000000 ]---


---
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,
May 14, 2023, 2:01:45 PM5/14/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: bf4ad6fa4e53 Linux 6.1.28
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1291782c280000
kernel config: https://syzkaller.appspot.com/x/.config?x=ee1a89a0c6a2db67
dashboard link: https://syzkaller.appspot.com/bug?extid=3ca8dbb2b9ee242c4908
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1418bffa280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=167822be280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a7b85a636ba8/disk-bf4ad6fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a626aeb9d231/vmlinux-bf4ad6fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/78fbbffb9ee8/Image-bf4ad6fa.gz.xz

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

------------[ cut here ]------------
kernel BUG at lib/maple_tree.c:5789!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4222 Comm: syz-executor352 Not tainted 6.1.28-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5789
lr : mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5789
sp : ffff80001d957520
x29: ffff80001d957600 x28: 1ffff00003b2aeff x27: dfff800000000000
x26: ffff700003b2aea8 x25: 0000000020bfd000 x24: 0000000000000001
x23: 1ffff00003b2aeac x22: ffff80001d9577f8 x21: ffffffffffffffd2
x20: 0000000000000002 x19: ffff80001d9577e0 x18: 0000000000000000
x17: 0000ffffbaf6afff x16: ffff8000084faac0 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000001
x11: ff80800012065bec x10: 0000000000000000 x9 : ffff800012065bec
x8 : ffff0000d50ab780 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000002800
x2 : ffff0000c000d500 x1 : 0000000000000002 x0 : 0000000000000002
Call trace:
mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5789
vma_mas_store+0x19c/0x490 mm/mmap.c:434
__vma_adjust+0xec8/0x17a8 mm/mmap.c:789
vma_merge+0xabc/0xb4c
mlock_fixup+0x258/0x470 mm/mlock.c:420
apply_vma_lock_flags+0x2bc/0x3f8 mm/mlock.c:501
do_mlock+0x430/0x590 mm/mlock.c:602
__do_sys_mlock2 mm/mlock.c:629 [inline]
__se_sys_mlock2 mm/mlock.c:619 [inline]
__arm64_sys_mlock2+0xb4/0xd8 mm/mlock.c:619
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 977ac599 17ffff7b 94020721 977ac27e (d4210000)
---[ end trace 0000000000000000 ]---


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages