Re: [v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-25 Thread Yang Shi
On 7/24/19 5:44 PM, Andrew Morton wrote: On Wed, 24 Jul 2019 10:19:34 +0200 Vlastimil Babka wrote: On 7/23/19 7:35 AM, Yang Shi wrote: On 7/22/19 6:02 PM, Andrew Morton wrote: On Mon, 22 Jul 2019 09:25:09 +0200 Vlastimil Babka wrote: since there may be pages off LRU temporarily. We

Re: [v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-24 Thread Andrew Morton
On Wed, 24 Jul 2019 10:19:34 +0200 Vlastimil Babka wrote: > On 7/23/19 7:35 AM, Yang Shi wrote: > > > > > > On 7/22/19 6:02 PM, Andrew Morton wrote: > >> On Mon, 22 Jul 2019 09:25:09 +0200 Vlastimil Babka wrote: > >> > since there may be pages off LRU temporarily. We should migrate

Re: [v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-24 Thread Vlastimil Babka
On 7/23/19 7:35 AM, Yang Shi wrote: > > > On 7/22/19 6:02 PM, Andrew Morton wrote: >> On Mon, 22 Jul 2019 09:25:09 +0200 Vlastimil Babka wrote: >> since there may be pages off LRU temporarily. We should migrate other pages if MPOL_MF_MOVE* is specified. Set has_unmovable flag if

Re: [v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-22 Thread Yang Shi
On 7/22/19 6:02 PM, Andrew Morton wrote: On Mon, 22 Jul 2019 09:25:09 +0200 Vlastimil Babka wrote: since there may be pages off LRU temporarily. We should migrate other pages if MPOL_MF_MOVE* is specified. Set has_unmovable flag if some paged could not be not moved, then return -EIO for

Re: [v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-22 Thread Andrew Morton
On Mon, 22 Jul 2019 09:25:09 +0200 Vlastimil Babka wrote: > > since there may be pages off LRU temporarily. We should migrate other > > pages if MPOL_MF_MOVE* is specified. Set has_unmovable flag if some > > paged could not be not moved, then return -EIO for mbind() eventually. > > > > With

Re: [v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-22 Thread Vlastimil Babka
On 7/19/19 7:21 PM, Yang Shi wrote: > When running syzkaller internally, we ran into the below bug on 4.9.x > kernel: > > kernel BUG at mm/huge_memory.c:2124! > invalid opcode: [#1] SMP KASAN > Dumping ftrace buffer: >(ftrace buffer empty) > Modules linked in: > CPU: 0 PID: 1518 Comm:

[v4 PATCH 2/2] mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind

2019-07-19 Thread Yang Shi
When running syzkaller internally, we ran into the below bug on 4.9.x kernel: kernel BUG at mm/huge_memory.c:2124! invalid opcode: [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 1518 Comm: syz-executor107 Not tainted 4.9.168+ #2 Hardware name: