aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2018-07-27 22:43:01 +0000
committerMoyster <oysterized@gmail.com>2019-05-02 15:54:52 +0200
commit3f8d05cad6be7f3f3b4811eb8e44624db15de68b (patch)
tree2391a900a92537050ad11440cdbd4dc7e57e43f5 /drivers
parent320871e198486e990ed6c5e9daf3cf6ca565da93 (diff)
net: socket: fix potential spectre v1 gadget in socketcall
commit c8e8cd579bb4265651df8223730105341e61a2d1 upstream. 'call' is a user-controlled value, so sanitize the array index after the bounds check to avoid speculating past the bounds of the 'nargs' array. Found with the help of Smatch: net/socket.c:2508 __do_sys_socketcall() warn: potential spectre issue 'nargs' [r] (local cap) Change-Id: Ie54a1a002a2af237537b3f0edfa47ef7d3cce367 Cc: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Jeremy Cline <jcline@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions