Skip to content

Commit 55bd576

Browse files
Accidentally left in a spectre releated patch in place during 4.9.115, omitting it
1 parent 7346c80 commit 55bd576

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

omitted-patches/included-patches/include-4.9.115.patch

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -392,28 +392,6 @@ index 836398ade58d..b9181281aa9e 100644
392392
/* Cold Attach Status - xHC can set this bit to report device attached during
393393
* Sx state. Warm port reset should be perfomed to clear this bit and move port
394394
* to connected state.
395-
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
396-
index 43559bed7822..7338e43faa17 100644
397-
--- a/drivers/vfio/pci/vfio_pci.c
398-
+++ b/drivers/vfio/pci/vfio_pci.c
399-
@@ -28,6 +28,7 @@
400-
#include <linux/uaccess.h>
401-
#include <linux/vfio.h>
402-
#include <linux/vgaarb.h>
403-
+#include <linux/nospec.h>
404-
405-
#include "vfio_pci_private.h"
406-
407-
@@ -755,6 +756,9 @@ static long vfio_pci_ioctl(void *device_data,
408-
if (info.index >=
409-
VFIO_PCI_NUM_REGIONS + vdev->num_regions)
410-
return -EINVAL;
411-
+ info.index = array_index_nospec(info.index,
412-
+ VFIO_PCI_NUM_REGIONS +
413-
+ vdev->num_regions);
414-
415-
i = info.index - VFIO_PCI_NUM_REGIONS;
416-
417395
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
418396
index a2c05f2ada6d..88720011a6eb 100644
419397
--- a/fs/fat/inode.c

omitted-patches/omit-4.9.115.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,25 @@ index 51287cd90bf6..313a85a7b222 100644
8282
apm_irq_restore(flags);
8383
gdt[0x40 / 8] = save_desc_40;
8484
put_cpu();
85+
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
86+
index 43559bed7822..7338e43faa17 100644
87+
--- a/drivers/vfio/pci/vfio_pci.c
88+
+++ b/drivers/vfio/pci/vfio_pci.c
89+
@@ -28,6 +28,7 @@
90+
#include <linux/uaccess.h>
91+
#include <linux/vfio.h>
92+
#include <linux/vgaarb.h>
93+
+#include <linux/nospec.h>
94+
95+
#include "vfio_pci_private.h"
96+
97+
@@ -755,6 +756,9 @@ static long vfio_pci_ioctl(void *device_data,
98+
if (info.index >=
99+
VFIO_PCI_NUM_REGIONS + vdev->num_regions)
100+
return -EINVAL;
101+
+ info.index = array_index_nospec(info.index,
102+
+ VFIO_PCI_NUM_REGIONS +
103+
+ vdev->num_regions);
104+
105+
i = info.index - VFIO_PCI_NUM_REGIONS;
106+

0 commit comments

Comments
 (0)