Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1220006
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 3/4] powerpc: PCI: Fix lookup of linux,pci-probe-only property |
| Date | 2015-09-07 11:00 +0200 |
| Message-ID | <q60ro-F2-11@gated-at.bofh.it> (permalink) |
| References | <q52vg-7V0-17@gated-at.bofh.it> <q52vi-7V0-55@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 2015-09-04 at 17:50 +0100, Marc Zyngier wrote: > When find_and_init_phbs() looks for the probe-only property, it seems > to trust the firmware to be correctly written, and assumes that there > is a parameter to the property. > > It is conceivable that the firmware could not be that perfect, and it > could expose this property naked (at least one arm64 platform seems to > exhibit this exact behaviour). The setup code the ends up making > a decision based on whatever the property pointer points to, which > is likely to be junk. > > Instead, switch to the common of_pci.c implementation that doesn't > suffer from this problem and ignore the property if the firmware > couldn't make up its mind. > > Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> > --- > arch/powerpc/platforms/pseries/setup.c | 14 ++------------ Thanks. I can't find any powerpc machine that is currently using this, or much info on what ever did use it, so I think it's pretty low impact, and the change looks sane. Acked-by: Michael Ellerman <mpe@ellerman.id.au> cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/4] PCI: arm64/powerpc: Fix parsing of linux,pci-probe-only Marc Zyngier <marc.zyngier@arm.com> - 2015-09-04 19:00 +0200
[PATCH v4 3/4] powerpc: PCI: Fix lookup of linux,pci-probe-only property Marc Zyngier <marc.zyngier@arm.com> - 2015-09-04 19:00 +0200
Re: [PATCH v4 3/4] powerpc: PCI: Fix lookup of linux,pci-probe-only property Michael Ellerman <mpe@ellerman.id.au> - 2015-09-07 11:00 +0200
Re: [PATCH v4 0/4] PCI: arm64/powerpc: Fix parsing of linux,pci-probe-only Rob Herring <robherring2@gmail.com> - 2015-09-04 21:00 +0200
Re: [PATCH v4 0/4] PCI: arm64/powerpc: Fix parsing of linux,pci-probe-only Bjorn Helgaas <bhelgaas@google.com> - 2015-09-17 17:40 +0200
Re: [PATCH v4 0/4] PCI: arm64/powerpc: Fix parsing of linux,pci-probe-only Marc Zyngier <marc.zyngier@arm.com> - 2015-09-17 19:20 +0200
Re: [PATCH v4 0/4] PCI: arm64/powerpc: Fix parsing of linux,pci-probe-only Bjorn Helgaas <bhelgaas@google.com> - 2015-09-17 19:30 +0200
csiph-web