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] [thread-next>] [day] [month] [year] [list]
Message-Id: <DASY61F7W9N7.1LP3VIKAZ9UA7@kernel.org>
Date: Sun, 22 Jun 2025 11:16:44 +0200
From: "Benno Lossin" <lossin@...nel.org>
To: Onur Özkan <work@...rozkan.dev>,
 <linux-kernel@...r.kernel.org>, <rust-for-linux@...r.kernel.org>
Cc: <ojeda@...nel.org>, <alex.gaynor@...il.com>, <boqun.feng@...il.com>,
 <gary@...yguo.net>, <a.hindborg@...nel.org>, <aliceryhl@...gle.com>,
 <tmgross@...ch.edu>, <dakr@...nel.org>, <peterz@...radead.org>,
 <mingo@...hat.com>, <will@...nel.org>, <longman@...hat.com>,
 <felipe_life@...e.com>, <daniel@...lak.dev>, <bjorn3_gh@...tonmail.com>,
 "Lyude" <thatslyude@...il.com>
Subject: Re: [PATCH v5 0/3] rust: add `ww_mutex` support

On Sat Jun 21, 2025 at 8:44 PM CEST, Onur Özkan wrote:
> This patch series implements Rust abstractions for kernel's
> wound/wait mutex (ww_mutex) implementation.
>
> Changes in v5:
> - Addressed documentation review notes.
> - Removed `unwrap()`s in examples and KUnit tests.
>
> Suggested-by: Lyude <thatslyude@...il.com>
> Link: https://rust-for-linux.zulipchat.com/#narrow/channel/291566-Library/topic/Writing.20up.20wrappers.20for.20ww_mutex.3F/with/524269974
>
> Onur Özkan (3):
>   rust: add C wrappers for `ww_mutex` inline functions
>   implement ww_mutex abstraction for the Rust tree
>   add KUnit coverage on Rust `ww_mutex` implementation
>
>  rust/helpers/helpers.c            |   3 +-
>  rust/helpers/ww_mutex.c           |  39 +++
>  rust/kernel/error.rs              |   1 +
>  rust/kernel/sync/lock.rs          |   1 +
>  rust/kernel/sync/lock/ww_mutex.rs | 541 ++++++++++++++++++++++++++++++
>  5 files changed, 584 insertions(+), 1 deletion(-)
>  create mode 100644 rust/helpers/ww_mutex.c
>  create mode 100644 rust/kernel/sync/lock/ww_mutex.rs

Please don't send new versions with this frequency, give others time to
reply and wait until discussion dies down.

---
Cheers,
Benno

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ