rust_binder: Failure when writing BR_NOOP at beginning of buffer. rust_binder: Read failure Err(EFAULT) in pid:2 rust_kernel: panicked at drivers/android/binder/node.rs:877:13: attempt to subtract 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: 18748 Comm: syz.8.23161 Not tainted 6.12.30-syzkaller-g1d4f4d446dbd #0 c93aecf919cd453af8c9b0d1ce6d9747cbb4dbdf 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: ce 82 e7 02 cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 2b 2b a5 3c 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 61 ef ec b0 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000e395a90 EFLAGS: 00010246 RAX: 0000000000000061 RBX: 1ffff92001c72b54 RCX: 9d57b2f47ced0100 RDX: ffffc90012987000 RSI: 0000000000006946 RDI: 0000000000006947 RBP: ffffc9000e395a90 R08: ffffc9000e395787 R09: 1ffff92001c72af0 R10: dffffc0000000000 R11: fffff52001c72af1 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc9000e395ac0 R15: ffffc9000e395af0 FS: 00007f15313fa6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563f37039420 CR3: 000000015ae7a000 CR4: 00000000003526b0 DR0: 0000800000000000 DR1: 0000000000000008 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __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_sub_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 ::update drivers/android/binder/node.rs:877 [inline] ::update_ref+0x17e5/0x1860 drivers/android/binder/process.rs:913 ::write drivers/android/binder/thread.rs:1470 [inline] ::write_read+0x278d/0x9d20 drivers/android/binder/thread.rs:1581 ::ioctl_write_read drivers/android/binder/process.rs:1535 [inline] ::ioctl+0x411/0x2c20 drivers/android/binder/process.rs:1596 rust_binder::rust_binder_unlocked_ioctl+0xa0/0x100 drivers/android/binder/rust_binder.rs:445 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x135/0x1b0 fs/ioctl.c:893 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:893 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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:0x7f153058e929 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:00007f15313fa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f15307b5fa0 RCX: 00007f153058e929 RDX: 00002000000004c0 RSI: 00000000c0306201 RDI: 0000000000000004 RBP: 00007f1530610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f15307b5fa0 R15: 00007ffe32c5f5d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:rust_helper_BUG+0x8/0x10 rust/helpers/bug.c:7 Code: ce 82 e7 02 cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 2b 2b a5 3c 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 61 ef ec b0 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000e395a90 EFLAGS: 00010246 RAX: 0000000000000061 RBX: 1ffff92001c72b54 RCX: 9d57b2f47ced0100 RDX: ffffc90012987000 RSI: 0000000000006946 RDI: 0000000000006947 RBP: ffffc9000e395a90 R08: ffffc9000e395787 R09: 1ffff92001c72af0 R10: dffffc0000000000 R11: fffff52001c72af1 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc9000e395ac0 R15: ffffc9000e395af0 FS: 00007f15313fa6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f22d9ee7d60 CR3: 000000015ae7a000 CR4: 00000000003526b0 DR0: 0000000000000000 DR1: 0000000000000099 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400