]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0267-ipv6-prevent-speculative-execution.patch
update ABI file
[pve-kernel.git] / patches / kernel / 0267-ipv6-prevent-speculative-execution.patch
CommitLineData
035dbe67
FG
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Elena Reshetova <elena.reshetova@intel.com>
3Date: Mon, 4 Sep 2017 13:11:53 +0300
4Subject: [PATCH] ipv6: prevent speculative execution
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5753
10CVE-2017-5715
11
12Real commit text tbd
13
14Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
15Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
16Signed-off-by: Andy Whitcroft <apw@canonical.com>
17Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
18(cherry picked from commit fdb98114a31aa5c0083bd7cd5b42ea569b6f77dc)
19Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20---
21 net/ipv6/raw.c | 1 +
22 1 file changed, 1 insertion(+)
23
24diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
25index 60be012fe708..1a0eae661512 100644
26--- a/net/ipv6/raw.c
27+++ b/net/ipv6/raw.c
28@@ -726,6 +726,7 @@ static int raw6_getfrag(void *from, char *to, int offset, int len, int odd,
29 if (offset < rfv->hlen) {
30 int copy = min(rfv->hlen - offset, len);
31
32+ gmb();
33 if (skb->ip_summed == CHECKSUM_PARTIAL)
34 memcpy(to, rfv->c + offset, copy);
35 else
36--
372.14.2
38