3133 static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
3134                    unsigned long addr, pte_t pte, pte_t *ptep, pmd_t *pmd)
3135 {
/* ... */
3144 
3145         /* A PROT_NONE fault should not end up here */
3146         BUG_ON(!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)));
3147 


3235 static int handle_pte_fault(struct mm_struct *mm,
3236                      struct vm_area_struct *vma, unsigned long address,
3237                      pte_t *pte, pmd_t *pmd, unsigned int flags)
3238 {
/* ... */
3265         if (pte_protnone(entry))
3266                 return do_numa_page(mm, vma, address, entry, pte, pmd);
3267 

handle_pte_fault() appears to ensure that it calls do_numa_page() only
on the exact condition do_numa_page() considers a bug.

http://lxr.free-electrons.com/source/mm/memory.c?v=4.2#L3146
http://lxr.free-electrons.com/source/mm/memory.c?v=4.2#L3266

** Changed in: linux-lts-wily (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1545401

Title:
  "kernel BUG at /build/linux-lts-wily-Vv6Eyd/linux-lts-
  wily-4.2.0/mm/memory.c:3146!"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-wily/+bug/1545401/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to