Commit 021a73b4 authored by Elena Reshetova's avatar Elena Reshetova Committed by Marcelo Henrique Cerri

net: mpls: 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 f84272a4586cddd342fa5570d4aafc223345a844)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 905b2bac
......@@ -43,6 +43,8 @@ static struct mpls_route *mpls_route_input_rcu(struct net *net, unsigned index)
if (index < net->mpls.platform_labels) {
struct mpls_route __rcu **platform_label =
rcu_dereference(net->mpls.platform_label);
gmb();
rt = rcu_dereference(platform_label[index]);
}
return rt;
......
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