Merge branch 'rule_buf-OOB'
authorDavid S. Miller <davem@davemloft.net>
Mon, 11 Sep 2023 07:26:11 +0000 (08:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Sep 2023 07:26:11 +0000 (08:26 +0100)
Hangyu Hua says:

====================
Fix possible OOB write when using rule_buf

ADD bounds checks in bcmasp_netfilt_get_all_active and
mvpp2_ethtool_get_rxnfc and mtk_hwlro_get_fdir_all when
using rule_buf from ethtool_get_rxnfc.

v2:
[PATCH v2 1/3]: use -EMSGSIZE instead of truncating the list sliently.
[PATCH v2 3/3]: drop the brackets.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge