summaryrefslogtreecommitdiffstats
path: root/tools/power/x86
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-08-10 18:51:18 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-08-11 10:15:59 +0200
commit47f1204329237a0f8655f5a9f14a38ac81946ca1 (patch)
tree863782a6d372973865860a3e55d79a0cbd01880d /tools/power/x86
parentARM: 7486/1: sched_clock: update epoch_cyc on resume (diff)
downloadlinux-47f1204329237a0f8655f5a9f14a38ac81946ca1.tar.xz
linux-47f1204329237a0f8655f5a9f14a38ac81946ca1.zip
ARM: 7487/1: mm: avoid setting nG bit for user mappings that aren't present
Swap entries are encoding in ptes such that !pte_present(pte) and pte_file(pte). The remaining bits of the descriptor are used to identify the swapfile and offset within it to the swap entry. When writing such a pte for a user virtual address, set_pte_at unconditionally sets the nG bit, which (in the case of LPAE) will corrupt the swapfile offset and lead to a BUG: [ 140.494067] swap_free: Unused swap offset entry 000763b4 [ 140.509989] BUG: Bad page map in process rs:main Q:Reg pte:0ec76800 pmd:8f92e003 This patch fixes the problem by only setting the nG bit for user mappings that are actually present. Cc: <stable@vger.kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'tools/power/x86')
0 files changed, 0 insertions, 0 deletions