lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHirt9i3q2Ny=m_kjCO=ARnO22Kmf-f2jVSGmYATG61euzh2gQ@mail.gmail.com>
Date: Tue, 9 Dec 2025 20:20:46 +0800
From: hev <r@....cc>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: Huacai Chen <chenhuacai@...nel.org>, WANG Xuerui <kernel@...0n.name>, 
	Alice Ryhl <aliceryhl@...gle.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, 
	Arve Hjønnevåg <arve@...roid.com>, 
	Todd Kjos <tkjos@...roid.com>, Christian Brauner <christian@...uner.io>, 
	Carlos Llamas <cmllamas@...gle.com>, Björn Roy Baron <bjorn3_gh@...tonmail.com>, 
	Danilo Krummrich <dakr@...nel.org>, Benno Lossin <lossin@...nel.org>, Boqun Feng <boqun.feng@...il.com>, 
	Andreas Hindborg <a.hindborg@...nel.org>, Trevor Gross <tmgross@...ch.edu>, loongarch@...ts.linux.dev, 
	rust-for-linux <rust-for-linux@...r.kernel.org>, 
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: Mainline loongarch64 defconfig+Rust build error

On Tue, Dec 9, 2025 at 6:58 PM Miguel Ojeda
<miguel.ojeda.sandonis@...il.com> wrote:
>
> Hi all,
>
> I am seeing in mainline loongarch64 defconfig+Rust the following build
> error [1].
>
> Cheers,
> Miguel
>
> [1]
>
>  error[E0425]: cannot find value `compat_ptr_ioctl` in crate `bindings`
>      --> drivers/android/binder/rust_binder_main.rs:317:38
>       |
> 317   |         compat_ioctl: Some(bindings::compat_ptr_ioctl),

It looks like the rust binder driver also needs to handle
!CONFIG_COMPAT. Here's a reference for that:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/rust/kernel/miscdevice.rs?h=v6.18#n410

>       |                                      ^^^^^^^^^^^^^^^^ help: a
> function with a similar name exists: `compat_sys_ioctl`
>       |
>      ::: /__w/quick/quick/linux/rust/bindings/bindings_generated.rs:78264:5
>       |
> 78264 |     pub fn compat_sys_ioctl(fd: ffi::c_uint, cmd: ffi::c_uint,
> arg: compat_ulong_t) -> ffi::c_long;
>       |     ----------------------------------------------------------------------------------------------
> similarly named function `compat_sys_ioctl` defined here
>

--
hev

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ