syzbot


general protection fault in mas_store_prealloc

Status: auto-obsoleted due to no activity on 2025/02/12 12:20
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+bc6bfc25a68b7a020ee1@syzkaller.appspotmail.com
First crash: 136d, last: 115d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 6.12.y v2] mm/mmap: fix __mmap_region() error handling in rare merge failure case 5 (5) 2024/11/20 12:32
[PATCH 6.12.y] mm/mmap: fix __mmap_region() error handling in rare merge failure case 7 (7) 2024/11/19 15:16
[syzbot] [mm?] general protection fault in mas_store_prealloc 7 (11) 2024/11/18 15:38
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/01/26 21:11 44m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/11/18 04:32 31m liam.howlett@oracle.com git://git.infradead.org/users/jedix/linux-maple.git arm64_kernelci_20241117 OK log
2024/11/18 04:07 1m liam.howlett@oracle.com http://git.infradead.org/users/jedix/linux-maple.git arm64_kernelci_20241117 error
2024/11/17 18:50 1h41m lorenzo.stoakes@oracle.com git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
RSP: 002b:00007f6072718038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f6071b35fa0 RCX: 00007f607197e819
RDX: 0000000000000001 RSI: 0000000000002000 RDI: 0000000020ffc000
RBP: 00007f6072718090 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 00007f6071b35fa0 R15: 00007f6071c5fa28
 </TASK>
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 9800 Comm: syz.3.765 Not tainted 6.12.0-syzkaller-03657-g43fb83c17ba2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:mt_slot_locked lib/maple_tree.c:795 [inline]
RIP: 0010:mas_slot_locked lib/maple_tree.c:808 [inline]
RIP: 0010:mas_store_prealloc+0xa46/0x1390 lib/maple_tree.c:5514
Code: c0 d0 35 8d be 1b 03 00 00 48 c7 c2 80 db 35 8d e8 4f f6 b0 f5 4b 8d 1c e7 48 89 d8 48 c1 e8 03 49 bf 00 00 00 00 00 fc ff df <42> 80 3c 38 00 74 08 48 89 df e8 fb 1a 3f f6 48 8b 1b 49 8d 7e 48
RSP: 0018:ffffc900043d7680 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff88801e7c8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900043d77f0 R08: ffffffff8bbff157 R09: 0000000000000000
R10: ffffc900043d7728 R11: fffff5200087aeee R12: 0000000000000000
R13: ffffc900043d7ae0 R14: ffffc900043d7720 R15: dffffc0000000000
FS:  00007f60727186c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6072717f98 CR3: 00000000785ee000 CR4: 00000000003526f0
DR0: fffffffffffffffd DR1: 0000000000000000 DR2: fffffffffffffffe
DR3: 000000007fffffff DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __mmap_region mm/mmap.c:1513 [inline]
 mmap_region+0x1caa/0x23f0 mm/mmap.c:1603
 do_mmap+0x8f0/0x1000 mm/mmap.c:496
 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588
 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:542
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f607197e819
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6072718038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f6071b35fa0 RCX: 00007f607197e819
RDX: 0000000000000001 RSI: 0000000000002000 RDI: 0000000020ffc000
RBP: 00007f6072718090 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 00007f6071b35fa0 R15: 00007f6071c5fa28
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mt_slot_locked lib/maple_tree.c:795 [inline]
RIP: 0010:mas_slot_locked lib/maple_tree.c:808 [inline]
RIP: 0010:mas_store_prealloc+0xa46/0x1390 lib/maple_tree.c:5514
Code: c0 d0 35 8d be 1b 03 00 00 48 c7 c2 80 db 35 8d e8 4f f6 b0 f5 4b 8d 1c e7 48 89 d8 48 c1 e8 03 49 bf 00 00 00 00 00 fc ff df <42> 80 3c 38 00 74 08 48 89 df e8 fb 1a 3f f6 48 8b 1b 49 8d 7e 48
RSP: 0018:ffffc900043d7680 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff88801e7c8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900043d77f0 R08: ffffffff8bbff157 R09: 0000000000000000
R10: ffffc900043d7728 R11: fffff5200087aeee R12: 0000000000000000
R13: ffffc900043d7ae0 R14: ffffc900043d7720 R15: dffffc0000000000
FS:  00007f60727186c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f78daa67d60 CR3: 00000000785ee000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c0 d0 35             	rcl    $0x35,%al
   3:	8d be 1b 03 00 00    	lea    0x31b(%rsi),%edi
   9:	48 c7 c2 80 db 35 8d 	mov    $0xffffffff8d35db80,%rdx
  10:	e8 4f f6 b0 f5       	call   0xf5b0f664
  15:	4b 8d 1c e7          	lea    (%r15,%r12,8),%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
  27:	fc ff df
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 fb 1a 3f f6       	call   0xf63f1b34
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	49 8d 7e 48          	lea    0x48(%r14),%rdi

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 08:45 upstream 43fb83c17ba2 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in mas_store_prealloc
2024/11/14 06:37 upstream f1b785f4c787 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in mas_store_prealloc
2024/11/23 09:51 upstream 06afb0f36106 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in mas_store_prealloc
2024/11/21 12:45 upstream 43fb83c17ba2 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in mas_store_prealloc
2024/11/19 08:41 upstream c6d64479d609 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in mas_store_prealloc
2024/11/13 10:36 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in mas_store_prealloc
2024/11/23 07:32 upstream 06afb0f36106 68da6d95 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in mas_store_prealloc
2024/12/04 12:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in mas_store_prealloc
2024/11/13 23:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8e9a54d7181b a8c99394 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in mas_store_prealloc
2024/11/13 23:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8e9a54d7181b a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in mas_store_prealloc
2024/11/13 23:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8e9a54d7181b a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in mas_store_prealloc
* Struck through repros no longer work on HEAD.