diff options
| author | Marc Zyngier <[email protected]> | 2025-05-30 09:16:47 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2025-05-30 09:24:49 +0000 |
| commit | 4d62121ce9b58ea23c8d62207cbc604e98ecdc0a (patch) | |
| tree | e5b532e7b5107a32050a8554daed504c631f8e44 /rust/helpers | |
| parent | KVM: arm64: vgic-init: Plug vCPU vs. VGIC creation race (diff) | |
| download | kernel-4d62121ce9b58ea23c8d62207cbc604e98ecdc0a.tar.gz kernel-4d62121ce9b58ea23c8d62207cbc604e98ecdc0a.zip | |
KVM: arm64: vgic-debug: Avoid dereferencing NULL ITE pointer
Dan reports that iterating over a device ITEs can legitimately lead
to a NULL pointer, and that the NULL check is placed *after* the
pointer has already been dereferenced.
Hoist the pointer check as early as possible and be done with it.
Reported-by: Dan Carpenter <[email protected]>
Fixes: 30deb51a677b ("KVM: arm64: vgic-its: Add debugfs interface to expose ITS tables")
Link: https://lore.kernel.org/r/[email protected]
Cc: Jing Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
