From: Paolo Abeni <pabeni@redhat.com>
To: Matthieu Baerts <matttbe@kernel.org>,
Mat Martineau <martineau@kernel.org>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net] mptcp: avoid printing warning once on client side
Date: Fri, 16 Feb 2024 12:23:30 +0100 [thread overview]
Message-ID: <e7769e4c030b06c8ea4b14857a22eafeb9c93277.camel@redhat.com> (raw)
In-Reply-To: <6b9c4a3e-3c30-4e7b-ab99-ed2e34e24015@kernel.org>
On Fri, 2024-02-16 at 11:42 +0100, Matthieu Baerts wrote:
> Hi Mat,
>
> On 16/02/2024 00:25, Mat Martineau wrote:
> > On Thu, 15 Feb 2024, Matthieu Baerts (NGI0) wrote:
> >
> > > After the 'Fixes' commit mentioned below, the client side might print
> > > the following warning once when a subflow is fully established at the
> > > reception of any valid additional ack:
> > >
> > > MPTCP: bogus mpc option on established client sk
> > >
> > > That's a normal situation, and no warning should be printed for that. We
> > > can then skip the check when the label is used.
> > >
> > > Fixes: e4a0fa47e816 ("mptcp: corner case locking for rx path fields
> > > initialization")
> > > Suggested-by: Paolo Abeni <pabeni@redhat.com>
> > > Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> >
> > Looks good to me:
> >
> > Reviewed-by: Mat Martineau <martineau@kernel.org>
>
> Thank you for the review!
>
> > > ---
> > > Notes:
> > > - Should we convert this pr_warn_once() to a WARN_ONCE()? Or just in
> > > our tree? Or just in DEBUG mode?
> >
> > I think it makes sense to keep this patch minimal for -net and stable
> > (just moving the label).
> >
> > Also given the consequences of panic_on_warn, would be better to make
> > any changes to WARN_ONCE() in mptcp-next/net-next. I don't see extra
> > complexity to modify this warning in our tree or debug mode as being
> > worth it, do you think it would be valuable?
>
> Sorry, I'm a bit confused by your reply. For the moment, our CI
> complains when a "Call Trace:" is printed, but it doesn't complain when
> there is a pr_warn().
>
> If the warning here can be caused by interactions with a buggy host, it
> makes sense not to have a WARN() when used in production, but it would
> be good for our CI can catch that. If the warning can only be caused by
> an internal bug, then easier to use a WARN_ONCE().
We can trigger the warning due to either:
* local S/W bug
* bugged/malicious peer.
I think we should avoid a WARN there.
> So I think here, we could maybe convert it to a DEBUG_NET_WARN_ON_ONCE()
> and upstream that. WDYT?
DEBUG_NET is quite lightweight and could be enabled even in production,
that should be an export-branch only change.
Cheers,
Paolo
next prev parent reply other threads:[~2024-02-16 11:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 15:06 [PATCH mptcp-net] mptcp: avoid printing warning once on client side Matthieu Baerts (NGI0)
2024-02-15 15:54 ` mptcp: avoid printing warning once on client side: Tests Results MPTCP CI
2024-02-15 16:20 ` MPTCP CI
2024-02-15 16:43 ` MPTCP CI
2024-02-15 23:25 ` [PATCH mptcp-net] mptcp: avoid printing warning once on client side Mat Martineau
2024-02-16 10:42 ` Matthieu Baerts
2024-02-16 11:23 ` Paolo Abeni [this message]
2024-02-16 11:33 ` Matthieu Baerts
2024-02-16 19:59 ` Mat Martineau
2024-02-16 0:24 ` mptcp: avoid printing warning once on client side: Tests Results MPTCP CI
2024-02-16 0:45 ` MPTCP CI
2024-02-16 10:46 ` [PATCH mptcp-net] mptcp: avoid printing warning once on client side Matthieu Baerts
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=e7769e4c030b06c8ea4b14857a22eafeb9c93277.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=martineau@kernel.org \
--cc=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
/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