[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aMNePLmIkz3LE6EP@kbusch-mbp>
Date: Thu, 11 Sep 2025 19:41:48 -0400
From: Keith Busch <kbusch@...nel.org>
To: Bjorn Helgaas <helgaas@...nel.org>
Cc: Vernon Yang <vernon2gm@...il.com>, mahesh@...ux.ibm.com,
bhelgaas@...gle.com, oohall@...il.com,
linuxppc-dev@...ts.ozlabs.org, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, Vernon Yang <yanglincheng@...inos.cn>,
Terry Bowman <terry.bowman@....com>,
Robert Richter <rrichter@....com>, linux-cxl@...r.kernel.org,
Smita Koralahalli <Smita.KoralahalliChannabasappa@....com>,
Dongdong Liu <liudongdong3@...wei.com>
Subject: Re: [PATCH] PCI/AER: Fix NULL pointer access by aer_info
On Thu, Sep 11, 2025 at 05:54:57PM -0500, Bjorn Helgaas wrote:
> [+cc Terry, Robert, CXL list, Smita, Dongdong]
>
> On Fri, Sep 05, 2025 at 02:25:27AM +0800, Vernon Yang wrote:
> > From: Vernon Yang <yanglincheng@...inos.cn>
> >
> > The kzalloc(GFP_KERNEL) may return NULL, so all accesses to
> > aer_info->xxx will result in kernel panic. Fix it.
> >
> > Signed-off-by: Vernon Yang <yanglincheng@...inos.cn>
>
> Applied to pci/aer for v6.18, thanks, Vernon!
>
> Not directly related to this patch, but I'm concerned about some users
> of dev->aer_cap.
pci_aer_init is called pretty early during boot. If we can't malloc a
few hundred bytes at that point, the aer_cap users will be the least of
your concerns. :)
Powered by blists - more mailing lists