]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
Merge branch 'net-socket-Fix-potential-spectre-v1-gadgets'
authorDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 05:43:31 +0000 (22:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 05:43:31 +0000 (22:43 -0700)
Jeremy Cline says:

====================
net: socket: Fix potential spectre v1 gadgets

This fixes a pair of potential spectre v1 gadgets.

Note that because the speculation window is large, the policy is to stop
the speculative out-of-bounds load and not worry if the attack can be
completed with a dependent load or store[0].

[0] https://marc.info/?l=linux-kernel&m=152449131114778
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge