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: <20251019213049.2060970-1-ojeda@kernel.org>
Date: Sun, 19 Oct 2025 23:30:49 +0200
From: Miguel Ojeda <ojeda@...nel.org>
To: tamird@...nel.org,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	"Rafael J. Wysocki" <rafael@...nel.org>,
	Danilo Krummrich <dakr@...nel.org>,
	Miguel Ojeda <ojeda@...nel.org>,
	Alex Gaynor <alex.gaynor@...il.com>
Cc: Liam.Howlett@...cle.com,
	a.hindborg@...nel.org,
	airlied@...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,
	dri-devel@...ts.freedesktop.org,
	gary@...yguo.net,
	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,
	peterz@...radead.org,
	russ.weight@...ux.dev,
	rust-for-linux@...r.kernel.org,
	sboyd@...nel.org,
	simona@...ll.ch,
	surenb@...gle.com,
	tamird@...il.com,
	tkjos@...roid.com,
	tmgross@...ch.edu,
	urezki@...il.com,
	vbabka@...e.cz,
	vireshk@...nel.org,
	viro@...iv.linux.org.uk,
	will@...nel.org,
	patches@...ts.linux.dev
Subject: [PATCH] samples: rust: debugfs: use `core::ffi::CStr` method names

Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoiding methods that only exist on the latter.

This backslid in commit d4a5d397c7fb ("samples: rust: Add scoped debugfs
sample driver").

Signed-off-by: Miguel Ojeda <ojeda@...nel.org>
---
 samples/rust/rust_debugfs_scoped.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/rust/rust_debugfs_scoped.rs b/samples/rust/rust_debugfs_scoped.rs
index b0c4e76b123e..eb870e9986b8 100644
--- a/samples/rust/rust_debugfs_scoped.rs
+++ b/samples/rust/rust_debugfs_scoped.rs
@@ -38,7 +38,7 @@ fn remove_file_write(
     mod_data
         .devices
         .lock()
-        .retain(|device| device.name.as_bytes() != to_remove.as_bytes());
+        .retain(|device| device.name.to_bytes() != to_remove.to_bytes());
     Ok(())
 }
 

base-commit: b214b442f2fa78aad04ebe1b5cad2c1d94120cb7
-- 
2.51.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ