From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752439AbcAZVFj (ORCPT ); Tue, 26 Jan 2016 16:05:39 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36630 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751215AbcAZVFh (ORCPT ); Tue, 26 Jan 2016 16:05:37 -0500 Date: Tue, 26 Jan 2016 23:05:34 +0200 From: "Kirill A. Shutemov" To: Andrew Morton Cc: Dmitry Vyukov , Doug Gilbert , David Rientjes , Naoya Horiguchi , "Kirill A. Shutemov" , Shiraz Hashim , "linux-mm@kvack.org" , LKML , Hugh Dickins , Sasha Levin , syzkaller , Kostya Serebryany , Alexander Potapenko , linux-scsi@vger.kernel.org Subject: Re: mm: VM_BUG_ON_PAGE(PageTail(page)) in mbind Message-ID: <20160126210534.GA22852@node.shutemov.name> References: <20160126202829.GA21250@node.shutemov.name> <20160126124916.1f4ed291a6e4bcf19b74b7f7@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160126124916.1f4ed291a6e4bcf19b74b7f7@linux-foundation.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2016 at 12:49:16PM -0800, Andrew Morton wrote: > On Tue, 26 Jan 2016 22:28:29 +0200 "Kirill A. Shutemov" wrote: > > > Let's mark the VMA as VM_IO to indicate to mm core that the VMA is > > migratable. > > > > ... > > > > --- a/drivers/scsi/sg.c > > +++ b/drivers/scsi/sg.c > > @@ -1261,7 +1261,7 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma) > > } > > > > sfp->mmap_called = 1; > > - vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; > > + vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; > > vma->vm_private_data = sfp; > > vma->vm_ops = &sg_mmap_vm_ops; > > return 0; > > I'll put cc:stable on this - I don't think we recently did anything to make > this happen? The VM_BUG_ON is new bb5b8589767a ("mm: make sure isolate_lru_page() is never called for tail page"), but I don't think it changes the picture much. -- Kirill A. Shutemov