linux-stable/arch/riscv/include
Stefan O'Rear 2ab1483852 riscv: Add pte bit to distinguish swap from invalid
commit e3613bb8af 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>
2019-02-20 10:25:46 +01:00
..
asm riscv: Add pte bit to distinguish swap from invalid 2019-02-20 10:25:46 +01:00
uapi/asm RISC-V: Don't use a global include guard for uapi/asm/syscalls.h 2018-08-20 10:55:24 -07:00