syzbot


kernel BUG in mas_store_prealloc

Status: auto-obsoleted due to no activity on 2023/08/23 09:08
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+2f736716a2f39222a03a@syzkaller.appspotmail.com
First crash: 573d, last: 549d
Cause bisection: introduced by (bisect log) :
commit 1c87a6f82a4e9bb8074a596c0acdc39ef9334473
Author: Liam R. Howlett <Liam.Howlett@Oracle.com>
Date: Tue Apr 11 15:10:55 2023 +0000

  mm: enable maple tree RCU mode by default.

Crash: kernel BUG in mas_store_prealloc (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit aede79b81ecd09d5f505f4b440b787c07f600a22
Author: Liam R. Howlett <Liam.Howlett@oracle.com>
Date: Tue May 2 00:27:52 2023 +0000

  ANDROID: mm: Fix __vma_adjust() writes for the maple tree

  
Bug presence (2)
Date Name Commit Repro Result
2023/05/14 lts (merge base) be100a8460e3 C [report] kernel BUG in mas_store_prealloc
2023/05/14 upstream (ToT) f1fcbaa18b28 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in mas_store_prealloc origin:lts-only C inconclusive 8 520d 599d 0/3 upstream: reported C repro on 2023/04/15 06:32

Sample crash report:
------------[ cut here ]------------
kernel BUG at lib/maple_tree.c:5793!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 294 Comm: syz-executor448 Not tainted 6.1.25-syzkaller-00149-g6f4553626dbd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:mas_store_prealloc+0x3c0/0x420 lib/maple_tree.c:5793
Code: 48 89 df e8 82 f3 bd fc 48 8b 3b 48 c7 c6 73 0a 45 86 48 8b 54 24 10 31 c9 4c 8b 44 24 18 e8 97 8b ff ff eb 18 e8 30 91 78 fc <0f> 0b e8 c9 e4 08 00 e8 24 91 78 fc eb 34 e8 1d 91 78 fc 31 db 65
RSP: 0018:ffffc90000d17780 EFLAGS: 00010293
RAX: ffffffff84fb07a0 RBX: 0000000000000002 RCX: ffff88810e0e3900
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002
RBP: ffffc90000d17890 R08: ffffffff84fb0643 R09: fffffbfff0d0d40b
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff920001a2f43 R14: ffffffffffffffd2 R15: 1ffff920001a2ef4
FS:  0000555556c1d300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005f6b40 CR3: 0000000120a00000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vma_mas_store+0xe0/0x1e0 mm/mmap.c:434
 __vma_adjust+0xf81/0x1870 mm/mmap.c:789
 vma_merge+0x8ce/0x8f0
 mlock_fixup+0x210/0x530 mm/mlock.c:420
 apply_vma_lock_flags+0x327/0x480 mm/mlock.c:501
 do_mlock+0x4fc/0x650 mm/mlock.c:602
 __do_sys_mlock2 mm/mlock.c:629 [inline]
 __se_sys_mlock2 mm/mlock.c:619 [inline]
 __x64_sys_mlock2+0xb8/0xe0 mm/mlock.c:619
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7ed9c0b629
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdad0afec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000145
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f7ed9c0b629
RDX: 0000000000000000 RSI: 0000000000400000 RDI: 0000000020bfd000
RBP: 00007ffdad0afed0 R08: 0000000000000001 R09: 00007f7ed9bc0033
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mas_store_prealloc+0x3c0/0x420 lib/maple_tree.c:5793
Code: 48 89 df e8 82 f3 bd fc 48 8b 3b 48 c7 c6 73 0a 45 86 48 8b 54 24 10 31 c9 4c 8b 44 24 18 e8 97 8b ff ff eb 18 e8 30 91 78 fc <0f> 0b e8 c9 e4 08 00 e8 24 91 78 fc eb 34 e8 1d 91 78 fc 31 db 65
RSP: 0018:ffffc90000d17780 EFLAGS: 00010293
RAX: ffffffff84fb07a0 RBX: 0000000000000002 RCX: ffff88810e0e3900
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002
RBP: ffffc90000d17890 R08: ffffffff84fb0643 R09: fffffbfff0d0d40b
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff920001a2f43 R14: ffffffffffffffd2 R15: 1ffff920001a2ef4
FS:  0000555556c1d300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005f6b40 CR3: 0000000120a00000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/14 17:29 android14-6.1 6f4553626dbd 2b9ba477 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/06/03 15:25 android14-6.1 7b1489746079 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/28 22:01 android14-6.1 500484f5be02 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/24 04:12 android14-6.1 86a6bbdc8ffe 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/22 04:19 android14-6.1 cffbdd825e02 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/21 13:21 android14-6.1 cffbdd825e02 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/19 23:39 android14-6.1 bfbebce3f712 96689200 .config console log report info ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/17 13:54 android14-6.1 7d346b229c78 eaac4681 .config console log report info ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/16 15:03 android14-6.1 9e8fe54a710f 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/15 20:32 android14-6.1 81509f85f33a c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/14 17:21 android14-6.1 6f4553626dbd 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
2023/05/10 23:44 android14-6.1 dac17bb8f7c1 14b12a99 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mas_store_prealloc
* Struck through repros no longer work on HEAD.