Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-21 Thread Michal Hocko
On Tue 20-03-18 14:35:28, Mike Kravetz wrote: > On 03/20/2018 02:26 PM, Mike Kravetz wrote: > > Thanks Laurent! > > > > This bug was introduced by 31383c6865a5. Dan's changes for 31383c6865a5 > > seem pretty straight forward. It simply replaces an explicit check when > > splitting a vma to a

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-21 Thread Michal Hocko
On Tue 20-03-18 14:35:28, Mike Kravetz wrote: > On 03/20/2018 02:26 PM, Mike Kravetz wrote: > > Thanks Laurent! > > > > This bug was introduced by 31383c6865a5. Dan's changes for 31383c6865a5 > > seem pretty straight forward. It simply replaces an explicit check when > > splitting a vma to a

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-21 Thread Laurent Dufour
On 20/03/2018 22:35, Mike Kravetz wrote: > On 03/20/2018 02:26 PM, Mike Kravetz wrote: >> Thanks Laurent! >> >> This bug was introduced by 31383c6865a5. Dan's changes for 31383c6865a5 >> seem pretty straight forward. It simply replaces an explicit check when >> splitting a vma to a new vm_ops

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-21 Thread Laurent Dufour
On 20/03/2018 22:35, Mike Kravetz wrote: > On 03/20/2018 02:26 PM, Mike Kravetz wrote: >> Thanks Laurent! >> >> This bug was introduced by 31383c6865a5. Dan's changes for 31383c6865a5 >> seem pretty straight forward. It simply replaces an explicit check when >> splitting a vma to a new vm_ops

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-21 Thread Laurent Dufour
On 20/03/2018 22:26, Mike Kravetz wrote: > On 03/20/2018 10:25 AM, Laurent Dufour wrote: >> When running the sampler detailed below, the kernel, if built with the VM >> debug option turned on (as many distro do), is panicing with the following >> message : >> kernel BUG at

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-21 Thread Laurent Dufour
On 20/03/2018 22:26, Mike Kravetz wrote: > On 03/20/2018 10:25 AM, Laurent Dufour wrote: >> When running the sampler detailed below, the kernel, if built with the VM >> debug option turned on (as many distro do), is panicing with the following >> message : >> kernel BUG at

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-20 Thread Mike Kravetz
On 03/20/2018 02:26 PM, Mike Kravetz wrote: > Thanks Laurent! > > This bug was introduced by 31383c6865a5. Dan's changes for 31383c6865a5 > seem pretty straight forward. It simply replaces an explicit check when > splitting a vma to a new vm_ops split callout. Unfortunately, mappings > created

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-20 Thread Mike Kravetz
On 03/20/2018 02:26 PM, Mike Kravetz wrote: > Thanks Laurent! > > This bug was introduced by 31383c6865a5. Dan's changes for 31383c6865a5 > seem pretty straight forward. It simply replaces an explicit check when > splitting a vma to a new vm_ops split callout. Unfortunately, mappings > created

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-20 Thread Mike Kravetz
On 03/20/2018 10:25 AM, Laurent Dufour wrote: > When running the sampler detailed below, the kernel, if built with the VM > debug option turned on (as many distro do), is panicing with the following > message : > kernel BUG at /build/linux-jWa1Fv/linux-4.15.0/mm/hugetlb.c:3310! > Oops: Exception

Re: [PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-20 Thread Mike Kravetz
On 03/20/2018 10:25 AM, Laurent Dufour wrote: > When running the sampler detailed below, the kernel, if built with the VM > debug option turned on (as many distro do), is panicing with the following > message : > kernel BUG at /build/linux-jWa1Fv/linux-4.15.0/mm/hugetlb.c:3310! > Oops: Exception

[PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-20 Thread Laurent Dufour
When running the sampler detailed below, the kernel, if built with the VM debug option turned on (as many distro do), is panicing with the following message : kernel BUG at /build/linux-jWa1Fv/linux-4.15.0/mm/hugetlb.c:3310! Oops: Exception in kernel mode, sig: 5 [#1] LE SMP NR_CPUS=2048 NUMA

[PATCH] mm/hugetlb: prevent hugetlb VMA to be misaligned

2018-03-20 Thread Laurent Dufour
When running the sampler detailed below, the kernel, if built with the VM debug option turned on (as many distro do), is panicing with the following message : kernel BUG at /build/linux-jWa1Fv/linux-4.15.0/mm/hugetlb.c:3310! Oops: Exception in kernel mode, sig: 5 [#1] LE SMP NR_CPUS=2048 NUMA