summaryrefslogtreecommitdiffstats
path: root/fs/debugfs
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2008-05-20 14:59:47 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-20 17:14:45 +0200
commita8375bd81cf99cb81be37127eaf08316ecb87619 (patch)
tree8a657fe7e1a4afc762c0dafab10cfa89006dadc6 /fs/debugfs
parentxen: use PTE_MASK in pte_mfn() (diff)
downloadlinux-a8375bd81cf99cb81be37127eaf08316ecb87619.tar.xz
linux-a8375bd81cf99cb81be37127eaf08316ecb87619.zip
x86: strengthen 64-bit p?d_bad()
The x86_64 pgd_bad(), pud_bad(), pmd_bad() inlines have differed from their x86_32 counterparts in a couple of ways: they've been unnecessarily weak (e.g. letting 0 or 1 count as good), and were typed as unsigned long. Strengthen them and return int. The PAE pmd_bad was too weak before, allowing any junk in the upper half; but got strengthened by the patch correcting its ~PAGE_MASK to ~PTE_MASK. The PAE pud_bad already said ~PTE_MASK; and since it folds into pgd_bad, and we don't set the protection bits at that level, it'll do as is. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions