diff options
| author | Jing Zhang <[email protected]> | 2024-11-07 21:41:34 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2024-11-11 19:50:14 +0000 |
| commit | 7fe28d7e68f92cc3d0668b8f2fbdf5c303ac3022 (patch) | |
| tree | 9f88eb8bf7611b48791de2dde99869fb9da0e5df /rust/helpers/task.c | |
| parent | Linux 6.12-rc5 (diff) | |
| download | kernel-7fe28d7e68f92cc3d0668b8f2fbdf5c303ac3022.tar.gz kernel-7fe28d7e68f92cc3d0668b8f2fbdf5c303ac3022.zip | |
KVM: arm64: vgic-its: Add a data length check in vgic_its_save_*
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: [email protected]
Signed-off-by: Kunkun Jiang <[email protected]>
[Jing: Update with the new entry read/write helpers]
Signed-off-by: Jing Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
