s390/mm: make pmd/pud_bad() report large entries as bad
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Fri, 6 Sep 2019 20:00:50 +0000 (22:00 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 31 Oct 2019 16:20:53 +0000 (17:20 +0100)
commit1c27a4bc817b89c0f97914ab93ab0bd74685d2f3
tree07064aa2fbc6af292fe25f8c830abee26a3c179d
parent011620688a71f2f1fe9901dbc2479a7c01053196
s390/mm: make pmd/pud_bad() report large entries as bad

The semantics of pmd/pud_bad() expect that large entries are reported as
bad, but we also check large entries for sanity.

There is currently no issue with this wrong behaviour, but let's conform
to the semantics by reporting large pmd/pud entries as bad, in order to
prevent future issues.

This was found by testing a patch from from Anshuman Khandual, which is
currently discussed on LKML ("mm/debug: Add tests validating architecture
page table helpers").

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/pgtable.h