linux/drivers/pci
Rasmus Villemoes 2a4188fdc3 PCI/AER: Avoid info leak in __print_tlp_header()
commit a1b7f2f636 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-04-19 10:11:05 +02:00
..
host PCI: mvebu: Fix uninitialized variable in mvebu_get_tgt_attr() 2014-10-30 09:38:23 -07:00
hotplug PCI: shpchp: Check bridge's secondary (not primary) bus speed 2014-06-07 10:28:24 -07:00
pcie PCI/AER: Avoid info leak in __print_tlp_header() 2015-04-19 10:11:05 +02:00
Kconfig PCI: Convert ioapic to be builtin only, not modular 2014-01-03 14:31:38 -07:00
Makefile PCI: Add Virtual Channel to save/restore support 2013-12-17 17:39:08 -07:00
access.c PCI: Remove unused pci_vpd_truncate() 2014-01-13 11:14:43 -07:00
ats.c PCI: Removed unused parts of Page Request Interface support 2014-01-10 14:00:47 -07:00
bus.c PCI: Don't check resource_size() in pci_bus_alloc_resource() 2014-03-12 11:19:20 -06:00
host-bridge.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2013-12-21 10:06:10 -07:00
hotplug-pci.c
htirq.c
ioapic.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
iov.c PCI: Never treat a VF as a multifunction device 2014-01-10 10:05:26 -07:00
irq.c
msi.c PCI/MSI: Add device flag indicating that 64-bit MSIs don't work 2014-12-06 15:55:34 -08:00
of.c
pci-acpi.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
pci-driver.c PCI: Generate uppercase hex for modalias var in uevent 2015-03-06 14:43:23 -08:00
pci-label.c ACPI / PCI: Fix sysfs acpi_index and label errors 2014-09-05 16:34:15 -07:00
pci-stub.c
pci-sysfs.c PCI: Rename sysfs 'enabled' file back to 'enable' 2014-11-14 09:00:09 -08:00
pci.c PCI: Add flag for devices where we can't use bus reset 2015-01-29 17:40:48 -08:00
pci.h PCI: Make local functions static 2014-01-13 11:57:29 -07:00
probe.c PCI: Restore detection of read-only BARs 2015-01-16 06:59:30 -08:00
proc.c
quirks.c PCI: Mark Atheros AR93xx to avoid bus reset 2015-01-29 17:40:48 -08:00
remove.c Revert "PCI: Remove from bus_list and release resources in pci_release_dev()" 2014-02-01 10:24:31 -08:00
rom.c PCI: Fix infinite loop with ROM image of size 0 2015-03-06 14:43:23 -08:00
search.c
setup-bus.c Merge branch 'pci/resource' into next 2014-01-10 14:23:15 -07:00
setup-irq.c
setup-res.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2013-12-21 10:06:10 -07:00
slot.c PCI: Remove unused pci_renumber_slot() 2014-01-13 11:14:44 -07:00
syscall.c
vc.c PCI: Rename PCI_VC_PORT_REG1/2 to PCI_VC_PORT_CAP1/2 2013-12-17 17:49:39 -07:00
vpd.c
xen-pcifront.c Features: 2014-01-22 22:00:18 -08:00