syzbot


attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap

Status: internal: reported C repro on 2025/06/20 13:09
Reported-by: syzbot+d759b11d25fef25968c6@syzkaller.appspotmail.com
First crash: 12h24m, last: 19m
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/06/20 13:41 16m aliceryhl@google.com patch android16-6.12 OK log

Sample crash report:
rust_kernel: panicked at /syzkaller/managers/ci2-android-6-12-rust/kernel/rust/kernel/page_size_compat.rs:60:5:
attempt to add with overflow
------------[ cut here ]------------
kernel BUG at rust/helpers/bug.c:7!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 296 Comm: syz-executor342 Not tainted 6.12.23-syzkaller-g6c1c18fcb8b7 #0 ba78288b1e32eb9f88d3f8d8da6b79a037cd8362
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:rust_helper_BUG+0x8/0x10 rust/helpers/bug.c:7
Code: cc cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 ad c0 0d 69 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 <0f> 0b 66 0f 1f 44 00 00 b8 e7 04 44 e5 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900012af3f0 EFLAGS: 00010246
RAX: 000000000000008c RBX: 1ffff92000255e80 RCX: a0e2cb7bc482c300
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900012af3f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000255de4 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc900012af420 R15: ffffc900012af450
FS:  000055558b48e380(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bdaaa19000 CR3: 0000000100abc000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __rustc::rust_begin_unwind+0x15b/0x160 rust/kernel/lib.rs:128
 core::panicking::panic_fmt+0x84/0x90 usr/local/rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:75
 core::panicking::panic_const::panic_const_add_overflow+0xb2/0xc0 usr/local/rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:178
 kernel::page_size_compat::__page_align rust/kernel/page_size_compat.rs:60 [inline]
 <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap+0xe44/0xfb0 drivers/staging/android/ashmem_rust.rs:165
 call_mmap include/linux/fs.h:2188 [inline]
 mmap_file mm/internal.h:124 [inline]
 __mmap_region mm/mmap.c:1471 [inline]
 mmap_region+0x1371/0x1bd0 mm/mmap.c:1634
 do_mmap+0xb6d/0x13c0 mm/mmap.c:508
 vm_mmap_pgoff+0x38f/0x4e0 mm/util.c:594
 ksys_mmap_pgoff+0x166/0x1e0 mm/mmap.c:557
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:79 [inline]
 __x64_sys_mmap+0x121/0x140 arch/x86/kernel/sys_x86_64.c:79
 x64_sys_call+0x13bf/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:10
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fa1e5dcc329
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe5f66a878 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ffe5f66aa58 RCX: 00007fa1e5dcc329
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000200000701000
RBP: 00007fa1e5e3f610 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000012 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe5f66aa48 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rust_helper_BUG+0x8/0x10 rust/helpers/bug.c:7
Code: cc cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 ad c0 0d 69 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 <0f> 0b 66 0f 1f 44 00 00 b8 e7 04 44 e5 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900012af3f0 EFLAGS: 00010246
RAX: 000000000000008c RBX: 1ffff92000255e80 RCX: a0e2cb7bc482c300
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900012af3f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000255de4 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc900012af420 R15: ffffc900012af450
FS:  000055558b48e380(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bdaaa19000 CR3: 0000000100abc000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/20 13:01 android16-6.12 6c1c18fcb8b7 804b3919 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/21 00:43 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/21 00:33 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/21 00:23 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/21 00:03 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/21 00:00 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 23:44 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 22:24 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 22:19 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 21:54 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 21:53 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 21:32 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 21:02 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 18:22 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 16:57 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 16:17 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 15:54 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 15:26 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 14:07 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 13:56 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 12:39 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
2025/06/20 12:39 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in <ashmem_rust::Ashmem as kernel::miscdevice::MiscDevice>::mmap
* Struck through repros no longer work on HEAD.