Re: [PATCH] mm: Fix warning in move_normal_pmd()

2020-07-15 Thread Kirill A. Shutemov
On Wed, Jul 15, 2020 at 09:14:51AM -0400, Joel Fernandes wrote: > On Wed, Jul 15, 2020 at 03:35:13PM +0300, Kirill A. Shutemov wrote: > > mremap(2) does not allow source and destination regions to overlap, but > > shift_arg_pages() calls move_page_tables() directly and in this case the > > source

Re: [PATCH] mm: Fix warning in move_normal_pmd()

2020-07-15 Thread Joel Fernandes
On Wed, Jul 15, 2020 at 03:35:13PM +0300, Kirill A. Shutemov wrote: > mremap(2) does not allow source and destination regions to overlap, but > shift_arg_pages() calls move_page_tables() directly and in this case the > source and destination overlap often. It confuses move_normal_pmd(): > >

[PATCH] mm: Fix warning in move_normal_pmd()

2020-07-15 Thread Kirill A. Shutemov
mremap(2) does not allow source and destination regions to overlap, but shift_arg_pages() calls move_page_tables() directly and in this case the source and destination overlap often. It confuses move_normal_pmd(): WARNING: CPU: 3 PID: 27091 at mm/mremap.c:211 move_page_tables+0x6ef/0x720