]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/pgtable: Fix check for pgste/storage key handling
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 27 May 2013 14:19:55 +0000 (16:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:53:05 +0000 (12:53 -0700)
commit52f36be0f4e2fafa5dd85fbd6508bbfba314fd58
tree78202186ad4059b15ca00f2f92d8da278db1630e
parentf64747c92f852b35b870408cbc82ffa4f1ce76b8
s390/pgtable: Fix check for pgste/storage key handling

commit b56433cb782d1cc7e44fc46d2ce3917fa75d2236 upstream.

pte_present might return true on PAGE_TYPE_NONE, even if
the invalid bit is on. Modify the existing check of the
pgste functions to avoid crashes.

[ Martin Schwidefsky: added ptep_modify_prot_[start|commit] bits ]

Reported-by: Martin Schwidefky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/pgtable.h