Commit 9c852c53 authored by Elena Reshetova's avatar Elena Reshetova Committed by Marcelo Henrique Cerri

userns: 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 bf5352bb462ac0acf4ebca109e964666f845bd54)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 1c050491
......@@ -502,8 +502,10 @@ static void *m_start(struct seq_file *seq, loff_t *ppos,
struct uid_gid_extent *extent = NULL;
loff_t pos = *ppos;
if (pos < map->nr_extents)
if (pos < map->nr_extents) {
gmb();
extent = &map->extent[pos];
}
return extent;
}
......
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