syzbot


kernel BUG in mmap_region

Status: upstream: reported C repro on 2023/06/11 16:08
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+af3fbbcc17d7f34395be@syzkaller.appspotmail.com
First crash: 528d, last: 29d
Cause bisection: introduced by (bisect log) :
commit 2f5f352e6ab38f361d615b0ca691ccc69d094818
Author: Liam R. Howlett <Liam.Howlett@oracle.com>
Date: Thu May 18 14:55:44 2023 +0000

  FROMGIT: BACKPORT: mm: avoid rewalk in mmap_region

Crash: kernel BUG in mmap_region (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/28 android14-6.1 (ToT) c240f4ed0054 C [report] kernel BUG in mmap_region
2023/09/28 lts (merge base) b1644a0031cf C Didn't crash
2023/09/28 upstream (ToT) 633b47cb009d C Didn't crash
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/10/22 15:47 1h32m retest repro android14-6.1 report log
2024/10/22 15:47 9m retest repro android14-6.1 report log
2024/09/30 18:33 15m retest repro android14-6.1 report log
2024/09/16 14:55 1h38m retest repro android14-6.1 report log
2024/08/12 19:26 7m retest repro android14-6.1 report log
2024/08/12 19:26 10m retest repro android14-6.1 report log
2024/06/03 18:52 19m retest repro android14-6.1 report log
2024/06/03 18:52 5m retest repro android14-6.1 report log
2024/04/15 12:50 1h50m retest repro android14-6.1 report log
2024/03/23 23:24 9m retest repro android14-6.1 report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/07/13 05:36 1h17m bisect fix android14-6.1 OK (0) job log log
2024/05/20 17:50 39m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/mmap.c:2831!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 311 Comm: syz-executor394 Not tainted 6.1.93-syzkaller-00068-gb5e374dda921 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:mmap_region+0x2278/0x23a0 mm/mmap.c:2831
Code: 03 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 37 fb ff ff 48 89 df e8 89 72 09 00 e9 2a fb ff ff e8 6f 4c c2 ff 0f 0b e8 68 4c c2 ff <0f> 0b 65 8b 05 6f b8 4e 7e 41 89 c6 4c 89 f0 48 c1 e8 06 48 8d 3c
RSP: 0018:ffffc90000f67a40 EFLAGS: 00010293
RAX: ffffffff81b358e8 RBX: 0000000020b35fff RCX: ffff888109f1bcc0
RDX: 0000000000000000 RSI: 0000000020b35fff RDI: 0000000020b36000
RBP: ffffc90000f67c50 R08: ffffffff81b34511 R09: ffffffff850fbd43
R10: 0000000000000003 R11: ffff888109f1bcc0 R12: ffffc90000f67ba8
R13: dffffc0000000000 R14: 0000000020000000 R15: 0000000020b36000
FS:  00007fde4327b6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc3d1bcbc8 CR3: 0000000121424000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_mmap+0x853/0xe30 mm/mmap.c:1475
 vm_mmap_pgoff+0x208/0x430 mm/util.c:525
 ksys_mmap_pgoff+0xed/0x1e0 mm/mmap.c:1521
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
 __x64_sys_mmap+0x103/0x120 arch/x86/kernel/sys_x86_64.c:86
 x64_sys_call+0x67/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fde432c6229
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1b 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fde4327b1f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fde433456a8 RCX: 00007fde432c6229
RDX: 000000000200000f RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007fde433456a0 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000004008032 R11: 0000000000000246 R12: 00007fde4327b210
R13: 0000000000000001 R14: 5f646165726f6964 R15: 0030656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mmap_region+0x2278/0x23a0 mm/mmap.c:2831
Code: 03 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 37 fb ff ff 48 89 df e8 89 72 09 00 e9 2a fb ff ff e8 6f 4c c2 ff 0f 0b e8 68 4c c2 ff <0f> 0b 65 8b 05 6f b8 4e 7e 41 89 c6 4c 89 f0 48 c1 e8 06 48 8d 3c
RSP: 0018:ffffc90000f67a40 EFLAGS: 00010293
RAX: ffffffff81b358e8 RBX: 0000000020b35fff RCX: ffff888109f1bcc0
RDX: 0000000000000000 RSI: 0000000020b35fff RDI: 0000000020b36000
RBP: ffffc90000f67c50 R08: ffffffff81b34511 R09: ffffffff850fbd43
R10: 0000000000000003 R11: ffff888109f1bcc0 R12: ffffc90000f67ba8
R13: dffffc0000000000 R14: 0000000020000000 R15: 0000000020b36000
FS:  00007fde4327b6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc3d1bcbc8 CR3: 0000000121424000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (33):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/02 14:52 android14-6.1 b5e374dda921 1eda0d14 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 kernel BUG in mmap_region
2024/01/18 18:08 android14-6.1 899194d7e909 239abf84 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/09/28 11:04 android14-6.1 c240f4ed0054 c2ab1e5d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/06/11 15:57 android14-6.1 7641ff0a300a 49519f06 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/09/02 14:23 android14-6.1 b5e374dda921 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/03/09 23:18 android14-6.1 5f66e7c904ee 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/03/02 14:12 android14-6.1 09ca5740fbbe 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/02/27 02:11 android14-6.1 c622e98ddc8e da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/02/25 00:49 android14-6.1 8c0f9174731d 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/02/18 13:30 android14-6.1 92432f07d663 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/01/20 23:41 android14-6.1 aba5a3fe094e 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/01/19 10:17 android14-6.1 cfe8cce4e8a1 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2024/01/18 17:55 android14-6.1 899194d7e909 239abf84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/11/23 23:38 android14-6.1 95307ec5c864 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/11/18 05:07 android14-6.1 1b639e97b8fc cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/10/30 21:25 android14-6.1 9e4f6e1ef8ce b5729d82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/10/20 07:23 android14-6.1 7e1cb3bdec3c a42250d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/10/19 19:52 android14-6.1 f82e0808101f 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/10/15 12:20 android14-6.1 acb072863888 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/09/28 10:53 android14-6.1 c240f4ed0054 c2ab1e5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/09/17 01:03 android14-6.1 d3212c2dbaba 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/09/12 15:00 android14-6.1 2eb5b31ac1e3 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/08/30 03:44 android14-6.1 e0c4636bd239 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/08/28 06:33 android14-6.1 5ef132d5643b 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/08/19 20:54 android14-6.1 c2611a04b92f d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/07/20 07:04 android14-6.1 4a207efbe0b5 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/07/16 04:39 android14-6.1 f6707f352b54 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/07/11 23:19 android14-6.1 f3c6324daa33 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/07/04 22:05 android14-6.1 39385f756876 f99c2404 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/06/29 00:17 android14-6.1 251aa28d1640 ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/06/18 07:24 android14-6.1 35fe0d393f80 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/06/17 23:43 android14-6.1 35fe0d393f80 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
2023/06/11 15:45 android14-6.1 7641ff0a300a 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in mmap_region
* Struck through repros no longer work on HEAD.