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)
commit0b9c3914ad92e6ac69368a87c82796c4611b7758
tree1726320a13b4cd2a706578df22ee6dfabbd707f2
parentfa60b8163816f194786f3ee334c9a458da7699c6
parente4c79810755f66c9a933ca810da2724133b1165a
Merge branch 'rule_buf-OOB'

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>