[PATCH 0/2] net: socket: Fix potential spectre v1 gadgets

From: Jeremy Cline
Date: Fri Jul 27 2018 - 18:44:18 EST


Hi folks,

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

Jeremy Cline (2):
net: socket: fix potential spectre v1 gadget in socketcall
net: socket: Fix potential spectre v1 gadget in sock_is_registered

net/socket.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

--
2.17.1