Re: [PATCH 14/18] ipv4: prevent bounds-check bypass via speculative execution

From
Dan Williams <hidden>
Date
2018-01-06 18:10:41
Also in
lkml, netdev
Reply to
Dan Williams, 2018-01-06
On Sat, Jan 6, 2018 at 8:29 AM, Dan Williams [off-list ref] wrote:
On Sat, Jan 6, 2018 at 7:14 AM, Greg KH [off-list ref] wrote:
quoted
On Sat, Jan 06, 2018 at 12:23:47PM +0000, Alan Cox wrote:
quoted
On Sat, 6 Jan 2018 10:01:54 +0100
Greg KH [off-list ref] wrote:
quoted
On Fri, Jan 05, 2018 at 05:11:10PM -0800, Dan Williams wrote:
quoted
Static analysis reports that 'offset' may be a user controlled value
Can I see the rule that determined that?  It does not feel like that is
correct, given the 3+ levels deep that this function gets this value
from...
On a current x86 you can execute something upwards of 150 instructions in
a speculation window.
Yeah, I agree, it's deep :(

But for this patch, I thought the prior review determined that it was
not a problem.  Was that somehow proven incorrect?
I kept it in the series to get a re-review with the wider netdev
because I missed the discussion leading up to that 'drop the patch'
decision. Sorry, I should have noted that in the changelog or cover
letter.
Is there a microbenchmark that can stress this path. If the cost is
negligible why play games with it being "probably ok"? Unless someone
can say 100% 'offset' is always bounded to something safe by the time
we get here just use nospec_array_ptr().
Thread (136 messages) 136 messages, 29 authors, last reply 2018-01-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help