]> Git Repo - linux.git/commit
mm: numa: add paranoid check around pte_protnone_numa
authorMel Gorman <[email protected]>
Thu, 12 Feb 2015 22:58:41 +0000 (14:58 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Feb 2015 02:54:08 +0000 (18:54 -0800)
commitc0e7cad9f2390087b53e26e7b98958d8793ee02d
tree76b69e566d2106fc4a28c17654928cdfafc2c7e4
parentc819f37e7e174d68cd013abf33725b4e07ced023
mm: numa: add paranoid check around pte_protnone_numa

pte_protnone_numa is only safe to use after VMA checks for PROT_NONE are
complete.  Treating a real PROT_NONE PTE as a NUMA hinting fault is going
to result in strangeness so add a check for it.  BUG_ON looks like
overkill but if this is hit then it's a serious bug that could result in
corruption so do not even try recovering.  It would have been more
comprehensive to check VMA flags in pte_protnone_numa but it would have
made the API ugly just for a debugging check.

Signed-off-by: Mel Gorman <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Kirill Shutemov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/huge_memory.c
mm/memory.c
This page took 0.051317 seconds and 4 git commands to generate.