summaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-12-21 22:41:17 +0100
committerDavid S. Miller2018-12-23 00:08:15 +0100
commitd686026b1e6ed4ea27d630d8f54f9a694db088b2 (patch)
treed7bd2f44af64de4131d4dcfb161f6d6c9e18bcc1 /net/packet
parentnet: core: Fix Spectre v1 vulnerability (diff)
downloadkernel-qcow2-linux-d686026b1e6ed4ea27d630d8f54f9a694db088b2.tar.gz
kernel-qcow2-linux-d686026b1e6ed4ea27d630d8f54f9a694db088b2.tar.xz
kernel-qcow2-linux-d686026b1e6ed4ea27d630d8f54f9a694db088b2.zip
phonet: af_phonet: Fix Spectre v1 vulnerability
protocol is indirectly controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: net/phonet/af_phonet.c:48 phonet_proto_get() warn: potential spectre issue 'proto_tab' [w] (local cap) Fix this by sanitizing protocol before using it to index proto_tab. Notice that given that speculation windows are large, the policy is to kill the speculation on the first load and not worry if it can be completed with a dependent load/store [1]. [1] https://marc.info/?l=linux-kernel&m=152449131114778&w=2 Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions