You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Rostedt
ac3abf2c37
PCI hotplug: ibmphp: Add check to prevent reading beyond mapped area
...
While testing various randconfigs with ktest.pl, I hit the following panic:
BUG: unable to handle kernel paging request at f7e54b03
IP: [<c0d63409>] ibmphp_access_ebda+0x101/0x19bb
Adding printks, I found that the loop that reads the ebda blocks
can move out of the mapped section.
ibmphp_access_ebda: start=f7e44c00 size=5120 end=f7e46000
ibmphp_access_ebda: io_mem=f7e44d80 offset=384
ibmphp_access_ebda: io_mem=f7e54b03 offset=65283
The start of the iomap was at f7e44c00 and had a size of 5120,
making the end f7e46000. We start with an offset of 0x180 or
384, giving the first read at 0xf7e44d80. Reading that location
yields 65283, which is much bigger than the 5120 that was allocated
and makes the next read at f7e54b03 which is outside the mapped area.
Perhaps this is a bug in the driver, or buggy hardware, but this patch
is more about not crashing my box on start up and just giving a warning
if it detects this error.
This patch at least lets my box boot with just a warning.
Cc: Chandru Siddalingappa <chandru@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
14 years ago
..
Kconfig
PCI: drivers/pci/slot.c should depend on CONFIG_SYSFS
16 years ago
Makefile
PCI hotplug: acpiphp should be linked after vendor drivers
15 years ago
acpi_pcihp.c
PCI: PCIe: Ask BIOS for control of all native services at once
15 years ago
acpiphp.h
PCI hotplug: move IOAPIC support from acpiphp to ioapic driver
15 years ago
acpiphp_core.c
PCI: Make current and maximum bus speeds part of the PCI core
15 years ago
acpiphp_glue.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
15 years ago
acpiphp_ibm.c
sysfs: add struct file* to bin_attr callbacks
15 years ago
cpci_hotplug.h
…
cpci_hotplug_core.c
headers: smp_lock.h redux
16 years ago
cpci_hotplug_pci.c
…
cpcihp_generic.c
PCI: hotplug/cpcihp, fix pci device refcounting
15 years ago
cpcihp_zt5550.c
…
cpcihp_zt5550.h
…
cpqphp.h
PCI: Make current and maximum bus speeds part of the PCI core
15 years ago
cpqphp_core.c
PCI: hotplug/cpqphp, fix NULL dereference
15 years ago
cpqphp_ctrl.c
PCI: Make current and maximum bus speeds part of the PCI core
15 years ago
cpqphp_nvram.c
PCI Hotplug: cpqphp: fix comment style
16 years ago
cpqphp_nvram.h
…
cpqphp_pci.c
PCI Hotplug: cpqphp: don't use pci_find_slot()
16 years ago
cpqphp_sysfs.c
drivers: autoconvert trivial BKL users to private mutex
15 years ago
fakephp.c
PCI: use for_each_pci_dev()
15 years ago
ibmphp.h
…
ibmphp_core.c
PCI: Make current and maximum bus speeds part of the PCI core
15 years ago
ibmphp_ebda.c
PCI hotplug: ibmphp: Add check to prevent reading beyond mapped area
14 years ago
ibmphp_hpc.c
PCI hotplug: ibmphp-hpc: semaphore cleanup
15 years ago
ibmphp_pci.c
…
ibmphp_res.c
ibmphp: Rename add_range() to add_bus_range() to avoid conflict
15 years ago
pci_hotplug_core.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
15 years ago
pciehp.h
pciehp: update workqueue usage
15 years ago
pciehp_acpi.c
PCI: PCIe: Ask BIOS for control of all native services at once
15 years ago
pciehp_core.c
pciehp: update workqueue usage
15 years ago
pciehp_ctrl.c
pciehp: update workqueue usage
15 years ago
pciehp_hpc.c
pciehp: update workqueue usage
15 years ago
pciehp_pci.c
PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device
15 years ago
pcihp_skeleton.c
PCI hotplug: remove redundant .owner initializations
16 years ago
pcihp_slot.c
PCI hotplug: use pci_is_pcie()
15 years ago
rpadlpar.h
…
rpadlpar_core.c
powerpc/pseries: Flush lazy kernel mappings after unplug operations
15 years ago
rpadlpar_sysfs.c
…
rpaphp.h
…
rpaphp_core.c
powerpc/pseries: Flush lazy kernel mappings after unplug operations
15 years ago
rpaphp_pci.c
…
rpaphp_slot.c
…
sgi_hotplug.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
15 years ago
shpchp.h
shpchp: update workqueue usage
15 years ago
shpchp_core.c
shpchp: update workqueue usage
15 years ago
shpchp_ctrl.c
shpchp: update workqueue usage
15 years ago
shpchp_hpc.c
shpchp: update workqueue usage
15 years ago
shpchp_pci.c
PCI hotplug: shpchp: Removed check for hotplug of display devices
15 years ago
shpchp_sysfs.c
PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs
15 years ago