Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1350409 > unrolled thread

Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

Started byBjorn Helgaas <helgaas@kernel.org>
First post2016-03-04 17:30 +0100
Last post2016-03-07 15:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr()  on ARM Bjorn Helgaas <helgaas@kernel.org> - 2016-03-04 17:30 +0100
    Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM khalasa@piap.pl (Krzysztof Hałasa) - 2016-03-07 15:00 +0100

#1350409 — Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

FromBjorn Helgaas <helgaas@kernel.org>
Date2016-03-04 17:30 +0100
SubjectRe: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM
Message-ID<r90M2-Y1-21@gated-at.bofh.it>
On Fri, Mar 04, 2016 at 07:13:49AM +0100, Krzysztof Hałasa wrote:
> Hi Bjorn,
> 
> Bjorn Helgaas <helgaas@kernel.org> writes:
> 
> > On Tue, Mar 01, 2016 at 07:07:18AM +0100, Krzysztof Hałasa wrote:
> >> Many ARM platforms use a wrapper:
> >> /*
> >>  * Compatibility wrapper for older platforms that do not care about
> >>  * passing the parent device.
> >>  */
> >> static inline void pci_common_init(struct hw_pci *hw)
> >> {
> >>         pci_common_init_dev(NULL, hw);
> >> }
> >> 
> >> which means that pci_bus_assign_domain_nr() can be called without
> >> a parent. This patch fixes the NULL pointer dereference.
> >
> > What exactly is the impact of this?  Does this fix need to be in v4.5?
> > It sounds like it should be, but I need a little more detailed
> > justification, e.g., "platforms X, Y, Z don't boot at all without
> > this change."
> 
> At least CNS3xxx doesn't boot. I haven't verified a couple of others,
> but they may be broken as well.

Good, thanks.  Also (I should have asked this before), please include a
"Fixes:" line so we know exactly when this broke and what stable kernels
need the fix.

Bjorn

[toc] | [next] | [standalone]


#1351612 — Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

Fromkhalasa@piap.pl (Krzysztof Hałasa)
Date2016-03-07 15:00 +0100
SubjectRe: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM
Message-ID<ra3Rv-3xE-3@gated-at.bofh.it>
In reply to#1350409
Bjorn Helgaas <helgaas@kernel.org> writes:

>> At least CNS3xxx doesn't boot. I haven't verified a couple of others,
>> but they may be broken as well.
>
> Good, thanks.  Also (I should have asked this before), please include a
> "Fixes:" line so we know exactly when this broke and what stable kernels
> need the fix.

The problem started here:

Fixes: 8c7d14746abc ("ARM/PCI: Move to generic PCI domains")

It means the patch should be applicable starting with v4.0, and ...
indeed v4.0 with the patch boots correctly, while v4.0 without the patch
does not.

Thanks.
-- 
Krzysztof Halasa

Industrial Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web