Revert "arm64/mm: Drop redundant BUG_ON(!pgtable_alloc)"
authorWill Deacon <will@kernel.org>
Mon, 21 Nov 2022 12:52:07 +0000 (12:52 +0000)
committerWill Deacon <will@kernel.org>
Mon, 21 Nov 2022 12:52:07 +0000 (12:52 +0000)
commit32d495b0c3305546f4773b9aafcd4e90188ddb9e
tree62c5d3d2559e19ced1f196ca522925b3c0a68790
parent5b468dad6e5cf4998bdc05efbc5526c111666027
Revert "arm64/mm: Drop redundant BUG_ON(!pgtable_alloc)"

This reverts commit 9ed2b4616d4e846ece2a04cb5007ce1d1bd9e3f3.

Nathan reports early boot failures bisected to this change which look
related to the kPTI nG repainting. In any case, consolidating the
BUG_ON()s to a single location needs more thought, so revert the change
until this is figured out properly.

Link: https://lore.kernel.org/r/Y3pS5fdZ3MdLZ00t@dev-arch.thelio-3990X
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/mmu.c