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

uvcvideo: 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 5d9ab7231ea9f5a1b0c3cb612e20b0b486a5bdca)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 87f0ff16
...@@ -811,6 +811,7 @@ static int uvc_ioctl_enum_input(struct file *file, void *fh, ...@@ -811,6 +811,7 @@ static int uvc_ioctl_enum_input(struct file *file, void *fh,
} }
pin = iterm->id; pin = iterm->id;
} else if (index < selector->bNrInPins) { } else if (index < selector->bNrInPins) {
gmb();
pin = selector->baSourceID[index]; pin = selector->baSourceID[index];
list_for_each_entry(iterm, &chain->entities, chain) { list_for_each_entry(iterm, &chain->entities, chain) {
if (!UVC_ENTITY_IS_ITERM(iterm)) if (!UVC_ENTITY_IS_ITERM(iterm))
......
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