[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87o7f0sry8.ffs@tglx>
Date: Fri, 08 Dec 2023 15:13:19 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Haoran Liu <liuhaoran14@....com>, tsbogend@...ha.franken.de
Cc: fancer.lancer@...il.com, linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org, Haoran Liu <liuhaoran14@....com>
Subject: Re: [PATCH] [irqchip] mips-cpu: Add error handling in
mips_cpu_register_ipi_domain
On Wed, Nov 29 2023 at 20:06, Haoran Liu wrote:
The subject line:
https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#patch-subject
> This patch enhances the mips_cpu_register_ipi_domain function in
# git grep 'This patch' Documentation/process/
> drivers/irqchip/irq-mips-cpu.c by adding error handling for the
> kzalloc
The file name is irrelevant. Please read and follow:
https://www.kernel.org/doc/html/latest/process/maintainer-tip.html
> call. Previously, the function lacked proper handling for kzalloc
> failures, which could lead to potential null pointer dereference issues
> under low memory conditions.
The value of this "enhancement" is dubious. if that kzalloc() fails then
any subsequent allocation will fail too and the machine will crash
anyway.
Powered by blists - more mailing lists