Netdev List
 help / color / mirror / Atom feed
From: Minxi Hou <houminxi@gmail.com>
To: netdev@vger.kernel.org
Cc: dev@openvswitch.org, aconole@redhat.com, echaudro@redhat.com,
	i.maximets@ovn.org, kuba@kernel.org, pabeni@redhat.com,
	horms@kernel.org, matttbe@kernel.org,
	netdev-bot+sashiko@kernel.org
Subject: Re: [PATCH net v5 1/2] net: openvswitch: do not record user features when the change fails
Date: Mon, 23 Nov 2026 11:05:09 -0500	[thread overview]
Message-ID: <20261123160509.3226523-1-houminxi@gmail.com> (raw)
In-Reply-To: <179533258016.3135.15287628134252460635@kernel.org>

The Medium finding is right, and it changes the series.  The single read of
dp->user_features in queue_userspace_packet() is a separate crash with its
own history, so v6 carries it as patch 1 with its own Fixes: tag naming
aea0bb4f8ee5, the commit that added the second read.  This patch keeps
35d39fecbc24 and is patch 2 of 3.  The cover says the count changed.

The two Low findings are also taken.  The Fixes: and Cc: lines are in the
trailer block now, and the comment on ovs_dp_set_user_features() says only
what the helper guarantees: every write goes through it under ovs_mutex, and
it stores once with WRITE_ONCE().

The plain reads that remain are on the receive path, which takes no lock, as
before.  The helper now reads the field with READ_ONCE() too, so both sides
access it the same way.

pw-bot: cr

  reply	other threads:[~2026-11-23 16:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  6:54 [PATCH net v5 0/2] net: openvswitch: fix a feature leak on a failed change Minxi Hou
2026-11-18  6:54 ` [PATCH net v5 1/2] net: openvswitch: do not record user features when the change fails Minxi Hou
2026-11-22  7:29   ` netdev-bot+sashiko
2026-11-23 16:05     ` Minxi Hou [this message]
2026-11-18  6:54 ` [PATCH net v5 2/2] selftests/net/openvswitch: check that a failed set keeps the features Minxi Hou
2026-11-18  9:45   ` Matthieu Baerts
2026-11-18 11:12     ` Minxi Hou
2026-11-22  7:29   ` netdev-bot+sashiko
2026-11-23 16:05     ` Minxi Hou

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=20261123160509.3226523-1-houminxi@gmail.com \
    --to=houminxi@gmail.com \
    --cc=aconole@redhat.com \
    --cc=dev@openvswitch.org \
    --cc=echaudro@redhat.com \
    --cc=horms@kernel.org \
    --cc=i.maximets@ovn.org \
    --cc=kuba@kernel.org \
    --cc=matttbe@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --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