+++ /dev/null
-From bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 Mon Sep 17 00:00:00 2001
-From: Andreas Noever <andreas.noever@gmail.com>
-Date: Tue, 16 Sep 2014 15:16:02 -0600
-Subject: PCI: pciehp: Prevent NULL dereference during probe
-
-From: Andreas Noever <andreas.noever@gmail.com>
-
-commit bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 upstream.
-
-pciehp assumes that dev->subordinate, the struct pci_bus for a bridge's
-secondary bus, exists. But we do not create that bus if we run out of bus
-numbers during enumeration. This leads to a NULL dereference in
-init_slot() (and other places).
-
-Change pciehp_probe() to return -ENODEV when no secondary bus is present.
-
-Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
-Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/pci/hotplug/pciehp_core.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
---- a/drivers/pci/hotplug/pciehp_core.c
-+++ b/drivers/pci/hotplug/pciehp_core.c
-@@ -237,6 +237,13 @@ static int pciehp_probe(struct pcie_devi
- else if (pciehp_acpi_slot_detection_check(dev->port))
- goto err_out_none;
-
-+ if (!dev->port->subordinate) {
-+ /* Can happen if we run out of bus numbers during probe */
-+ dev_err(&dev->device,
-+ "Hotplug bridge without secondary bus, ignoring\n");
-+ goto err_out_none;
-+ }
-+
- ctrl = pcie_init(dev);
- if (!ctrl) {
- dev_err(&dev->device, "Controller initialization failed\n");
nfsv4-fix-open-lock-state-recovery-error-handling.patch
nfsv4.1-fix-an-nfsv4.1-state-renewal-regression.patch
iwlwifi-add-missing-pci-ids-for-the-7260-series.patch
-pci-pciehp-prevent-null-dereference-during-probe.patch
pci-increase-ibm-ipr-sas-crocodile-bars-to-at-least-system-page-size.patch
pci-generate-uppercase-hex-for-modalias-interface-class.patch
rt2800-correct-bbp1_tx_power_ctrl-mask.patch
+++ /dev/null
-From 27cd1fc3ae5374a4a86662c67033f15ef27b2461 Mon Sep 17 00:00:00 2001
-From: Dmitry Kasatkin <d.kasatkin@samsung.com>
-Date: Mon, 23 Jun 2014 20:32:56 +0300
-Subject: ima: fix fallback to use new_sync_read()
-
-From: Dmitry Kasatkin <d.kasatkin@samsung.com>
-
-commit 27cd1fc3ae5374a4a86662c67033f15ef27b2461 upstream.
-
-3.16 commit aad4f8bb42af06371aa0e85bf0cd9d52c0494985
-'switch simple generic_file_aio_read() users to ->read_iter()'
-replaced ->aio_read with ->read_iter in most of the file systems
-and introduced new_sync_read() as a replacement for do_sync_read().
-
-Most of file systems set '->read' and ima_kernel_read is not affected.
-When ->read is not set, this patch adopts fallback call changes from the
-vfs_read.
-
-Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
-Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- security/integrity/ima/ima_crypto.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
---- a/security/integrity/ima/ima_crypto.c
-+++ b/security/integrity/ima/ima_crypto.c
-@@ -38,19 +38,19 @@ static int ima_kernel_read(struct file *
- {
- mm_segment_t old_fs;
- char __user *buf = addr;
-- ssize_t ret;
-+ ssize_t ret = -EINVAL;
-
- if (!(file->f_mode & FMODE_READ))
- return -EBADF;
-- if (!file->f_op->read && !file->f_op->aio_read)
-- return -EINVAL;
-
- old_fs = get_fs();
- set_fs(get_ds());
- if (file->f_op->read)
- ret = file->f_op->read(file, buf, count, &offset);
-- else
-+ else if (file->f_op->aio_read)
- ret = do_sync_read(file, buf, count, &offset);
-+ else if (file->f_op->read_iter)
-+ ret = new_sync_read(file, buf, count, &offset);
- set_fs(old_fs);
- return ret;
- }
+++ /dev/null
-From bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 Mon Sep 17 00:00:00 2001
-From: Andreas Noever <andreas.noever@gmail.com>
-Date: Tue, 16 Sep 2014 15:16:02 -0600
-Subject: PCI: pciehp: Prevent NULL dereference during probe
-
-From: Andreas Noever <andreas.noever@gmail.com>
-
-commit bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 upstream.
-
-pciehp assumes that dev->subordinate, the struct pci_bus for a bridge's
-secondary bus, exists. But we do not create that bus if we run out of bus
-numbers during enumeration. This leads to a NULL dereference in
-init_slot() (and other places).
-
-Change pciehp_probe() to return -ENODEV when no secondary bus is present.
-
-Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
-Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/pci/hotplug/pciehp_core.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
---- a/drivers/pci/hotplug/pciehp_core.c
-+++ b/drivers/pci/hotplug/pciehp_core.c
-@@ -254,6 +254,13 @@ static int pciehp_probe(struct pcie_devi
- else if (pciehp_acpi_slot_detection_check(dev->port))
- goto err_out_none;
-
-+ if (!dev->port->subordinate) {
-+ /* Can happen if we run out of bus numbers during probe */
-+ dev_err(&dev->device,
-+ "Hotplug bridge without secondary bus, ignoring\n");
-+ goto err_out_none;
-+ }
-+
- ctrl = pcie_init(dev);
- if (!ctrl) {
- dev_err(&dev->device, "Controller initialization failed\n");
nfsv4-fix-open-lock-state-recovery-error-handling.patch
nfsv4.1-fix-an-nfsv4.1-state-renewal-regression.patch
iwlwifi-add-missing-pci-ids-for-the-7260-series.patch
-pci-pciehp-prevent-null-dereference-during-probe.patch
pci-mvebu-fix-uninitialized-variable-in-mvebu_get_tgt_attr.patch
pci-increase-ibm-ipr-sas-crocodile-bars-to-at-least-system-page-size.patch
pci-generate-uppercase-hex-for-modalias-interface-class.patch
kernel-add-support-for-gcc-5.patch
futex-ensure-get_futex_key_refs-always-implies-a-barrier.patch
powerpc-iommu-ddw-fix-endianness.patch
-ima-fix-fallback-to-use-new_sync_read.patch
ima-provide-flag-to-identify-new-empty-files.patch
+++ /dev/null
-From bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 Mon Sep 17 00:00:00 2001
-From: Andreas Noever <andreas.noever@gmail.com>
-Date: Tue, 16 Sep 2014 15:16:02 -0600
-Subject: PCI: pciehp: Prevent NULL dereference during probe
-
-From: Andreas Noever <andreas.noever@gmail.com>
-
-commit bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 upstream.
-
-pciehp assumes that dev->subordinate, the struct pci_bus for a bridge's
-secondary bus, exists. But we do not create that bus if we run out of bus
-numbers during enumeration. This leads to a NULL dereference in
-init_slot() (and other places).
-
-Change pciehp_probe() to return -ENODEV when no secondary bus is present.
-
-Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
-Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/pci/hotplug/pciehp_core.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
---- a/drivers/pci/hotplug/pciehp_core.c
-+++ b/drivers/pci/hotplug/pciehp_core.c
-@@ -255,6 +255,13 @@ static int pciehp_probe(struct pcie_devi
- else if (pciehp_acpi_slot_detection_check(dev->port))
- goto err_out_none;
-
-+ if (!dev->port->subordinate) {
-+ /* Can happen if we run out of bus numbers during probe */
-+ dev_err(&dev->device,
-+ "Hotplug bridge without secondary bus, ignoring\n");
-+ goto err_out_none;
-+ }
-+
- ctrl = pcie_init(dev);
- if (!ctrl) {
- dev_err(&dev->device, "Controller initialization failed\n");
nfs-fix-a-bogus-warning-in-nfs_generic_pgio.patch
iwlwifi-mvm-disable-bt-co-running-by-default.patch
iwlwifi-add-missing-pci-ids-for-the-7260-series.patch
-pci-pciehp-prevent-null-dereference-during-probe.patch
pci-mvebu-fix-uninitialized-variable-in-mvebu_get_tgt_attr.patch
pci-add-missing-mem_64-mask-in-pci_assign_unassigned_bridge_resources.patch
pci-increase-ibm-ipr-sas-crocodile-bars-to-at-least-system-page-size.patch
+++ /dev/null
-From bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 Mon Sep 17 00:00:00 2001
-From: Andreas Noever <andreas.noever@gmail.com>
-Date: Tue, 16 Sep 2014 15:16:02 -0600
-Subject: PCI: pciehp: Prevent NULL dereference during probe
-
-From: Andreas Noever <andreas.noever@gmail.com>
-
-commit bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 upstream.
-
-pciehp assumes that dev->subordinate, the struct pci_bus for a bridge's
-secondary bus, exists. But we do not create that bus if we run out of bus
-numbers during enumeration. This leads to a NULL dereference in
-init_slot() (and other places).
-
-Change pciehp_probe() to return -ENODEV when no secondary bus is present.
-
-Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
-Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/pci/hotplug/pciehp_core.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
---- a/drivers/pci/hotplug/pciehp_core.c
-+++ b/drivers/pci/hotplug/pciehp_core.c
-@@ -262,6 +262,13 @@ static int pciehp_probe(struct pcie_devi
- goto err_out_none;
- }
-
-+ if (!dev->port->subordinate) {
-+ /* Can happen if we run out of bus numbers during probe */
-+ dev_err(&dev->device,
-+ "Hotplug bridge without secondary bus, ignoring\n");
-+ goto err_out_none;
-+ }
-+
- ctrl = pcie_init(dev);
- if (!ctrl) {
- dev_err(&dev->device, "Controller initialization failed\n");
nfsv4.1-pnfs-replace-broken-pnfs_put_lseg_async.patch
iwlwifi-mvm-disable-bt-co-running-by-default.patch
iwlwifi-add-missing-pci-ids-for-the-7260-series.patch
-pci-pciehp-prevent-null-dereference-during-probe.patch
pci-mvebu-fix-uninitialized-variable-in-mvebu_get_tgt_attr.patch
pci-add-missing-mem_64-mask-in-pci_assign_unassigned_bridge_resources.patch
pci-increase-ibm-ipr-sas-crocodile-bars-to-at-least-system-page-size.patch