linux/drivers/net/ethernet/marvell/octeontx2/nic
Dan Carpenter e5cc361e21 octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context()
This function is called from ethtool_set_rxfh() and "*rss_context"
comes from the user.  Add some bounds checking to prevent memory
corruption.

Fixes: 81a4362016 ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-12 14:05:50 -07:00
..
cn10k.c octeontx2-pf: cn10k: Get max mtu supported from admin function 2021-02-11 14:55:03 -08:00
cn10k.h octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations 2021-02-11 14:55:03 -08:00
Makefile octeontx2-pf: Add tc flower hardware offload on ingress traffic 2021-03-18 11:37:22 -07:00
otx2_common.c octeontx2-pf: cn10k: Get max mtu supported from admin function 2021-02-11 14:55:03 -08:00
otx2_common.h octeontx2-pf: TC_MATCHALL egress ratelimiting offload 2021-03-18 11:37:22 -07:00
otx2_ethtool.c octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context() 2021-05-12 14:05:50 -07:00
otx2_flows.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
otx2_pf.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
otx2_ptp.c net: marvell: octeontx2: simplify the otx2_ptp_adjfine() 2020-12-09 17:05:37 -08:00
otx2_ptp.h octeontx2-pf: Add support for PTP clock 2020-08-24 18:15:45 -07:00
otx2_reg.h octeontx2-pf: TC_MATCHALL egress ratelimiting offload 2021-03-18 11:37:22 -07:00
otx2_struct.h octeontx2-pf: cn10k: Initialise NIX context 2021-02-11 14:55:03 -08:00
otx2_tc.c octeontx2-pf: Fix spelling mistake "ratelimitter" -> "ratelimiter" 2021-03-19 12:10:49 -07:00
otx2_txrx.c octeontx2-af: cn10k: Fixes CN10K RPM reference issue 2021-02-16 13:59:47 -08:00
otx2_txrx.h octeontx2-pf: cn10k: Get max mtu supported from admin function 2021-02-11 14:55:03 -08:00
otx2_vf.c octeontx2-pf: cn10k: Get max mtu supported from admin function 2021-02-11 14:55:03 -08:00