syzbot


kernel BUG in mas_store_prealloc

Status: upstream: reported C repro on 2023/04/15 06:32
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+3ca8dbb2b9ee242c4908@syzkaller.appspotmail.com
First crash: 436d, last: 358d
Bug presence (2)
Date Name Commit Repro Result
2023/05/17 linux-6.1.y (ToT) fa74641fb6b9 C [report] kernel BUG in mas_store_prealloc
2023/05/17 upstream (ToT) f1fcbaa18b28 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 kernel BUG in mas_store_prealloc origin:lts C done done 12 387d 407d 0/2 auto-obsoleted due to no activity on 2023/08/23 09:08
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/09/03 06:25 1h12m fix candidate upstream job log (0)

Sample crash report:
------------[ 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 ]---

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/14 18:01 linux-6.1.y bf4ad6fa4e53 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
2023/06/17 22:16 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in mas_store_prealloc
2023/06/11 07:11 linux-6.1.y 2f3918bc53fb 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
2023/07/02 11:34 linux-6.1.y 0f4ac6b4c5f0 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
2023/06/07 13:43 linux-6.1.y 76ba310227d2 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
2023/06/05 08:16 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
2023/05/24 11:56 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
2023/04/15 06:32 linux-6.1.y 0102425ac76b ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in mas_store_prealloc
* Struck through repros no longer work on HEAD.