2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/arch/powerpc/platforms/pseries
Nathan Lynch 9938c474f3 [POWERPC] linux,tce-size property is 32 bits
The "linux,tce-size" property is only 32 bits (see
prom_initialize_tce_table() in arch/powerpc/kernel/prom_init.c).
Treating it as an unsigned long in iommu_table_setparms() leads to
access beyond the end of the property's buffer, so we pass garbage to
the memset() in that function.

[boot]0020 XICS Init
i8259 legacy interrupt controller initialized
[boot]0021 XICS Done
PID hash table entries: 4096 (order: 12, 32768 bytes)
cpu 0x0: Vector: 300 (Data Access) at [c0000000fe783850]
    pc: c000000000035e90: .memset+0x60/0xfc
    lr: c000000000044fa4: .iommu_table_setparms+0xb0/0x158
    sp: c0000000fe783ad0
   msr: 9000000000009032
   dar: c000000100000000
 dsisr: 42010000
  current = 0xc00000000450e810
  paca    = 0xc000000000411580
    pid   = 1, comm = swapper
enter ? for help
[link register   ] c000000000044fa4 .iommu_table_setparms+0xb0/0x158
[c0000000fe783ad0] c000000000044f4c .iommu_table_setparms+0x58/0x158
(unreliable)
[c0000000fe783b70] c00000000004529c
.iommu_bus_setup_pSeries+0x1c4/0x254
[c0000000fe783c00] c00000000002b8ac .do_bus_setup+0x3c/0xe4
[c0000000fe783c80] c00000000002c924 .pcibios_fixup_bus+0x64/0xd8
[c0000000fe783d00] c0000000001a2d5c .pci_scan_child_bus+0x6c/0x10c
[c0000000fe783da0] c00000000002be28 .scan_phb+0x17c/0x1b4
[c0000000fe783e40] c0000000003cfa00 .pcibios_init+0x58/0x19c
[c0000000fe783ec0] c0000000000094b4 .init+0x1e8/0x3d8
[c0000000fe783f90] c000000000026e54 .kernel_thread+0x4c/0x68

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-10-06 21:10:41 +10:00
..
eeh_cache.c [POWERPC] EEH: balance pcidev_get/put calls 2006-09-21 22:59:08 +10:00
eeh_driver.c [POWERPC] EEH: support MMIO enable recovery step 2006-09-21 22:59:20 +10:00
eeh_event.c [POWERPC] pseries: Constify & voidify get_property() 2006-07-31 15:55:04 +10:00
eeh.c [POWERPC] EEH failure to mark pci slot as frozen. 2006-09-26 15:41:03 +10:00
firmware.c [POWERPC] pseries: Constify & voidify get_property() 2006-07-31 15:55:04 +10:00
firmware.h [PATCH] powerpc: Move pSeries firmware feature setup into platforms/pseries 2006-02-10 16:52:03 +11:00
hvCall_inst.c [PATCH] inode_diet: Replace inode.u.generic_ip with inode.i_private 2006-09-27 08:26:17 -07:00
hvCall.S [POWERPC] powerpc: Instrument Hypervisor Calls 2006-09-13 18:39:53 +10:00
hvconsole.c [POWERPC] clean up pseries hcall interfaces 2006-08-01 16:19:15 +10:00
hvcserver.c [PATCH] powerpc/pseries: Change H_StudlyCaps to H_SHOUTING_CAPS 2006-04-01 22:36:57 +11:00
iommu.c [POWERPC] linux,tce-size property is 32 bits 2006-10-06 21:10:41 +10:00
Kconfig powerpc: Disallow lparcfg being a module 2006-03-14 11:35:37 +11:00
lpar.c [POWERPC] Implement SLB shadow buffer 2006-08-08 17:08:56 +10:00
Makefile [POWERPC] powerpc: Instrument Hypervisor Calls 2006-09-13 18:39:53 +10:00
nvram.c [POWERPC] pseries: Constify & voidify get_property() 2006-07-31 15:55:04 +10:00
pci_dlpar.c [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
pci.c [POWERPC] pseries: Constify & voidify get_property() 2006-07-31 15:55:04 +10:00
plpar_wrappers.h [POWERPC] Implement SLB shadow buffer 2006-08-08 17:08:56 +10:00
ras.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
ras.h [PATCH] cell: enable pause(0) in cpu_idle 2006-01-09 15:44:32 +11:00
reconfig.c Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
rtasd.c [POWERPC] pseries: Constify & voidify get_property() 2006-07-31 15:55:04 +10:00
scanlog.c [POWERPC] RTAS delay, fix module build breaks 2006-06-21 15:01:27 +10:00
setup.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
smp.c [POWERPC] Cleanup CPU inits 2006-08-25 13:27:35 +10:00
xics.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
xics.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00