android_kernel_oneplus_msm8998/arch/arm64
James Morse 66859cc29f arm64: hibernate: Support DEBUG_PAGEALLOC
DEBUG_PAGEALLOC removes the valid bit of page table entries to prevent
any access to unallocated memory. Hibernate uses this as a hint that those
pages don't need to be saved/restored. This patch adds the
kernel_page_present() function it uses.

hibernate.c copies the resume kernel's linear map for use during restore.
Add _copy_pte() to fill-in the holes made by DEBUG_PAGEALLOC in the resume
kernel, so we can restore data the original kernel had at these addresses.

Finally, DEBUG_PAGEALLOC means the linear-map alias of KERNEL_START to
KERNEL_END may have holes in it, so we can't lazily clean this whole
area to the PoC. Only clean the new mmuoff region, and the kernel/kvm
idmaps.

This reverts commit da24eb1f3f9e2c7b75c5f8c40d8e48e2c4789596.

Change-Id: I862226802c9c726590c89e3d9e8062ed680309f3
Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Git-Commit: 5ebe3a44cc744d11cb60d8438106a9322b7c04dc
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Arun KS <arunks@codeaurora.org>
2018-08-07 15:56:05 -07:00
..
boot Merge android-4.4.118 (5f7f76a) into msm-4.4 2018-03-01 17:20:34 +05:30
configs defconfig: msm: Enable QUOTA encryption support 2018-07-30 02:08:10 -07:00
crypto BACKPORT, FROMLIST: crypto: arm64/speck - add NEON-accelerated implementation of Speck-XTS 2018-03-24 09:42:06 +00:00
include arm64: hibernate: Support DEBUG_PAGEALLOC 2018-08-07 15:56:05 -07:00
kernel arm64: hibernate: Support DEBUG_PAGEALLOC 2018-08-07 15:56:05 -07:00
kvm Merge android-4.4.113 (ef588ef) into msm-4.4 2018-01-24 18:27:37 +05:30
lib UPSTREAM: arm64/efi: Make strnlen() available to the EFI namespace 2018-02-06 11:56:18 +05:30
mm arm64: hibernate: Support DEBUG_PAGEALLOC 2018-08-07 15:56:05 -07:00
net
xen FROMLIST: arm64: kpti: Fix the interaction between ASID switching and software PAN 2018-01-18 18:19:10 +00:00
Kconfig arch: arm64: Reenable HW breakpoint 2018-07-30 21:36:13 -07:00
Kconfig.debug
Kconfig.platforms Merge android-4.4.118 (5f7f76a) into msm-4.4 2018-03-01 17:20:34 +05:30
Makefile BACKPORT: arm64: relocatable: suppress R_AARCH64_ABS64 relocations in vmlinux 2017-10-29 13:10:27 +00:00