Re: [PATCH] x86: Fix possible null-pointer dereferences in untrack_pfn()

2019-07-24 Thread Thomas Gleixner
On Wed, 24 Jul 2019, Thomas Gleixner wrote: > On Tue, 23 Jul 2019, Jia-Ju Bai wrote: > > > In untrack_pfn(), there is an if statement on line 1058 to check whether > > vma is NULL: > > if (vma && !(vma->vm_flags & VM_PAT)) > > > > When vma is NULL, vma is used on line 1064: > > if

Re: [PATCH] x86: Fix possible null-pointer dereferences in untrack_pfn()

2019-07-24 Thread Thomas Gleixner
On Tue, 23 Jul 2019, Jia-Ju Bai wrote: > In untrack_pfn(), there is an if statement on line 1058 to check whether > vma is NULL: > if (vma && !(vma->vm_flags & VM_PAT)) > > When vma is NULL, vma is used on line 1064: > if (follow_phys(vma, vma->vm_start, 0, , )) > and line 1069: >

[PATCH] x86: Fix possible null-pointer dereferences in untrack_pfn()

2019-07-23 Thread Jia-Ju Bai
In untrack_pfn(), there is an if statement on line 1058 to check whether vma is NULL: if (vma && !(vma->vm_flags & VM_PAT)) When vma is NULL, vma is used on line 1064: if (follow_phys(vma, vma->vm_start, 0, , )) and line 1069: size = vma->vm_end - vma->vm_start; Thus, possible