alistair23-linux/drivers/pci
Rasmus Villemoes a1b7f2f636 PCI/AER: Avoid info leak in __print_tlp_header()
Commit fab4c256a5 ("PCI/AER: Add a TLP header print helper") introduced
the helper function __print_tlp_header(), but contrary to the intention,
the behaviour did change: Since we're taking the address of the parameter
t, the first 4 or 8 bytes printed will be the value of the pointer t
itself, and the remaining 12 or 8 bytes will be who-knows-what (something
from the stack).

We want to show the values of the four members of the struct
aer_header_log_regs; that can be done without ugly and error-prone casts.
On little-endian this should produce the same output as originally
intended, and since no-one has complained about getting garbage output so
far, I think big-endian should be ok too.

Fixes: fab4c256a5 ("PCI/AER: Add a TLP header print helper")
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Borislav Petkov <bp@suse.de>
CC: stable@vger.kernel.org	# v3.14+
2015-03-06 12:30:23 -06:00
..
host PCI: spear: Drop __initdata from spear13xx_pcie_driver 2015-03-06 11:47:28 -06:00
hotplug ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
pcie PCI/AER: Avoid info leak in __print_tlp_header() 2015-03-06 12:30:23 -06:00
access.c PCI: Add generic config accessors 2015-01-22 13:59:45 -06:00
ats.c
bus.c PCI: Use common resource list management code instead of private implementation 2015-02-05 15:09:25 +01:00
host-bridge.c PCI: Use common resource list management code instead of private implementation 2015-02-05 15:09:25 +01:00
hotplug-pci.c
htirq.c
iov.c
irq.c
Kconfig x86, irq: Make MSI and HT_IRQ indepenent of X86_IO_APIC 2014-12-16 14:08:17 +01:00
Makefile
msi.c PCI: Fail MSI-X mappings if there's no space assigned to MSI-X BAR 2015-01-28 09:25:57 -06:00
of.c
pci-acpi.c PCI / PM: Avoid resuming PCI devices during system suspend 2015-01-23 22:13:54 +01:00
pci-driver.c ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
pci-label.c
pci-stub.c
pci-sysfs.c PCI: Don't read past the end of sysfs "driver_override" buffer 2015-02-24 17:35:37 -06:00
pci.c ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
pci.h Merge branches 'pm-pci' and 'pm-cpuidle' 2015-02-10 16:07:10 +01:00
probe.c PCI: Use common resource list management code instead of private implementation 2015-02-05 15:09:25 +01:00
proc.c
quirks.c PCI changes for the v3.20 merge window: 2015-02-10 14:31:28 -08:00
remove.c
rom.c PCI: Fix infinite loop with ROM image of size 0 2015-01-23 17:42:59 -06:00
search.c
setup-bus.c PCI: Add pci_claim_bridge_resource() to clip window if necessary 2015-01-16 10:04:42 -06:00
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c