Searched hist:c02462d8a3e96d99967fb26fca7375d449328ce6 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/net/netdevsim/ |
H A D | ipsec.c | diff c02462d8a3e96d99967fb26fca7375d449328ce6 Sat Jun 30 22:39:24 CEST 2018 Colin Ian King <colin.king@canonical.com> netdevsim: fix sa_idx out of bounds check
Currently if sa_idx is equal to NSIM_IPSEC_MAX_SA_COUNT then an out-of-bounds read on ipsec->sa will occur. Fix the incorrect bounds check by using >= rather than >.
Detected by CoverityScan, CID#1470226 ("Out-of-bounds-read")
Fixes: 7699353da875 ("netdevsim: add ipsec offload testing") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|