From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: <leitao@debian.org>
Cc: <akinobu.mita@gmail.com>, <aleksander.lobakin@intel.com>,
<almasrymina@google.com>, <asml.silence@gmail.com>,
<corbet@lwn.net>, <davem@davemloft.net>, <edumazet@google.com>,
<horms@kernel.org>, <kuba@kernel.org>,
<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<netdev@vger.kernel.org>, <pabeni@redhat.com>,
<willemb@google.com>, <kuniyu@amazon.com>
Subject: Re: [PATCH net-next] net: Implement fault injection forcing skb reallocation
Date: Wed, 2 Oct 2024 08:25:40 -0700 [thread overview]
Message-ID: <20241002152540.51408-1-kuniyu@amazon.com> (raw)
In-Reply-To: <20241002113316.2527669-1-leitao@debian.org>
From: Breno Leitao <leitao@debian.org>
Date: Wed, 2 Oct 2024 04:32:54 -0700
> diff --git a/net/Kconfig.debug b/net/Kconfig.debug
> index 5e3fffe707dd..f61935e028bd 100644
> --- a/net/Kconfig.debug
> +++ b/net/Kconfig.debug
This config is networking-specific, but I think lib/Kconfig.debug would be
a better fit as other fault injection configs are placed there together.
Now we need to enable fault injection first and go back to the net-specific
items in menuconfig.
> @@ -24,3 +24,14 @@ config DEBUG_NET
> help
> Enable extra sanity checks in networking.
> This is mostly used by fuzzers, but is safe to select.
> +
> +config FAIL_SKB_FORCE_REALLOC
> + bool "Fault-injection capability forcing skb to reallocate"
> + depends on FAULT_INJECTION && DEBUG_NET
> + default n
> + help
> + Provide fault-injection capability that forces the skb to be
> + reallocated, caughting possible invalid pointers to the skb.
> +
> + For more information, check
> + Documentation/dev-tools/fault-injection/fault-injection.rst
next prev parent reply other threads:[~2024-10-02 15:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 11:32 [PATCH net-next] net: Implement fault injection forcing skb reallocation Breno Leitao
2024-10-02 14:23 ` kernel test robot
2024-10-02 15:33 ` Breno Leitao
2024-10-02 15:25 ` Kuniyuki Iwashima [this message]
2024-10-07 16:19 ` Breno Leitao
2024-10-05 4:38 ` Akinobu Mita
2024-10-07 16:20 ` Breno Leitao
2024-10-07 16:48 ` Pavel Begunkov
2024-10-07 17:09 ` Breno Leitao
2024-10-07 18:00 ` Pavel Begunkov
2024-10-08 11:09 ` Breno Leitao
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=20241002152540.51408-1-kuniyu@amazon.com \
--to=kuniyu@amazon.com \
--cc=akinobu.mita@gmail.com \
--cc=aleksander.lobakin@intel.com \
--cc=almasrymina@google.com \
--cc=asml.silence@gmail.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.com \
/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;
as well as URLs for NNTP newsgroup(s).