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

From: Mike Kravetz
Date: Tue Mar 20 2018 - 17:35:45 EST


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 via shmget/shmat have their vm_ops replaced. Therefore, this
> split callout is never made.
>
> The shm vm_ops do indirectly call the original vm_ops routines as needed.
> Therefore, I would suggest a patch something like the following instead.
> If we move forward with the patch, we should include Laurent's BUG output
> and perhaps test program in the commit message.

Sorry, patch in previous mail was a mess