mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
sparc64: Add basic validations to {pud,pmd}_bad().
Instead of returning false we should at least check the most basic things, otherwise page table corruptions will be very difficult to debug. PMD and PTE tables are of size PAGE_SIZE, so none of the sub-PAGE_SIZE bits should be set. We also complement this with a check that the physical address the pud/pmd points to is valid memory. PowerPC was used as a guide while implementating this. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0eef331a3d
commit
26cf432551
1 changed files with 31 additions and 15 deletions
Loading…
Add table
Add a link
Reference in a new issue