[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <SJ1PR11MB60832250A17E982F8EA3BA14FC34A@SJ1PR11MB6083.namprd11.prod.outlook.com>
Date: Fri, 15 Aug 2025 15:51:46 +0000
From: "Luck, Tony" <tony.luck@...el.com>
To: Charles Han <hanchunchao@...pur.com>, "rafael@...nel.org"
<rafael@...nel.org>, "bp@...en8.de" <bp@...en8.de>, "guohanjun@...wei.com"
<guohanjun@...wei.com>, "mchehab@...nel.org" <mchehab@...nel.org>,
"xueshuai@...ux.alibaba.com" <xueshuai@...ux.alibaba.com>, "lenb@...nel.org"
<lenb@...nel.org>, "Weiny, Ira" <ira.weiny@...el.com>,
"zaidal@...amperecomputing.com" <zaidal@...amperecomputing.com>,
"Jonathan.Cameron@...wei.com" <Jonathan.Cameron@...wei.com>,
"colin.i.king@...il.com" <colin.i.king@...il.com>, "dan.carpenter@...aro.org"
<dan.carpenter@...aro.org>, "Williams, Dan J" <dan.j.williams@...el.com>,
"sudeep.holla@....com" <sudeep.holla@....com>
CC: "linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] ACPI: APEI: EINJ: fix potential NULL dereference in
__einj_error_inject
> The __einj_error_inject() function allocates memory via kmalloc()
> without checking for allocation failure, which could lead to a
> NULL pointer dereference.
>
> Return -ENOMEM in case allocation fails.
>
> Fixes: b47610296d17 ("ACPI: APEI: EINJ: Enable EINJv2 error injections")
> Signed-off-by: Charles Han <hanchunchao@...pur.com>
Reviewed-by: Tony Luck <tony.luck@...el.com>
-Tony
Powered by blists - more mailing lists