[lvc-project] Fwd: [PATCH 5.10.y] genirq/ipi: Fix NULL pointer deref in irq_data_get_affinity_mask()
Fedor Pchelkin
pchelkin at ispras.ru
Fri Sep 20 21:14:49 MSK 2024
On Tue, 17. Sep 23:35, Sergey Shtylyov wrote:
> Забыл поствит lvc-project at linuxtesting.org в CC...
>
> -------- Forwarded Message --------
> Subject: [PATCH 5.10.y] genirq/ipi: Fix NULL pointer deref in irq_data_get_affinity_mask()
> Date: Tue, 17 Sep 2024 23:30:39 +0300
> From: Sergey Shtylyov <s.shtylyov at omp.ru>
> Organization: Open Mobile Platform
> To: linux-kernel at vger.kernel.org, stable at vger.kernel.org
> CC: Thomas Gleixner <tglx at linutronix.de>
>
> [ Upstream commit feabecaff5902f896531dde90646ca5dfa9d4f7d ]
>
> If ipi_send_{mask|single}() is called with an invalid interrupt number, all
> the local variables there will be NULL. ipi_send_verify() which is invoked
> from these functions does verify its 'data' parameter, resulting in a
> kernel oops in irq_data_get_affinity_mask() as the passed NULL pointer gets
> dereferenced.
>
> Add a missing NULL pointer check in ipi_send_verify()...
>
> Found by Linux Verification Center (linuxtesting.org) with the SVACE static
> analysis tool.
>
> Fixes: 3b8e29a82dd1 ("genirq: Implement ipi_send_mask/single()")
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
> Link: https://lore.kernel.org/r/b541232d-c2b6-1fe9-79b4-a7129459e4d0@omp.ru
Добавлено в LVC-5.10. Спасибо!
More information about the lvc-project
mailing list