attempt to add with overflow in rust_binder::rust_binder_ioctl

Status: internal: reported C repro on 2026/10/15 06:41
Reported-by: syzbot+d39ca51f29c6b944a4f0@syzkaller.appspotmail.com
First crash: 17h43m, last: 13h42m
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
[PATCH] rust_binder: avoid overflow in get_node_debug_info() 2 (2) 2026/10/15 13:56

Sample crash report:
rust_kernel: panicked at drivers/android/binder/process.rs:1229:67:
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: 0 UID: 0 PID: 314 Comm: syz-executor304 Not tainted syzkaller #0 4acfbc369189e5cacd88ca5a92b3a107a9d116ed
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:__rustc::rust_begin_unwind+0xe9/0xf0 rust/kernel/lib.rs:135
Code: 48 c7 c7 40 fd 51 86 48 c7 c6 20 02 52 86 48 c7 c1 00 02 52 86 49 89 d8 e8 a4 00 00 00 66 43 c7 44 3c 04 f8 f8 e8 67 46 35 ff <0f> 0b 0f 1f 44 00 00 b8 75 d7 02 cd 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900011cf740 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc900011cf760 RCX: 556d167529672c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900011cf7f0 R08: ffffc900011cf387 R09: 1ffff92000239e70
R10: dffffc0000000000 R11: fffff52000239e71 R12: 1ffff92000239ee8
R13: ffffc900011cf780 R14: 0000000000000000 R15: dffffc0000000000
FS:  000055555dc943c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000062b5d8 CR3: 0000000122ec8000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 core::panicking::panic_fmt+0xb6/0xc0 usr/local/rustup/toolchains/1.96.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:80
 core::panicking::panic_const::panic_const_add_overflow+0x26/0x30 usr/local/rustup/toolchains/1.96.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:175
 <rust_binder::process::Process>::get_node_debug_info drivers/android/binder/process.rs:1229 [inline]
 <rust_binder::process::Process>::ioctl_write_read drivers/android/binder/process.rs:1715 [inline]
 <rust_binder::process::Process>::ioctl drivers/android/binder/process.rs:1783 [inline]
 rust_binder::rust_binder_ioctl+0x3a2c/0x4200 drivers/android/binder/rust_binder_main.rs:488
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892
 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892
 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:47 [inline]
 do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fc563b47c89
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcc2670568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000020 RCX: 00007fc563b47c89
RDX: 00002000000004c0 RSI: 00000000c018620b RDI: 0000000000000003
RBP: 00002000000004c0 R08: 000055555dc95680 R09: 000055555dc95680
R10: 000055555dc95680 R11: 0000000000000246 R12: 00007fc563bb0e1b
R13: 00007fc563baf0a7 R14: 00007ffcc2670580 R15: 00007ffcc2670590
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__rustc::rust_begin_unwind+0xe9/0xf0 rust/kernel/lib.rs:135
Code: 48 c7 c7 40 fd 51 86 48 c7 c6 20 02 52 86 48 c7 c1 00 02 52 86 49 89 d8 e8 a4 00 00 00 66 43 c7 44 3c 04 f8 f8 e8 67 46 35 ff <0f> 0b 0f 1f 44 00 00 b8 75 d7 02 cd 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900011cf740 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc900011cf760 RCX: 556d167529672c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900011cf7f0 R08: ffffc900011cf387 R09: 1ffff92000239e70
R10: dffffc0000000000 R11: fffff52000239e71 R12: 1ffff92000239ee8
R13: ffffc900011cf780 R14: 0000000000000000 R15: dffffc0000000000
FS:  000055555dc943c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000062b5d8 CR3: 0000000122ec8000 CR4: 00000000003526b0

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/15 04:48 android16-6.12 4fc23344fdfc 8fb0ae89 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in rust_binder::rust_binder_ioctl
2026/10/15 04:02 android16-6.12 4fc23344fdfc 8fb0ae89 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in rust_binder::rust_binder_ioctl
2026/10/15 03:20 android16-6.12 4fc23344fdfc 8fb0ae89 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in rust_binder::rust_binder_ioctl
2026/10/15 06:39 android16-6.12 4fc23344fdfc 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in rust_binder::rust_binder_ioctl
2026/10/15 04:55 android16-6.12 4fc23344fdfc 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in rust_binder::rust_binder_ioctl
2026/10/15 02:38 android16-6.12 4fc23344fdfc 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust attempt to add with overflow in rust_binder::rust_binder_ioctl
* Struck through repros no longer work on HEAD.