Re: [PATCH v2 2/2] x86/pti: check the return value of pti_user_pagetable_walk_pmd

2018-07-17 Thread Dave Hansen
On 07/17/2018 12:23 AM, Jiang Biao wrote: > Check the return value of pti_user_pagetable_walk_pmd() to avoid > NULL pointer dereference. And add warning for fail allocation. For both of these: Acked-by: Dave Hansen It's minor, but if you redo these, I'd appreciate a slightly different form.

Re: [PATCH v2 2/2] x86/pti: check the return value of pti_user_pagetable_walk_pmd

2018-07-17 Thread Dave Hansen
On 07/17/2018 12:23 AM, Jiang Biao wrote: > Check the return value of pti_user_pagetable_walk_pmd() to avoid > NULL pointer dereference. And add warning for fail allocation. For both of these: Acked-by: Dave Hansen It's minor, but if you redo these, I'd appreciate a slightly different form.

[PATCH v2 2/2] x86/pti: check the return value of pti_user_pagetable_walk_pmd

2018-07-17 Thread Jiang Biao
Check the return value of pti_user_pagetable_walk_pmd() to avoid NULL pointer dereference. And add warning for fail allocation. Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index

[PATCH v2 2/2] x86/pti: check the return value of pti_user_pagetable_walk_pmd

2018-07-17 Thread Jiang Biao
Check the return value of pti_user_pagetable_walk_pmd() to avoid NULL pointer dereference. And add warning for fail allocation. Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index