summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorJing Zhang <jingzhangos@google.com>2024-12-04 12:23:16 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 19:48:33 +0100
commitf4dbf393bfb42164d4e7e97e1dd3751ec699e2c8 (patch)
tree32cb765a12d0a3212f97929a7ce5b5fb44f38177 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentc3cded0ff622f5981eec06c35e1b8d375a3c2c27 (diff)
KVM: arm64: vgic-its: Add a data length check in vgic_its_save_*
commit 7fe28d7e68f92cc3d0668b8f2fbdf5c303ac3022 upstream. In all the vgic_its_save_*() functinos, they do not check whether the data length is 8 bytes before calling vgic_write_guest_lock. This patch adds the check. To prevent the kernel from being blown up when the fault occurs, KVM_BUG_ON() is used. And the other BUG_ON()s are replaced together. Cc: stable@vger.kernel.org Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com> [Jing: Update with the new entry read/write helpers] Signed-off-by: Jing Zhang <jingzhangos@google.com> Link: https://lore.kernel.org/r/20241107214137.428439-4-jingzhangos@google.com Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions