From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f174.google.com (mail-pf0-f174.google.com [209.85.192.174]) by kanga.kvack.org (Postfix) with ESMTP id A69AA6B0256 for ; Tue, 26 Jan 2016 15:49:18 -0500 (EST) Received: by mail-pf0-f174.google.com with SMTP id e65so105029100pfe.0 for ; Tue, 26 Jan 2016 12:49:18 -0800 (PST) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id x2si4099604pfi.97.2016.01.26.12.49.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 12:49:18 -0800 (PST) Date: Tue, 26 Jan 2016 12:49:16 -0800 From: Andrew Morton Subject: Re: mm: VM_BUG_ON_PAGE(PageTail(page)) in mbind Message-Id: <20160126124916.1f4ed291a6e4bcf19b74b7f7@linux-foundation.org> In-Reply-To: <20160126202829.GA21250@node.shutemov.name> References: <20160126202829.GA21250@node.shutemov.name> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" 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, 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? -- 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