From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by kanga.kvack.org (Postfix) with ESMTP id D4D926B0005 for ; Tue, 26 Jan 2016 16:05:37 -0500 (EST) Received: by mail-wm0-f51.google.com with SMTP id n5so151793360wmn.0 for ; Tue, 26 Jan 2016 13:05:37 -0800 (PST) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com. [2a00:1450:400c:c09::22a]) by mx.google.com with ESMTPS id y18si4116271wjw.104.2016.01.26.13.05.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 13:05:36 -0800 (PST) Received: by mail-wm0-x22a.google.com with SMTP id n5so151792846wmn.0 for ; Tue, 26 Jan 2016 13:05:36 -0800 (PST) Date: Tue, 26 Jan 2016 23:05:34 +0200 From: "Kirill A. Shutemov" 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> Sender: owner-linux-mm@kvack.org List-ID: 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 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org