From: Dan Carpenter <hidden> Date: 2021-05-12 10:12:01
This function is called from ethtool_set_rxfh() and "*rss_context"
comes from the user. Add some bounds checking to prevent memory
corruption.
Fixes: 81a4362016e7 ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 4 ++++
1 file changed, 4 insertions(+)
On Wed, May 12, 2021 at 3:42 PM Dan Carpenter [off-list ref] wrote:
quoted hunk
This function is called from ethtool_set_rxfh() and "*rss_context"
comes from the user. Add some bounds checking to prevent memory
corruption.
Fixes: 81a4362016e7 ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 4 ++++
1 file changed, 4 insertions(+)
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Wed, 12 May 2021 13:11:43 +0300 you wrote:
This function is called from ethtool_set_rxfh() and "*rss_context"
comes from the user. Add some bounds checking to prevent memory
corruption.
Fixes: 81a4362016e7 ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: Dan Carpenter <redacted>
[...]