All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chuck Wolber" <chuck@wolber.net>
To: "igor.stoppa@gmail.com" <igor.stoppa@gmail.com>,
	"Gabriele Monaco" <gmonaco@redhat.com>
Cc: "Steven Rostedt" <rostedt@goodmis.org>,
	"Theodore Tso" <tytso@mit.edu>,
	"Miguel Ojeda" <miguel.ojeda.sandonis@gmail.com>,
	"Greg KH" <gregkh@linuxfoundation.org>,
	ksummit@lists.linux.dev, istoppa@nvidia.com,
	"Kate Stewart" <kstewart@linuxfoundation.org>,
	"Gabriele Paoloni" <gpaoloni@redhat.com>
Subject: Re: [TECH TOPIC] Improving kernel security & integrity by generalizing ad-hoc safety mechanisms
Date: Wed, 30 Sep 2026 02:57:03 +0000	[thread overview]
Message-ID: <620a54dd-3930-4dcd-a9e6-ebdbb103e164@app.fastmail.com> (raw)
In-Reply-To: <CAH2bzCR_hwxVbH-rfUHzj1-70mU7SkRY=3OgHEe7om5kZ605sQ@mail.gmail.com>

On Wed, Sep 9, 2026, at 9:40 AM, igor.stoppa@gmail.com wrote:

[...]

> And the safety problem is too complex for affording any form of NIH-ism

Safety is deterministic behavior within a specified range of conditions.

Outside of specific industries, the word "bug" is used to describe
behavior that violates expectations.

The safety case is just a desire to make Linux more deterministic so
that it can be used in places where failure has a greater cost.

The payback is more deterministic behavior under all conditions.


> It is a limitation that - as expected - comes from trying to adapt a
> tool that was
> born with a different purpose in mind.
> The idea of leveraging the existing ftrace infrastructure often bubbles up in
> FuSa circles. It's undoubtedly tempting.

Both RV and ftrace are excellent tools, but they are only part of the
story. Deterministic behavior in a safety critical context requires an
answer for when those tools detect non-conformance.

That is why pruning the potential state space (e.g. your fences
proposal), is almost certainly worthwhile. Even non-safety critical
contexts should benefit from it.


> This is perhaps one of my favourite pet peeves with the approach taken by
> many functional safety initiatives.
> They start looking for a tool that might solve the problem, but skip
> what should be
> instead a mandatory entry vetting:

My pet peeve goes even further back than that.

The case for safety is just a version of what we all expect from any
software - something that does not violate our expectations.

It makes little difference that our expectation is to not die when we
are ensconced in a tin can at 40,000 feet.

The safety case is just finding a way to make software work the way we
expect under some pretty hostile conditions.

If we can make it work on an airplane or an F1 car, your cloud server
and desktop experience is going to be significantly improved in the
process.


> Is the tool immune from the type of interference it should monitor?
> In other words, is it qualifiable?
> If not, can it be made compliant with FFI requirements?

Qualifiable == evidence of deterministic behavior under specified
conditions. It is no more complex than that.

Every industry has specific means-of-compliance, but all roads lead to
"works as expected when operated the way the designers intended".

That statement is also the hope that is wrapped up in every single
kernel release.


> From this perspective, safety is worse than security, because security usually
> lets you plan your defences so that you can use anything available, to
> prevent an attack.
> Because the core system is assumed to be trusted, usually.

I presented on this at OSSNA in 2024. I characterized it as the
"Cinderblock Problem".

https://www.youtube.com/watch?v=c8KCZFvIA2s


..Ch:W..

  parent reply	other threads:[~2026-09-30  3:00 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 16:53 [TECH TOPIC] Improving kernel security & integrity by generalizing ad-hoc safety mechanisms igor.stoppa
2026-09-07 19:46 ` Greg KH
2026-09-07 21:42   ` igor.stoppa
2026-09-08  3:51     ` Theodore Tso
2026-09-08 10:14       ` igor.stoppa
2026-09-08 13:55         ` Theodore Tso
2026-09-08 14:32           ` igor.stoppa
2026-09-08 19:29             ` Steven Rostedt
2026-09-08 21:13               ` igor.stoppa
2026-09-08 23:14                 ` Steven Rostedt
2026-09-08 23:48                   ` igor.stoppa
2026-09-09  7:44                     ` Gabriele Monaco
2026-09-09  9:40                       ` igor.stoppa
2026-09-09 15:22                         ` Gabriele Monaco
2026-09-09 16:07                           ` igor.stoppa
2026-09-09 16:14                             ` Steven Rostedt
2026-09-09 16:24                               ` igor.stoppa
2026-09-09 16:32                                 ` Steven Rostedt
2026-09-10 10:10                             ` Gabriele Monaco
2026-09-30  2:57                         ` Chuck Wolber [this message]
2026-09-30  1:58                       ` Chuck Wolber
2026-09-08  5:05     ` Greg KH
2026-09-08 11:26       ` igor.stoppa
2026-09-08 11:54         ` Greg KH
2026-09-08 12:25           ` igor.stoppa
2026-09-08 12:39             ` Greg KH
2026-09-08 12:52               ` igor.stoppa
2026-09-08 13:11             ` Miguel Ojeda
2026-09-08 13:52               ` igor.stoppa
2026-09-08 14:44                 ` Theodore Tso
2026-09-08 15:32                   ` igor.stoppa
2026-09-08 12:41         ` James Bottomley
2026-09-08 13:03           ` igor.stoppa
2026-09-08 15:40             ` Steven Rostedt
2026-09-08 16:09               ` igor.stoppa
2026-09-08 17:35                 ` Steven Rostedt
2026-09-09  1:31                   ` Theodore Tso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=620a54dd-3930-4dcd-a9e6-ebdbb103e164@app.fastmail.com \
    --to=chuck@wolber.net \
    --cc=gmonaco@redhat.com \
    --cc=gpaoloni@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=igor.stoppa@gmail.com \
    --cc=istoppa@nvidia.com \
    --cc=kstewart@linuxfoundation.org \
    --cc=ksummit@lists.linux.dev \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.