diff options
| author | Andrew Jones <[email protected]> | 2025-02-17 08:45:09 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-02-17 10:58:28 +0000 |
| commit | e3219b0c491f2aa0e0b200a39d3352ab05cdda96 (patch) | |
| tree | 48a3ee77d3420dc8c2bbc6e384d4683e421a0c8e /net/unix/sysctl_net_unix.c | |
| parent | riscv: KVM: Fix hart suspend status check (diff) | |
| download | kernel-e3219b0c491f2aa0e0b200a39d3352ab05cdda96.tar.gz kernel-e3219b0c491f2aa0e0b200a39d3352ab05cdda96.zip | |
riscv: KVM: Fix hart suspend_type use
The spec says suspend_type is 32 bits wide and "In case the data is
defined as 32bit wide, higher privilege software must ensure that it
only uses 32 bit data." Mask off upper bits of suspend_type before
using it.
Fixes: 763c8bed8c05 ("RISC-V: KVM: Implement SBI HSM suspend call")
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
