From: Andrew Morton <akpm@linux-foundation.org>
To: Sang-Heon Jeon <ekffu200098@gmail.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fault-inject: use a shared initialization helper for the random state
Date: Thu, 12 Nov 2026 18:13:25 -0800 [thread overview]
Message-ID: <20261112181325.20cab0fae21fc368f0d8e5bf@linux-foundation.org> (raw)
In-Reply-To: <20261112144636.840042-1-ekffu200098@gmail.com>
On Thu, 12 Nov 2026 23:46:34 +0900 Sang-Heon Jeon <ekffu200098@gmail.com> wrote:
> fault_rnd_state can be seeded from setup_fault_attr(),
> fault_create_debugfs_attr() and fault_config_init(), and each of them
> uses its own guard. Configuring fault injection in more than one way
> leads to useless reseeding.
>
> To prevent this, use a shared initialization helper fault_random_init()
> in all three places. So fault_rnd_state is seeded only once per boot.
Thanks, that looks nice.
Generally, fault-injection doesn't see to get used very much, and the
huge number of AI-generated you-messed-up-error-handling reports we're
receiving show the cost of that.
syskaller can use it and those people have shown some
interesting/useful results from its use.
I have a side-project going where I get the LLM to drive patch testing
on a local test machine. The AI looks at the patches, figures out test
plans then controls their execution. One of the many things I'm
telling it do is to fault-inject every error path which the patchset(s)
add. It seems to do this quite well. So I'm a big user of
fault-injection now.
I'm hoping that I can also make it use kcov: use coverage
instrumentation to verify that all code which the patchset added or
altered has been runtime testing.
But oh my, it's soooooooooo slooooooooooooow. It does really
impressive testing, but I need to make it run 10x faster :(
prev parent reply other threads:[~2026-11-13 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 14:46 Sang-Heon Jeon
2026-11-13 2:13 ` Andrew Morton [this message]
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=20261112181325.20cab0fae21fc368f0d8e5bf@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=akinobu.mita@gmail.com \
--cc=ekffu200098@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®