Thread (7 messages) read the whole thread 7 messages, 4 authors, 2025-09-19

Re: [PATCH] rv: Fix boot failure when kernel lockdown is active

From: Gabriele Monaco <gmonaco@redhat.com>
Date: 2025-09-19 08:52:39
Also in: lkml

On Thu, 2025-09-18 at 11:48 +0200, Tomas Glozar wrote:
čt 18. 9. 2025 v 10:36 odesílatel Gabriele Monaco [off-list ref] napsal:
quoted
Yeah totally, I have the feeling that with the kernel there's no such a
thing as a "theoretical bug", kinda like a good consequence of Murphy's
Law.
My understanding of "theoretical bug" is that it's code that is
semantically equivalent to a bug-free code, but becomes buggy after
doing an "innocent" change. The bug might be more or less
"theoretical" based on how "innocent" that change is. Of course, in a
codebase of the size of a Linux kernel, this tends to happen quite
often, and is not always possible to get rid of completely...
Yeah good point, we are getting philosophical here :) . This wasn't a
theoretical bug then, just something you don't think will really happen (a
failure creating a sysfs directory) ... until it happens.

The fact there is a way to make that function fail on-demand (kernel lockdown),
makes it just more "real". Moral of the story, better get the compiler check
things for you (lock guards).

Anyway the fix is now upstream.

Gabriele
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help