]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq/irq_sim: Initialize work context pointers properly
authorGyeyoung Baek <gye976@gmail.com>
Mon, 2 Feb 2026 08:27:28 +0000 (16:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:44:22 +0000 (16:44 +0100)
commitc71aa4bb528ae6f8fd7577a0a39e5a03c60b04fb
treee6b482ca3e447b809f245f917fa4a20dfb910073
parentbddab1586c50352cf3064a3e52b76e5fd2cd7cd4
genirq/irq_sim: Initialize work context pointers properly

[ Upstream commit 8a2277a3c9e4cc5398f80821afe7ecbe9bdf2819 ]

Initialize `ops` member's pointers properly by using kzalloc() instead of
kmalloc() when allocating the simulation work context. Otherwise the
pointers contain random content leading to invalid dereferencing.

Signed-off-by: Gyeyoung Baek <gye976@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250612124827.63259-1-gye976@gmail.com
[ The context change is due to the commit 011f583781fa
("genirq/irq_sim: add an extended irq_sim initializer")
which is irrelevant to the logic of this patch. ]
Signed-off-by: Rahul Sharma <black.hawk@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/irq_sim.c