Re: [PATCH RESEND] iommu/amd: Fix BUG when faulting a PROT_NONE VMA

2015-10-15 Thread Joerg Roedel
On Wed, Oct 14, 2015 at 11:56:00AM -0500, Jay Cornwall wrote: > On 2015-10-14 04:10, Joerg Roedel wrote: > >Hi Jay, > > > >On Tue, Oct 13, 2015 at 04:52:43AM -0500, Jay Cornwall wrote: > >>handle_mm_fault indirectly triggers a BUG in do_numa_page when given > >>a VMA without read/write/execute acce

Re: [PATCH RESEND] iommu/amd: Fix BUG when faulting a PROT_NONE VMA

2015-10-14 Thread Jay Cornwall
On 2015-10-14 04:10, Joerg Roedel wrote: Hi Jay, On Tue, Oct 13, 2015 at 04:52:43AM -0500, Jay Cornwall wrote: handle_mm_fault indirectly triggers a BUG in do_numa_page when given a VMA without read/write/execute access. Check this condition in do_fault. do_fault -> handle_mm_fault -> handle

Re: [PATCH RESEND] iommu/amd: Fix BUG when faulting a PROT_NONE VMA

2015-10-14 Thread Joerg Roedel
Hi Jay, On Tue, Oct 13, 2015 at 04:52:43AM -0500, Jay Cornwall wrote: > handle_mm_fault indirectly triggers a BUG in do_numa_page when given > a VMA without read/write/execute access. Check this condition in do_fault. > > do_fault -> handle_mm_fault -> handle_pte_fault -> do_numa_page > > mm/m

[PATCH RESEND] iommu/amd: Fix BUG when faulting a PROT_NONE VMA

2015-10-13 Thread Jay Cornwall
handle_mm_fault indirectly triggers a BUG in do_numa_page when given a VMA without read/write/execute access. Check this condition in do_fault. do_fault -> handle_mm_fault -> handle_pte_fault -> do_numa_page mm/memory.c 3147 static int do_numa_page(struct mm_struct *mm, struct vm_area_st...