summaryrefslogtreecommitdiff
path: root/drivers/clocksource/mps2-timer.c
diff options
context:
space:
mode:
authorClaudio Imbrenda <imbrenda@linux.ibm.com>2023-07-05 13:19:37 +0200
committerClaudio Imbrenda <imbrenda@linux.ibm.com>2023-07-18 11:21:51 +0200
commitc2fceb59bbda16468bda82b002383bff59de89ab (patch)
treee32cb6b322c0fb704826a7f9e0b454c0c2aeecc7 /drivers/clocksource/mps2-timer.c
parent5ff92181577a89ed12ad4e0e5813751faf16a139 (diff)
KVM: s390: pv: fix index value of replaced ASCE
The index field of the struct page corresponding to a guest ASCE should be 0. When replacing the ASCE in s390_replace_asce(), the index of the new ASCE should also be set to 0. Having the wrong index might lead to the wrong addresses being passed around when notifying pte invalidations, and eventually to validity intercepts (VM crash) if the prefix gets unmapped and the notifier gets called with the wrong address. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Fixes: faa2f72cb356 ("KVM: s390: pv: leak the topmost page table when destroy fails") Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-ID: <20230705111937.33472-3-imbrenda@linux.ibm.com>
Diffstat (limited to 'drivers/clocksource/mps2-timer.c')
0 files changed, 0 insertions, 0 deletions