[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a6c6ee76-2f5c-c670-e987-940d265c635c@cogentembedded.com>
Date: Thu, 25 Apr 2019 12:44:27 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Andrew Lunn <andrew@...n.ch>, David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>
Subject: Re: [PATCH net] net: phy: marvell: Fix buffer overrun with stats
counters
Hello!
On 25.04.2019 1:33, Andrew Lunn wrote:
> marvell_get_sset_count() returns how many statistics counters there
> are. If the PHY supports fibre, there are 3, otherwise two.
>
> marvell_get_strings() does not make this distinction, and always
> returns 3 strings. This then often results in writing passed the end
s/passed/past/?
> of the buffer for the strings.
>
> Fixes: 2170fef78a40 ("Marvell phy: add field to get errors from fiber link.")
> Signed-off-by: Andrew Lunn <andrew@...n.ch>
[...]
MBR, Sergei
Powered by blists - more mailing lists