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: <20251018180303.3615403-1-aliceryhl@google.com>
Date: Sat, 18 Oct 2025 18:03:03 +0000
From: Alice Ryhl <aliceryhl@...gle.com>
To: tamird@...il.com
Cc: Liam.Howlett@...cle.com, a.hindborg@...nel.org, airlied@...il.com, 
	alex.gaynor@...il.com, aliceryhl@...gle.com, arve@...roid.com, 
	axboe@...nel.dk, bhelgaas@...gle.com, bjorn3_gh@...tonmail.com, 
	boqun.feng@...il.com, brauner@...nel.org, broonie@...nel.org, 
	cmllamas@...gle.com, dakr@...nel.org, dri-devel@...ts.freedesktop.org, 
	gary@...yguo.net, gregkh@...uxfoundation.org, jack@...e.cz, 
	joelagnelf@...dia.com, justinstitt@...gle.com, kwilczynski@...nel.org, 
	leitao@...ian.org, lgirdwood@...il.com, linux-block@...r.kernel.org, 
	linux-clk@...r.kernel.org, linux-fsdevel@...r.kernel.org, 
	linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org, 
	linux-pm@...r.kernel.org, llvm@...ts.linux.dev, longman@...hat.com, 
	lorenzo.stoakes@...cle.com, lossin@...nel.org, maco@...roid.com, 
	mcgrof@...nel.org, mingo@...hat.com, mmaurer@...gle.com, morbo@...gle.com, 
	mturquette@...libre.com, nathan@...nel.org, nick.desaulniers+lkml@...il.com, 
	nm@...com, ojeda@...nel.org, peterz@...radead.org, rafael@...nel.org, 
	russ.weight@...ux.dev, rust-for-linux@...r.kernel.org, sboyd@...nel.org, 
	simona@...ll.ch, surenb@...gle.com, tkjos@...roid.com, tmgross@...ch.edu, 
	urezki@...il.com, vbabka@...e.cz, vireshk@...nel.org, viro@...iv.linux.org.uk, 
	will@...nel.org
Subject: [PATCH v18 12/16] rust: configfs: use `CStr::as_char_ptr`

From: Tamir Duberstein <tamird@...il.com>

Replace the use of `as_ptr` which works through `<CStr as
Deref<Target=&[u8]>::deref()` in preparation for replacing
`kernel::str::CStr` with `core::ffi::CStr` as the latter does not
implement `Deref<Target=&[u8]>`.

Signed-off-by: Tamir Duberstein <tamird@...il.com>
Signed-off-by: Alice Ryhl <aliceryhl@...gle.com>
---
 rust/kernel/configfs.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/kernel/configfs.rs b/rust/kernel/configfs.rs
index 10f1547ca9f1..466fb7f40762 100644
--- a/rust/kernel/configfs.rs
+++ b/rust/kernel/configfs.rs
@@ -157,7 +157,7 @@ pub fn new(
                     unsafe {
                         bindings::config_group_init_type_name(
                             &mut (*place.get()).su_group,
-                            name.as_ptr(),
+                            name.as_char_ptr(),
                             item_type.as_ptr(),
                         )
                     };
-- 
2.51.0.915.g61a8936c21-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ