mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
s390/mm: missing pte for gmap_ipte_notify should trigger a VM_BUG
After fixup_user_fault does not fail we have a writeable pte. That pte might transform but it should not vanish. Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
7a5388de5c
commit
6972cae523
1 changed files with 1 additions and 2 deletions
|
@ -752,8 +752,7 @@ int gmap_ipte_notify(struct gmap *gmap, unsigned long gaddr, unsigned long len)
|
||||||
break;
|
break;
|
||||||
/* Walk the process page table, lock and get pte pointer */
|
/* Walk the process page table, lock and get pte pointer */
|
||||||
ptep = get_locked_pte(gmap->mm, addr, &ptl);
|
ptep = get_locked_pte(gmap->mm, addr, &ptl);
|
||||||
if (unlikely(!ptep))
|
VM_BUG_ON(!ptep);
|
||||||
continue;
|
|
||||||
/* Set notification bit in the pgste of the pte */
|
/* Set notification bit in the pgste of the pte */
|
||||||
entry = *ptep;
|
entry = *ptep;
|
||||||
if ((pte_val(entry) & (_PAGE_INVALID | _PAGE_PROTECT)) == 0) {
|
if ((pte_val(entry) & (_PAGE_INVALID | _PAGE_PROTECT)) == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue