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: <6853586e9d366_1f9e10087@dwillia2-xfh.jf.intel.com.notmuch>
Date: Wed, 18 Jun 2025 17:23:10 -0700
From: Dan Williams <dan.j.williams@...el.com>
To: Marc Herbert <marc.herbert@...ux.intel.com>, Greg KH
	<gregkh@...uxfoundation.org>
CC: Miguel Ojeda <ojeda@...nel.org>, <Benjamin.Cheatham@....com>,
	<Jonathan.Cameron@...wei.com>, <dakr@...nel.org>, <dan.j.williams@...el.com>,
	<linux-acpi@...r.kernel.org>, <linux-cxl@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, <rafael.j.wysocki@...el.com>,
	<rafael@...nel.org>, <sudeep.holla@....com>, Dan Carpenter
	<dan.carpenter@...aro.org>, Kees Cook <kees@...nel.org>
Subject: Re: [PATCH] driver core: faux: fix Undefined Behavior in
 faux_device_destroy()

Marc Herbert wrote:
[..]
> In other words, by turning this off unconditionally at the global level,
> the kernel could actually lose (surprise!) some performance.

I expect the answer is that any compiler that does fail to convert this
to defined behavior is not suitable for compiling the kernel.

The issue is not "oh hey, this fixup in this case is tiny", it is
"changing this precedent implicates a large flag day audit". I am
certain this is one of many optimizations that the kernel is willing to
sacrifice.

Otherwise, the massive effort to remove undefined behavior from the
kernel and allow for complier optimzations around that removal is called
the "Rust for Linux" project.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ