Commit 904c6712 authored by Elena Reshetova's avatar Elena Reshetova Committed by Marcelo Henrique Cerri

ipv6: prevent speculative execution

CVE-2017-5753
CVE-2017-5715

Real commit text tbd
Signed-off-by: default avatarElena Reshetova <elena.reshetova@intel.com>
Signed-off-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
(cherry picked from commit 2b6906d0cf28910144b1e1816861097b2ae3d4a1)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 9c852c53
...@@ -717,6 +717,7 @@ static int raw6_getfrag(void *from, char *to, int offset, int len, int odd, ...@@ -717,6 +717,7 @@ static int raw6_getfrag(void *from, char *to, int offset, int len, int odd,
if (offset < rfv->hlen) { if (offset < rfv->hlen) {
int copy = min(rfv->hlen - offset, len); int copy = min(rfv->hlen - offset, len);
gmb();
if (skb->ip_summed == CHECKSUM_PARTIAL) if (skb->ip_summed == CHECKSUM_PARTIAL)
memcpy(to, rfv->c + offset, copy); memcpy(to, rfv->c + offset, copy);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment