From: Matthieu Baerts <matttbe@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net] mptcp: consolidate suboption status.
Date: Fri, 17 Jan 2025 15:28:24 +0100 [thread overview]
Message-ID: <efebc4b2-b9ef-451e-afc2-68b21dd40d62@kernel.org> (raw)
In-Reply-To: <c0576dc7-79f5-46c7-a59d-f70c6acf355f@kernel.org>
Hi Paolo,
On 16/01/2025 21:25, Matthieu Baerts wrote:
> Hi Paolo,
>
> On 15/01/2025 22:12, Paolo Abeni wrote:
>> MPTCP maintains the received sub-options status is the bitmask carrying
>> the received suboptions and in several bitfields carrying per suboption
>> additional info.
>>
>> Zeroing the bitmask before parsing is not enough to ensure a consistent
>> status, and the MPTCP code has to additionally clear some bitfiled
>> depending on the actually parsed suboption.
>>
>> The above schema is fragile, and syzbot menaged to trigger a path where
>> a relevant bitfield is not cleared/initialized:
>
> (...)
>
>> The current schema is too fragile; address the issue grouping all the
>> state-related data together and clearing the whole group instead of
>> just the bitmask. This also cleans-up the code a bit, as there is no
>> need anymore to individually clear "random" bitfield in a couple of
>> places.
>
> Good catch, and now cleaner!
>
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Now in our tree (fixes for -net) (without 2 spelling mistakes spotted by
checkpatch.pl --codespell):
New patches for t/upstream-net and t/upstream:
- 818bca988793: mptcp: consolidate suboption status
- Results: 05dbdeb0df9f..1b76b0bd2522 (export-net)
- Results: 23e469da2e50..2a6dfa001e66 (export)
Tests are now in progress:
- export-net:
https://github.com/multipath-tcp/mptcp_net-next/commit/6522a18009fb2dd2de6badbd6f3a75094ef56c5e/checks
- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/8e6fd4818b81ecebcca1a3eb44a2927845471434/checks
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
prev parent reply other threads:[~2025-01-17 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-15 21:12 [PATCH mptcp-net] mptcp: consolidate suboption status Paolo Abeni
2025-01-15 22:21 ` MPTCP CI
2025-01-16 20:25 ` Matthieu Baerts
2025-01-17 14:28 ` Matthieu Baerts [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=efebc4b2-b9ef-451e-afc2-68b21dd40d62@kernel.org \
--to=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=pabeni@redhat.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