Thread (3 messages) 3 messages, 3 authors, 2018-07-02

Re: [PATCH][next] netdevsim: fix sa_idx out of bounds check

From: David Miller <davem@davemloft.net>
Date: 2018-07-02 11:36:18
Also in: kernel-janitors, lkml

From: Colin King <redacted>
Date: Sat, 30 Jun 2018 21:39:24 +0100
From: Colin Ian King <redacted>

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 <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help