lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231205223849.wmapl37lerjr7pn3@skbuf>
Date: Wed, 6 Dec 2023 00:38:49 +0200
From: Vladimir Oltean <vladimir.oltean@....com>
To: Tobias Waldekranz <tobias@...dekranz.com>
Cc: davem@...emloft.net, kuba@...nel.org, andrew@...n.ch,
	f.fainelli@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH v2 net-next 3/6] net: dsa: mv88e6xxx: Fix
 mv88e6352_serdes_get_stats error path

On Tue, Dec 05, 2023 at 10:13:12PM +0100, Tobias Waldekranz wrote:
> > Ok, you're saying we don't care enough about handling the catastrophic
> > event where an MDIO access error takes place in mv88e6xxx_g2_scratch_read()
> > to submit this to "stable".
> 
> It just felt like one of those theoretical bugs that, if you were to hit
> it, you most likely have way bigger issues than not getting at your
> SERDES counters; and since, as you say...
> 
> > I guess the impact in such a case is that the error (interpreted as negative
> > count) makes us go back by -EIO (5) entries or whatever into the "data"
> > array provided to user space, overwriting some previous stats and making
> > everything after the failed counter minus the error code be reported in
> > the wrong place relative to its string. I don't think that the error
> > codes are high enough to overcome the ~60 port stats and cause memory
> > accesses behind the "data" array.
> 
> ...the potential for data corruption seems low. But I could send a v3
> and split this into one change that only fixes the return value (which
> could go into -net), and another one that changes the type. Do you think
> it's worth it?

Reading Documentation/process/stable-kernel-rules.rst, I think that
consistent error checking for register access on a non-hotpluggable bus
is the type of bug fix that is exceedingly unlikely to have any measurable
impact on end users, so it might not even qualify for "net".

To me, this is good enough. Let's spend our time doing meaningful things,
while also keeping the material for "net.git" meaningful.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ