summaryrefslogtreecommitdiff
path: root/include/linux/genalloc.h
diff options
context:
space:
mode:
authorStefan O'Rear <sorear2@gmail.com>2018-12-16 13:03:36 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-20 10:25:46 +0100
commit2ab1483852b3502235c3496c09ecbc5808bdecf8 (patch)
tree936d32da3108796a1527b016a10d06f26e8ca0ec /include/linux/genalloc.h
parent22d6e72bb566880b37058587f504a7884ea4192f (diff)
riscv: Add pte bit to distinguish swap from invalid
commit e3613bb8afc2a9474c9214d65c8326c5ac02135e upstream. Previously, invalid PTEs and swap PTEs had the same binary representation, causing errors when attempting to unmap PROT_NONE mappings, including implicit unmap on exit. Typical error: swap_info_get: Bad swap file entry 40000000007a9879 BUG: Bad page map in process a.out pte:3d4c3cc0 pmd:3e521401 Cc: stable@vger.kernel.org Signed-off-by: Stefan O'Rear <sorear2@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/genalloc.h')
0 files changed, 0 insertions, 0 deletions