Re: [PATCH] mm: Close race between munmap() and expand_upwards()/downwards()

2020-07-10 Thread Yang Shi
On 7/9/20 3:53 AM, Kirill A. Shutemov wrote: VMA with VM_GROWSDOWN or VM_GROWSUP flag set can change their size under mmap_read_lock(). It can lead to race with __do_munmap(): Thread AThread B __do_munmap() detach_vmas_to_be_unmapped()

Re: [PATCH] mm: Close race between munmap() and expand_upwards()/downwards()

2020-07-10 Thread Vlastimil Babka
On 7/9/20 12:53 PM, Kirill A. Shutemov wrote: > VMA with VM_GROWSDOWN or VM_GROWSUP flag set can change their size under > mmap_read_lock(). It can lead to race with __do_munmap(): > > Thread AThread B > __do_munmap() > detach_vmas_to_be_unmapped() >

[PATCH] mm: Close race between munmap() and expand_upwards()/downwards()

2020-07-09 Thread Kirill A. Shutemov
VMA with VM_GROWSDOWN or VM_GROWSUP flag set can change their size under mmap_read_lock(). It can lead to race with __do_munmap(): Thread AThread B __do_munmap() detach_vmas_to_be_unmapped() mmap_write_downgrade()