From: Andrew Lunn <andrew@lunn•ch>
To: Jakub Kicinski <kuba@kernel•org>
Cc: Daniil Tatianin <d-tatianin@yandex-team•ru>,
netdev@vger•kernel.org, Michal Kubecek <mkubecek@suse•cz>,
yc-core@yandex-team•ru, lvc-project@linuxtesting•org
Subject: Re: [PATCH v2 3/3] net/ethtool/ioctl: split ethtool_get_phy_stats into multiple helpers
Date: Wed, 30 Nov 2022 14:51:06 +0100 [thread overview]
Message-ID: <Y4dfyp+az6WR6cqY@lunn.ch> (raw)
In-Reply-To: <20221129183938.496850f7@kicinski-fedora-PC1C0HJN>
On Tue, Nov 29, 2022 at 06:39:41PM -0800, Jakub Kicinski wrote:
> On Wed, 30 Nov 2022 01:25:06 +0100 Andrew Lunn wrote:
> > On Tue, Nov 29, 2022 at 01:38:01PM +0300, Daniil Tatianin wrote:
> > > So that it's easier to follow and make sense of the branching and
> > > various conditions.
> > >
> > > Stats retrieval has been split into two separate functions
> > > ethtool_get_phy_stats_phydev & ethtool_get_phy_stats_ethtool.
> > > The former attempts to retrieve the stats using phydev & phy_ops, while
> > > the latter uses ethtool_ops.
> > >
> > > Actual n_stats validation & array allocation has been moved into a new
> > > ethtool_vzalloc_stats_array helper.
> > >
> > > This also fixes a potential NULL dereference of
> > > ops->get_ethtool_phy_stats where it was getting called in an else branch
> > > unconditionally without making sure it was actually present.
> > >
> > > Found by Linux Verification Center (linuxtesting.org) with the SVACE
> > > static analysis tool.
> > >
> > > Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team•ru>
> >
> > Reviewed-by: Andrew Lunn <andrew@lunn•ch>
>
> FWIW the patches did not hit the list, once again :/
Daniil, how are you sending the patches? git send-email?
You might need to contact postmaster@vger•kernel.org and ask if they
have logs records of why it is discarding your emails.
Andrew
prev parent reply other threads:[~2022-11-30 14:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20221129103801.498149-1-d-tatianin@yandex-team.ru>
[not found] ` <20221129103801.498149-2-d-tatianin@yandex-team.ru>
2022-11-30 0:20 ` [PATCH v2 1/3] net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats Andrew Lunn
[not found] ` <20221129103801.498149-3-d-tatianin@yandex-team.ru>
2022-11-30 0:21 ` [PATCH v2 2/3] net/ethtool/ioctl: remove if n_stats checks from ethtool_get_phy_stats Andrew Lunn
[not found] ` <20221129103801.498149-4-d-tatianin@yandex-team.ru>
2022-11-30 0:25 ` [PATCH v2 3/3] net/ethtool/ioctl: split ethtool_get_phy_stats into multiple helpers Andrew Lunn
2022-11-30 2:39 ` Jakub Kicinski
2022-11-30 13:51 ` Andrew Lunn [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=Y4dfyp+az6WR6cqY@lunn.ch \
--to=andrew@lunn$(echo .)ch \
--cc=d-tatianin@yandex-team$(echo .)ru \
--cc=kuba@kernel$(echo .)org \
--cc=lvc-project@linuxtesting$(echo .)org \
--cc=mkubecek@suse$(echo .)cz \
--cc=netdev@vger$(echo .)kernel.org \
--cc=yc-core@yandex-team$(echo .)ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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