[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACT4Y+ZZkWTuw8hxnqLEf81bF=GL2SKv8Buqwv3qByBeSLBf+A@mail.gmail.com>
Date: Thu, 28 Jan 2016 11:55:14 +0100
From: Dmitry Vyukov <dvyukov@...gle.com>
To: "Kirill A. Shutemov" <kirill@...temov.name>
Cc: Vlastimil Babka <vbabka@...e.cz>,
Doug Gilbert <dgilbert@...erlog.com>,
Andrew Morton <akpm@...ux-foundation.org>,
David Rientjes <rientjes@...gle.com>,
Naoya Horiguchi <n-horiguchi@...jp.nec.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Shiraz Hashim <shashim@...eaurora.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>,
Hugh Dickins <hughd@...gle.com>,
Sasha Levin <sasha.levin@...cle.com>,
syzkaller <syzkaller@...glegroups.com>,
Kostya Serebryany <kcc@...gle.com>,
Alexander Potapenko <glider@...gle.com>,
linux-scsi <linux-scsi@...r.kernel.org>
Subject: Re: mm: another VM_BUG_ON_PAGE(PageTail(page))
On Thu, Jan 28, 2016 at 11:51 AM, Kirill A. Shutemov
<kirill@...temov.name> wrote:
> 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 <fcntl.h>
>> #include <numaif.h>
>> #include <sys/mman.h>
>> #include <unistd.h>
>>
>> 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..
I've attached my config, and here is how I start qemu:
qemu-system-x86_64 -hda wheezy.img -net
user,host=10.0.2.10,hostfwd=tcp::10022-:22 -net nic -nographic -kernel
arch/x86/boot/bzImage -append "console=ttyS0 root=/dev/sda debug
earlyprintk=serial slub_debug=UZ" -enable-kvm -pidfile vm_pid -m 2G
-numa node,nodeid=0,cpus=0-1 -numa node,nodeid=1,cpus=2-3 -smp
sockets=2,cores=2,threads=1 -usb -usbdevice mouse -usbdevice tablet
-soundhw all
Download attachment ".config" of type "application/octet-stream" (138611 bytes)
Powered by blists - more mailing lists