]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0263-uvcvideo-prevent-speculative-execution.patch
fix syscall retpoline
[pve-kernel.git] / patches / kernel / 0263-uvcvideo-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:46 +0300
4Subject: [PATCH] uvcvideo: 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 65d4588b16395360695525add0ca79fa6ba04fa5)
19Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20---
21 drivers/media/usb/uvc/uvc_v4l2.c | 1 +
22 1 file changed, 1 insertion(+)
23
24diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c
25index 3e7e283a44a8..fcedd1798e9d 100644
26--- a/drivers/media/usb/uvc/uvc_v4l2.c
27+++ b/drivers/media/usb/uvc/uvc_v4l2.c
28@@ -821,6 +821,7 @@ static int uvc_ioctl_enum_input(struct file *file, void *fh,
29 }
30 pin = iterm->id;
31 } else if (index < selector->bNrInPins) {
32+ gmb();
33 pin = selector->baSourceID[index];
34 list_for_each_entry(iterm, &chain->entities, chain) {
35 if (!UVC_ENTITY_IS_ITERM(iterm))
36--
372.14.2
38