From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967018AbcA1KwA (ORCPT ); Thu, 28 Jan 2016 05:52:00 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34400 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966727AbcA1Kvk (ORCPT ); Thu, 28 Jan 2016 05:51:40 -0500 Date: Thu, 28 Jan 2016 12:51:36 +0200 From: "Kirill A. Shutemov" To: Dmitry Vyukov Cc: Vlastimil Babka , Doug Gilbert , Andrew Morton , 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 Subject: Re: mm: another VM_BUG_ON_PAGE(PageTail(page)) Message-ID: <20160128105136.GD2396@node.shutemov.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Jan 28, 2016 at 11:27:11AM +0100, Dmitry Vyukov wrote: > Hello, > > The following program triggers VM_BUG_ON_PAGE(PageTail(page)): > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > > int main() > { > int fd; > > mmap((void*)0x20000000, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0); > fd = open("/dev/sg1", O_RDONLY|O_SYNC|0x100000); > mmap((void*)0x20001000, 0x4000, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED, fd, 0); > mbind((void*)0x20000000, 0x4000, 0x8002, (void*)0x20002ff8, 3660, > MPOL_MF_STRICT|MPOL_MF_MOVE); > return 0; > } I don't have sg1 in my VM. I changed it to sg0 and it doesn't trigger an issue: mbind() returns -EINVAL as it supposed to. Hm.. -- Kirill A. Shutemov