diff options
author | Jiang Biao | 2018-07-20 02:06:31 +0200 |
---|---|---|
committer | Thomas Gleixner | 2018-07-20 07:07:39 +0200 |
commit | b2b7d986a89b6c94b1331a909de1217214fb08c1 (patch) | |
tree | 9cce6d8e6a0860e7476f3b57172ded3e8159826b /arch/sh | |
parent | x86/entry/32: Add debug code to check entry/exit CR3 (diff) | |
download | kernel-qcow2-linux-b2b7d986a89b6c94b1331a909de1217214fb08c1.tar.gz kernel-qcow2-linux-b2b7d986a89b6c94b1331a909de1217214fb08c1.tar.xz kernel-qcow2-linux-b2b7d986a89b6c94b1331a909de1217214fb08c1.zip |
x86/pti: Check the return value of pti_user_pagetable_walk_p4d()
pti_user_pagetable_walk_p4d() can return NULL, so the return value should
be checked to prevent a NULL pointer dereference.
Add the check and a warning when the P4D allocation fails.
Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: dave.hansen@linux.intel.com
Cc: luto@kernel.org
Cc: hpa@zytor.com
Cc: albcamus@gmail.com
Cc: zhong.weidong@zte.com.cn
Link: https://lkml.kernel.org/r/1532045192-49622-1-git-send-email-jiang.biao2@zte.com.cn
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions