From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) by kanga.kvack.org (Postfix) with ESMTP id 06A576B00E5 for ; Fri, 21 Feb 2014 17:46:41 -0500 (EST) Received: by mail-yk0-f174.google.com with SMTP id 20so7686726yks.5 for ; Fri, 21 Feb 2014 14:46:41 -0800 (PST) Received: from aserp1040.oracle.com (aserp1040.oracle.com. [141.146.126.69]) by mx.google.com with ESMTPS id c9si7743383yhi.43.2014.02.21.14.46.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Feb 2014 14:46:41 -0800 (PST) Message-ID: <5307D74C.5070002@oracle.com> Date: Fri, 21 Feb 2014 17:46:36 -0500 From: Sasha Levin MIME-Version: 1.0 Subject: mm: kernel BUG at mm/huge_memory.c:1371! Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "linux-mm@kvack.org" Cc: Andrew Morton , LKML Hi all, While fuzzing with trinity inside a KVM tools guest running latest -next kernel I've stumbled on the following (now with pretty line numbers!) spew: [ 746.125099] kernel BUG at mm/huge_memory.c:1371! [ 746.125775] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 746.126774] Dumping ftrace buffer: [ 746.127484] (ftrace buffer empty) [ 746.127781] Modules linked in: [ 746.128358] CPU: 2 PID: 19816 Comm: trinity-c127 Tainted: G W 3.14.0-rc3-next-20140221-sasha-00008-g0e660cf-dirty #114 [ 746.130196] task: ffff8803a7cc3000 ti: ffff8803a7f1c000 task.ti: ffff8803a7f1c000 [ 746.130317] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 [ 746.130317] RSP: 0018:ffff8803a7f1dca8 EFLAGS: 00010246 [ 746.130317] RAX: ffff8801ab4ac000 RBX: ffff8803a7f1ddd8 RCX: 000000000000002e [ 746.130317] RDX: 0000000000000000 RSI: ffff8803a7cc3d00 RDI: 000000000172c000 [ 746.130317] RBP: ffff8803a7f1dce8 R08: 0000000000000000 R09: 0000000000000000 [ 746.130317] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0006a8fa00 [ 746.130317] R13: ffffea0005cb0000 R14: 00007f784f800000 R15: 00007f785750bfff [ 746.130317] FS: 00007f785afbc700(0000) GS:ffff8801abc00000(0000) knlGS:0000000000000000 [ 746.130317] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 746.130317] CR2: 0000000000000010 CR3: 00000003a9739000 CR4: 00000000000006e0 [ 746.130317] DR0: 0000000000693000 DR1: 0000000000000000 DR2: 0000000000000000 [ 746.130317] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 [ 746.130317] Stack: [ 746.130317] 00000000000004de ffff8803a9777390 ffff8803a7f1dce8 ffff8803a2afd3e0 [ 746.130317] 00007f784f800000 00007f785750c000 ffff8803a7f1ddd8 00007f785750bfff [ 746.130317] ffff8803a7f1dd78 ffffffff81285536 00000000001d8500 00007f784fa00000 [ 746.130317] Call Trace: [ 746.130317] [] unmap_page_range+0x2c6/0x410 [ 746.130317] [] unmap_single_vma+0xf1/0x110 [ 746.130317] [] zap_page_range+0x121/0x170 [ 746.130317] [] madvise_vma+0x180/0x1c0 [ 746.130317] [] SyS_madvise+0x17e/0x250 [ 746.130317] [] tracesys+0xdd/0xe2 [ 746.152464] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 26 29 f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 [ 746.152464] RIP [] zap_huge_pmd+0x17a/0x200 [ 746.152464] RSP Thanks, Sasha -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by kanga.kvack.org (Postfix) with ESMTP id 4C7E86B00EA for ; Fri, 21 Feb 2014 18:51:51 -0500 (EST) Received: by mail-ea0-f172.google.com with SMTP id l9so1862280eaj.17 for ; Fri, 21 Feb 2014 15:51:50 -0800 (PST) Received: from jenni1.inet.fi (mta-out.inet.fi. [195.156.147.13]) by mx.google.com with ESMTP id i7si19310233eem.169.2014.02.21.15.51.48 for ; Fri, 21 Feb 2014 15:51:49 -0800 (PST) Date: Sat, 22 Feb 2014 01:51:45 +0200 From: "Kirill A. Shutemov" Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! Message-ID: <20140221235145.GA18046@node.dhcp.inet.fi> References: <5307D74C.5070002@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5307D74C.5070002@oracle.com> Sender: owner-linux-mm@kvack.org List-ID: To: Sasha Levin Cc: "linux-mm@kvack.org" , Andrew Morton , LKML On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest running latest -next > kernel I've stumbled on the following (now with pretty line numbers!) spew: > > [ 746.125099] kernel BUG at mm/huge_memory.c:1371! It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? I don't see dump_page() output. > [ 746.125775] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC > [ 746.126774] Dumping ftrace buffer: > [ 746.127484] (ftrace buffer empty) > [ 746.127781] Modules linked in: > [ 746.128358] CPU: 2 PID: 19816 Comm: trinity-c127 Tainted: G W > 3.14.0-rc3-next-20140221-sasha-00008-g0e660cf-dirty #114 > [ 746.130196] task: ffff8803a7cc3000 ti: ffff8803a7f1c000 task.ti: ffff8803a7f1c000 > [ 746.130317] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 > [ 746.130317] RSP: 0018:ffff8803a7f1dca8 EFLAGS: 00010246 > [ 746.130317] RAX: ffff8801ab4ac000 RBX: ffff8803a7f1ddd8 RCX: 000000000000002e > [ 746.130317] RDX: 0000000000000000 RSI: ffff8803a7cc3d00 RDI: 000000000172c000 > [ 746.130317] RBP: ffff8803a7f1dce8 R08: 0000000000000000 R09: 0000000000000000 > [ 746.130317] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0006a8fa00 > [ 746.130317] R13: ffffea0005cb0000 R14: 00007f784f800000 R15: 00007f785750bfff > [ 746.130317] FS: 00007f785afbc700(0000) GS:ffff8801abc00000(0000) knlGS:0000000000000000 > [ 746.130317] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 746.130317] CR2: 0000000000000010 CR3: 00000003a9739000 CR4: 00000000000006e0 > [ 746.130317] DR0: 0000000000693000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 746.130317] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 746.130317] Stack: > [ 746.130317] 00000000000004de ffff8803a9777390 ffff8803a7f1dce8 ffff8803a2afd3e0 > [ 746.130317] 00007f784f800000 00007f785750c000 ffff8803a7f1ddd8 00007f785750bfff > [ 746.130317] ffff8803a7f1dd78 ffffffff81285536 00000000001d8500 00007f784fa00000 > [ 746.130317] Call Trace: > [ 746.130317] [] unmap_page_range+0x2c6/0x410 > [ 746.130317] [] unmap_single_vma+0xf1/0x110 > [ 746.130317] [] zap_page_range+0x121/0x170 > [ 746.130317] [] madvise_vma+0x180/0x1c0 > [ 746.130317] [] SyS_madvise+0x17e/0x250 > [ 746.130317] [] tracesys+0xdd/0xe2 > [ 746.152464] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 > 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 26 29 f9 ff > <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 > [ 746.152464] RIP [] zap_huge_pmd+0x17a/0x200 > [ 746.152464] RSP > > > Thanks, > Sasha > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by kanga.kvack.org (Postfix) with ESMTP id AB4E76B00F4 for ; Fri, 21 Feb 2014 20:10:44 -0500 (EST) Received: by mail-qa0-f46.google.com with SMTP id k15so4220180qaq.33 for ; Fri, 21 Feb 2014 17:10:44 -0800 (PST) Received: from userp1040.oracle.com (userp1040.oracle.com. [156.151.31.81]) by mx.google.com with ESMTPS id a51si5587921qge.60.2014.02.21.17.10.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Feb 2014 17:10:44 -0800 (PST) Message-ID: <5307F90C.9060602@oracle.com> Date: Fri, 21 Feb 2014 20:10:36 -0500 From: Sasha Levin MIME-Version: 1.0 Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> In-Reply-To: <20140221235145.GA18046@node.dhcp.inet.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: "linux-mm@kvack.org" , Andrew Morton , LKML On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: > On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: >> >Hi all, >> > >> >While fuzzing with trinity inside a KVM tools guest running latest -next >> >kernel I've stumbled on the following (now with pretty line numbers!) spew: >> > >> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! > It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? > I don't see dump_page() output. Right. However, I'm not seeing the dump_page() output in the log. I see that dump_page() has been modified not long ago, I'm looking into it. Thanks, Sasha -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) by kanga.kvack.org (Postfix) with ESMTP id 9D6F96B0071 for ; Fri, 28 Feb 2014 12:20:53 -0500 (EST) Received: by mail-ie0-f177.google.com with SMTP id rl12so3514521iec.8 for ; Fri, 28 Feb 2014 09:20:53 -0800 (PST) Received: from userp1040.oracle.com (userp1040.oracle.com. [156.151.31.81]) by mx.google.com with ESMTPS id x3si7887726igl.28.2014.02.28.09.20.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 28 Feb 2014 09:20:52 -0800 (PST) Message-ID: <5310C56C.60709@oracle.com> Date: Fri, 28 Feb 2014 12:20:44 -0500 From: Sasha Levin MIME-Version: 1.0 Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> <5307F90C.9060602@oracle.com> In-Reply-To: <5307F90C.9060602@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Sasha Levin , "Kirill A. Shutemov" Cc: "linux-mm@kvack.org" , Andrew Morton , LKML On 02/21/2014 08:10 PM, Sasha Levin wrote: > On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: >> On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: >>> >Hi all, >>> > >>> >While fuzzing with trinity inside a KVM tools guest running latest -next >>> >kernel I've stumbled on the following (now with pretty line numbers!) spew: >>> > >>> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! >> It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? >> I don't see dump_page() output. > > Right. However, I'm not seeing the dump_page() output in the log. > > I see that dump_page() has been modified not long ago, I'm looking into it. Alright, here we go: [ 3323.062742] page:ffffea00080f0000 count:3 mapcount:0 mapping:ffff8802292ee0e1 index:0x7fa2e6800 [ 3323.065978] page flags: 0x16fffff80090018(uptodate|dirty|swapcache|swapbacked) [ 3323.068535] ------------[ cut here ]------------ [ 3323.069669] kernel BUG at mm/huge_memory.c:1371! [ 3323.070961] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 3323.071028] Dumping ftrace buffer: [ 3323.071028] (ftrace buffer empty) [ 3323.071028] Modules linked in: [ 3323.071028] CPU: 101 PID: 48284 Comm: trinity-c101 Tainted: G W 3.14.0-rc4-next-20140228-sasha-00011-g4077c67 #25 [ 3323.071028] task: ffff8800c2718000 ti: ffff8800c26ec000 task.ti: ffff8800c26ec000 [ 3323.071028] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 [ 3323.071028] RSP: 0018:ffff8800c26edc78 EFLAGS: 00010246 [ 3323.071028] RAX: ffff88022febc000 RBX: ffff8800c26edde8 RCX: 0000000000000040 [ 3323.071028] RDX: 0000000000000000 RSI: ffff8800c2718cc0 RDI: 000000000203c000 [ 3323.071028] RBP: ffff8800c26edcb8 R08: 0000000000000000 R09: 0000000000000000 [ 3323.071028] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0008b9e240 [ 3323.071028] R13: ffffea00080f0000 R14: 00007fa2e6800000 R15: 00007fa2ffffffff [ 3323.071028] FS: 00007fa31e1b8700(0000) GS:ffff880230600000(0000) knlGS:0000000000000000 [ 3323.071028] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 3323.071028] CR2: 00007fa31e1e8990 CR3: 0000000005c25000 CR4: 00000000000006e0 [ 3323.071028] DR0: 0000000000698000 DR1: 0000000000698000 DR2: 0000000000698000 [ 3323.071028] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 [ 3323.071028] Stack: [ 3323.071028] 00000000000004de ffff88022e2139d0 ffff8800c26edcb8 ffff88021b7ef9a0 [ 3323.071028] 00007fa2e6800000 00007fa300000000 ffff8800c26edde8 00007fa2ffffffff [ 3323.071028] ffff8800c26edd48 ffffffff812800c6 ffffea0008454540 00007fa2e6a00000 [ 3323.071028] Call Trace: [ 3323.071028] [] unmap_page_range+0x2c6/0x410 [ 3323.071028] [] unmap_single_vma+0xf1/0x110 [ 3323.071028] [] unmap_vmas+0x61/0xa0 [ 3323.071028] [] exit_mmap+0xd0/0x170 [ 3323.071028] [] mmput+0x77/0xe0 [ 3323.071028] [] exit_mm+0x18d/0x1a0 [ 3323.071028] [] ? acct_collect+0x175/0x1b0 [ 3323.071028] [] do_exit+0x26a/0x510 [ 3323.071028] [] do_group_exit+0xa1/0xe0 [ 3323.071028] [] SyS_exit_group+0x12/0x20 [ 3323.071028] [] tracesys+0xdd/0xe2 [ 3323.071028] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 f6 1f f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 [ 3323.071028] RIP [] zap_huge_pmd+0x17a/0x200 [ 3323.071028] RSP Thanks, Sasha -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by kanga.kvack.org (Postfix) with ESMTP id 15EEC6B0037 for ; Tue, 8 Apr 2014 16:56:07 -0400 (EDT) Received: by mail-ie0-f170.google.com with SMTP id rd18so1558129iec.29 for ; Tue, 08 Apr 2014 13:56:06 -0700 (PDT) Received: from aserp1040.oracle.com (aserp1040.oracle.com. [141.146.126.69]) by mx.google.com with ESMTPS id tp5si5440112igb.20.2014.04.08.13.56.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 13:56:06 -0700 (PDT) Message-ID: <53446261.9070903@oracle.com> Date: Tue, 08 Apr 2014 16:56:01 -0400 From: Sasha Levin MIME-Version: 1.0 Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> <5307F90C.9060602@oracle.com> <5310C56C.60709@oracle.com> In-Reply-To: <5310C56C.60709@oracle.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: "linux-mm@kvack.org" , Andrew Morton , LKML On 02/28/2014 12:20 PM, Sasha Levin wrote: > On 02/21/2014 08:10 PM, Sasha Levin wrote: >> On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: >>> On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: >>>> >Hi all, >>>> > >>>> >While fuzzing with trinity inside a KVM tools guest running latest -next >>>> >kernel I've stumbled on the following (now with pretty line numbers!) spew: >>>> > >>>> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! >>> It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? >>> I don't see dump_page() output. >> >> Right. However, I'm not seeing the dump_page() output in the log. >> >> I see that dump_page() has been modified not long ago, I'm looking into it. > > Alright, here we go: > > [ 3323.062742] page:ffffea00080f0000 count:3 mapcount:0 mapping:ffff8802292ee0e1 index:0x7fa2e6800 > [ 3323.065978] page flags: 0x16fffff80090018(uptodate|dirty|swapcache|swapbacked) > [ 3323.068535] ------------[ cut here ]------------ > [ 3323.069669] kernel BUG at mm/huge_memory.c:1371! > [ 3323.070961] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC > [ 3323.071028] Dumping ftrace buffer: > [ 3323.071028] (ftrace buffer empty) > [ 3323.071028] Modules linked in: > [ 3323.071028] CPU: 101 PID: 48284 Comm: trinity-c101 Tainted: G W 3.14.0-rc4-next-20140228-sasha-00011-g4077c67 #25 > [ 3323.071028] task: ffff8800c2718000 ti: ffff8800c26ec000 task.ti: ffff8800c26ec000 > [ 3323.071028] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 > [ 3323.071028] RSP: 0018:ffff8800c26edc78 EFLAGS: 00010246 > [ 3323.071028] RAX: ffff88022febc000 RBX: ffff8800c26edde8 RCX: 0000000000000040 > [ 3323.071028] RDX: 0000000000000000 RSI: ffff8800c2718cc0 RDI: 000000000203c000 > [ 3323.071028] RBP: ffff8800c26edcb8 R08: 0000000000000000 R09: 0000000000000000 > [ 3323.071028] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0008b9e240 > [ 3323.071028] R13: ffffea00080f0000 R14: 00007fa2e6800000 R15: 00007fa2ffffffff > [ 3323.071028] FS: 00007fa31e1b8700(0000) GS:ffff880230600000(0000) knlGS:0000000000000000 > [ 3323.071028] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 3323.071028] CR2: 00007fa31e1e8990 CR3: 0000000005c25000 CR4: 00000000000006e0 > [ 3323.071028] DR0: 0000000000698000 DR1: 0000000000698000 DR2: 0000000000698000 > [ 3323.071028] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 3323.071028] Stack: > [ 3323.071028] 00000000000004de ffff88022e2139d0 ffff8800c26edcb8 ffff88021b7ef9a0 > [ 3323.071028] 00007fa2e6800000 00007fa300000000 ffff8800c26edde8 00007fa2ffffffff > [ 3323.071028] ffff8800c26edd48 ffffffff812800c6 ffffea0008454540 00007fa2e6a00000 > [ 3323.071028] Call Trace: > [ 3323.071028] [] unmap_page_range+0x2c6/0x410 > [ 3323.071028] [] unmap_single_vma+0xf1/0x110 > [ 3323.071028] [] unmap_vmas+0x61/0xa0 > [ 3323.071028] [] exit_mmap+0xd0/0x170 > [ 3323.071028] [] mmput+0x77/0xe0 > [ 3323.071028] [] exit_mm+0x18d/0x1a0 > [ 3323.071028] [] ? acct_collect+0x175/0x1b0 > [ 3323.071028] [] do_exit+0x26a/0x510 > [ 3323.071028] [] do_group_exit+0xa1/0xe0 > [ 3323.071028] [] SyS_exit_group+0x12/0x20 > [ 3323.071028] [] tracesys+0xdd/0xe2 > [ 3323.071028] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 f6 1f f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 > [ 3323.071028] RIP [] zap_huge_pmd+0x17a/0x200 > [ 3323.071028] RSP This is still happening in -next. Anything else I can provide that'll be useful? Thanks, Sasha -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kirill A. Shutemov" Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! Date: Thu, 10 Apr 2014 13:37:27 +0300 Message-ID: <20140410103727.GA24354@node.dhcp.inet.fi> References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> <5307F90C.9060602@oracle.com> <5310C56C.60709@oracle.com> <53446261.9070903@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <53446261.9070903@oracle.com> Sender: linux-kernel-owner@vger.kernel.org To: Sasha Levin Cc: "linux-mm@kvack.org" , Andrew Morton , LKML List-Id: linux-mm.kvack.org On Tue, Apr 08, 2014 at 04:56:01PM -0400, Sasha Levin wrote: > On 02/28/2014 12:20 PM, Sasha Levin wrote: > > On 02/21/2014 08:10 PM, Sasha Levin wrote: > >> On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: > >>> On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: > >>>> >Hi all, > >>>> > > >>>> >While fuzzing with trinity inside a KVM tools guest running latest -next > >>>> >kernel I've stumbled on the following (now with pretty line numbers!) spew: > >>>> > > >>>> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! > >>> It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? > >>> I don't see dump_page() output. > >> > >> Right. However, I'm not seeing the dump_page() output in the log. > >> > >> I see that dump_page() has been modified not long ago, I'm looking into it. > > > > Alright, here we go: > > > > [ 3323.062742] page:ffffea00080f0000 count:3 mapcount:0 mapping:ffff8802292ee0e1 index:0x7fa2e6800 > > [ 3323.065978] page flags: 0x16fffff80090018(uptodate|dirty|swapcache|swapbacked) > > [ 3323.068535] ------------[ cut here ]------------ > > [ 3323.069669] kernel BUG at mm/huge_memory.c:1371! > > [ 3323.070961] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC > > [ 3323.071028] Dumping ftrace buffer: > > [ 3323.071028] (ftrace buffer empty) > > [ 3323.071028] Modules linked in: > > [ 3323.071028] CPU: 101 PID: 48284 Comm: trinity-c101 Tainted: G W 3.14.0-rc4-next-20140228-sasha-00011-g4077c67 #25 > > [ 3323.071028] task: ffff8800c2718000 ti: ffff8800c26ec000 task.ti: ffff8800c26ec000 > > [ 3323.071028] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 > > [ 3323.071028] RSP: 0018:ffff8800c26edc78 EFLAGS: 00010246 > > [ 3323.071028] RAX: ffff88022febc000 RBX: ffff8800c26edde8 RCX: 0000000000000040 > > [ 3323.071028] RDX: 0000000000000000 RSI: ffff8800c2718cc0 RDI: 000000000203c000 > > [ 3323.071028] RBP: ffff8800c26edcb8 R08: 0000000000000000 R09: 0000000000000000 > > [ 3323.071028] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0008b9e240 > > [ 3323.071028] R13: ffffea00080f0000 R14: 00007fa2e6800000 R15: 00007fa2ffffffff > > [ 3323.071028] FS: 00007fa31e1b8700(0000) GS:ffff880230600000(0000) knlGS:0000000000000000 > > [ 3323.071028] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > > [ 3323.071028] CR2: 00007fa31e1e8990 CR3: 0000000005c25000 CR4: 00000000000006e0 > > [ 3323.071028] DR0: 0000000000698000 DR1: 0000000000698000 DR2: 0000000000698000 > > [ 3323.071028] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > > [ 3323.071028] Stack: > > [ 3323.071028] 00000000000004de ffff88022e2139d0 ffff8800c26edcb8 ffff88021b7ef9a0 > > [ 3323.071028] 00007fa2e6800000 00007fa300000000 ffff8800c26edde8 00007fa2ffffffff > > [ 3323.071028] ffff8800c26edd48 ffffffff812800c6 ffffea0008454540 00007fa2e6a00000 > > [ 3323.071028] Call Trace: > > [ 3323.071028] [] unmap_page_range+0x2c6/0x410 > > [ 3323.071028] [] unmap_single_vma+0xf1/0x110 > > [ 3323.071028] [] unmap_vmas+0x61/0xa0 > > [ 3323.071028] [] exit_mmap+0xd0/0x170 > > [ 3323.071028] [] mmput+0x77/0xe0 > > [ 3323.071028] [] exit_mm+0x18d/0x1a0 > > [ 3323.071028] [] ? acct_collect+0x175/0x1b0 > > [ 3323.071028] [] do_exit+0x26a/0x510 > > [ 3323.071028] [] do_group_exit+0xa1/0xe0 > > [ 3323.071028] [] SyS_exit_group+0x12/0x20 > > [ 3323.071028] [] tracesys+0xdd/0xe2 > > [ 3323.071028] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 f6 1f f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 > > [ 3323.071028] RIP [] zap_huge_pmd+0x17a/0x200 > > [ 3323.071028] RSP > > This is still happening in -next. Anything else I can provide that'll be useful? I don't know... :( One theory I have is that the root cause of the bug is the same as with mm/huge_memory.c:1829 bug. If the compound page has been split but we miss the vma where PMD should be split, then we could see the effect. It could happend due anon_vma_interval_tree_foreach() vs. anon_vma_interval_tree_insert() race or something else. -- Kirill A. Shutemov From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755819AbaBUWqm (ORCPT ); Fri, 21 Feb 2014 17:46:42 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:25754 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755674AbaBUWql (ORCPT ); Fri, 21 Feb 2014 17:46:41 -0500 Message-ID: <5307D74C.5070002@oracle.com> Date: Fri, 21 Feb 2014 17:46:36 -0500 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "linux-mm@kvack.org" CC: Andrew Morton , LKML Subject: mm: kernel BUG at mm/huge_memory.c:1371! Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, While fuzzing with trinity inside a KVM tools guest running latest -next kernel I've stumbled on the following (now with pretty line numbers!) spew: [ 746.125099] kernel BUG at mm/huge_memory.c:1371! [ 746.125775] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 746.126774] Dumping ftrace buffer: [ 746.127484] (ftrace buffer empty) [ 746.127781] Modules linked in: [ 746.128358] CPU: 2 PID: 19816 Comm: trinity-c127 Tainted: G W 3.14.0-rc3-next-20140221-sasha-00008-g0e660cf-dirty #114 [ 746.130196] task: ffff8803a7cc3000 ti: ffff8803a7f1c000 task.ti: ffff8803a7f1c000 [ 746.130317] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 [ 746.130317] RSP: 0018:ffff8803a7f1dca8 EFLAGS: 00010246 [ 746.130317] RAX: ffff8801ab4ac000 RBX: ffff8803a7f1ddd8 RCX: 000000000000002e [ 746.130317] RDX: 0000000000000000 RSI: ffff8803a7cc3d00 RDI: 000000000172c000 [ 746.130317] RBP: ffff8803a7f1dce8 R08: 0000000000000000 R09: 0000000000000000 [ 746.130317] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0006a8fa00 [ 746.130317] R13: ffffea0005cb0000 R14: 00007f784f800000 R15: 00007f785750bfff [ 746.130317] FS: 00007f785afbc700(0000) GS:ffff8801abc00000(0000) knlGS:0000000000000000 [ 746.130317] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 746.130317] CR2: 0000000000000010 CR3: 00000003a9739000 CR4: 00000000000006e0 [ 746.130317] DR0: 0000000000693000 DR1: 0000000000000000 DR2: 0000000000000000 [ 746.130317] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 [ 746.130317] Stack: [ 746.130317] 00000000000004de ffff8803a9777390 ffff8803a7f1dce8 ffff8803a2afd3e0 [ 746.130317] 00007f784f800000 00007f785750c000 ffff8803a7f1ddd8 00007f785750bfff [ 746.130317] ffff8803a7f1dd78 ffffffff81285536 00000000001d8500 00007f784fa00000 [ 746.130317] Call Trace: [ 746.130317] [] unmap_page_range+0x2c6/0x410 [ 746.130317] [] unmap_single_vma+0xf1/0x110 [ 746.130317] [] zap_page_range+0x121/0x170 [ 746.130317] [] madvise_vma+0x180/0x1c0 [ 746.130317] [] SyS_madvise+0x17e/0x250 [ 746.130317] [] tracesys+0xdd/0xe2 [ 746.152464] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 26 29 f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 [ 746.152464] RIP [] zap_huge_pmd+0x17a/0x200 [ 746.152464] RSP Thanks, Sasha From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754659AbaBUXv4 (ORCPT ); Fri, 21 Feb 2014 18:51:56 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:55749 "EHLO jenni1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753922AbaBUXvy (ORCPT ); Fri, 21 Feb 2014 18:51:54 -0500 Date: Sat, 22 Feb 2014 01:51:45 +0200 From: "Kirill A. Shutemov" To: Sasha Levin Cc: "linux-mm@kvack.org" , Andrew Morton , LKML Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! Message-ID: <20140221235145.GA18046@node.dhcp.inet.fi> References: <5307D74C.5070002@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5307D74C.5070002@oracle.com> User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest running latest -next > kernel I've stumbled on the following (now with pretty line numbers!) spew: > > [ 746.125099] kernel BUG at mm/huge_memory.c:1371! It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? I don't see dump_page() output. > [ 746.125775] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC > [ 746.126774] Dumping ftrace buffer: > [ 746.127484] (ftrace buffer empty) > [ 746.127781] Modules linked in: > [ 746.128358] CPU: 2 PID: 19816 Comm: trinity-c127 Tainted: G W > 3.14.0-rc3-next-20140221-sasha-00008-g0e660cf-dirty #114 > [ 746.130196] task: ffff8803a7cc3000 ti: ffff8803a7f1c000 task.ti: ffff8803a7f1c000 > [ 746.130317] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 > [ 746.130317] RSP: 0018:ffff8803a7f1dca8 EFLAGS: 00010246 > [ 746.130317] RAX: ffff8801ab4ac000 RBX: ffff8803a7f1ddd8 RCX: 000000000000002e > [ 746.130317] RDX: 0000000000000000 RSI: ffff8803a7cc3d00 RDI: 000000000172c000 > [ 746.130317] RBP: ffff8803a7f1dce8 R08: 0000000000000000 R09: 0000000000000000 > [ 746.130317] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0006a8fa00 > [ 746.130317] R13: ffffea0005cb0000 R14: 00007f784f800000 R15: 00007f785750bfff > [ 746.130317] FS: 00007f785afbc700(0000) GS:ffff8801abc00000(0000) knlGS:0000000000000000 > [ 746.130317] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 746.130317] CR2: 0000000000000010 CR3: 00000003a9739000 CR4: 00000000000006e0 > [ 746.130317] DR0: 0000000000693000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 746.130317] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 746.130317] Stack: > [ 746.130317] 00000000000004de ffff8803a9777390 ffff8803a7f1dce8 ffff8803a2afd3e0 > [ 746.130317] 00007f784f800000 00007f785750c000 ffff8803a7f1ddd8 00007f785750bfff > [ 746.130317] ffff8803a7f1dd78 ffffffff81285536 00000000001d8500 00007f784fa00000 > [ 746.130317] Call Trace: > [ 746.130317] [] unmap_page_range+0x2c6/0x410 > [ 746.130317] [] unmap_single_vma+0xf1/0x110 > [ 746.130317] [] zap_page_range+0x121/0x170 > [ 746.130317] [] madvise_vma+0x180/0x1c0 > [ 746.130317] [] SyS_madvise+0x17e/0x250 > [ 746.130317] [] tracesys+0xdd/0xe2 > [ 746.152464] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 > 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 26 29 f9 ff > <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 > [ 746.152464] RIP [] zap_huge_pmd+0x17a/0x200 > [ 746.152464] RSP > > > Thanks, > Sasha > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Kirill A. Shutemov From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754332AbaBVBKr (ORCPT ); Fri, 21 Feb 2014 20:10:47 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:26908 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbaBVBKq (ORCPT ); Fri, 21 Feb 2014 20:10:46 -0500 Message-ID: <5307F90C.9060602@oracle.com> Date: Fri, 21 Feb 2014 20:10:36 -0500 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "Kirill A. Shutemov" CC: "linux-mm@kvack.org" , Andrew Morton , LKML Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> In-Reply-To: <20140221235145.GA18046@node.dhcp.inet.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: > On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: >> >Hi all, >> > >> >While fuzzing with trinity inside a KVM tools guest running latest -next >> >kernel I've stumbled on the following (now with pretty line numbers!) spew: >> > >> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! > It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? > I don't see dump_page() output. Right. However, I'm not seeing the dump_page() output in the log. I see that dump_page() has been modified not long ago, I'm looking into it. Thanks, Sasha From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753164AbaB1RVB (ORCPT ); Fri, 28 Feb 2014 12:21:01 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:43708 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbaB1RU7 (ORCPT ); Fri, 28 Feb 2014 12:20:59 -0500 Message-ID: <5310C56C.60709@oracle.com> Date: Fri, 28 Feb 2014 12:20:44 -0500 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Sasha Levin , "Kirill A. Shutemov" CC: "linux-mm@kvack.org" , Andrew Morton , LKML Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> <5307F90C.9060602@oracle.com> In-Reply-To: <5307F90C.9060602@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21/2014 08:10 PM, Sasha Levin wrote: > On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: >> On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: >>> >Hi all, >>> > >>> >While fuzzing with trinity inside a KVM tools guest running latest -next >>> >kernel I've stumbled on the following (now with pretty line numbers!) spew: >>> > >>> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! >> It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? >> I don't see dump_page() output. > > Right. However, I'm not seeing the dump_page() output in the log. > > I see that dump_page() has been modified not long ago, I'm looking into it. Alright, here we go: [ 3323.062742] page:ffffea00080f0000 count:3 mapcount:0 mapping:ffff8802292ee0e1 index:0x7fa2e6800 [ 3323.065978] page flags: 0x16fffff80090018(uptodate|dirty|swapcache|swapbacked) [ 3323.068535] ------------[ cut here ]------------ [ 3323.069669] kernel BUG at mm/huge_memory.c:1371! [ 3323.070961] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 3323.071028] Dumping ftrace buffer: [ 3323.071028] (ftrace buffer empty) [ 3323.071028] Modules linked in: [ 3323.071028] CPU: 101 PID: 48284 Comm: trinity-c101 Tainted: G W 3.14.0-rc4-next-20140228-sasha-00011-g4077c67 #25 [ 3323.071028] task: ffff8800c2718000 ti: ffff8800c26ec000 task.ti: ffff8800c26ec000 [ 3323.071028] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 [ 3323.071028] RSP: 0018:ffff8800c26edc78 EFLAGS: 00010246 [ 3323.071028] RAX: ffff88022febc000 RBX: ffff8800c26edde8 RCX: 0000000000000040 [ 3323.071028] RDX: 0000000000000000 RSI: ffff8800c2718cc0 RDI: 000000000203c000 [ 3323.071028] RBP: ffff8800c26edcb8 R08: 0000000000000000 R09: 0000000000000000 [ 3323.071028] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0008b9e240 [ 3323.071028] R13: ffffea00080f0000 R14: 00007fa2e6800000 R15: 00007fa2ffffffff [ 3323.071028] FS: 00007fa31e1b8700(0000) GS:ffff880230600000(0000) knlGS:0000000000000000 [ 3323.071028] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 3323.071028] CR2: 00007fa31e1e8990 CR3: 0000000005c25000 CR4: 00000000000006e0 [ 3323.071028] DR0: 0000000000698000 DR1: 0000000000698000 DR2: 0000000000698000 [ 3323.071028] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 [ 3323.071028] Stack: [ 3323.071028] 00000000000004de ffff88022e2139d0 ffff8800c26edcb8 ffff88021b7ef9a0 [ 3323.071028] 00007fa2e6800000 00007fa300000000 ffff8800c26edde8 00007fa2ffffffff [ 3323.071028] ffff8800c26edd48 ffffffff812800c6 ffffea0008454540 00007fa2e6a00000 [ 3323.071028] Call Trace: [ 3323.071028] [] unmap_page_range+0x2c6/0x410 [ 3323.071028] [] unmap_single_vma+0xf1/0x110 [ 3323.071028] [] unmap_vmas+0x61/0xa0 [ 3323.071028] [] exit_mmap+0xd0/0x170 [ 3323.071028] [] mmput+0x77/0xe0 [ 3323.071028] [] exit_mm+0x18d/0x1a0 [ 3323.071028] [] ? acct_collect+0x175/0x1b0 [ 3323.071028] [] do_exit+0x26a/0x510 [ 3323.071028] [] do_group_exit+0xa1/0xe0 [ 3323.071028] [] SyS_exit_group+0x12/0x20 [ 3323.071028] [] tracesys+0xdd/0xe2 [ 3323.071028] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 f6 1f f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 [ 3323.071028] RIP [] zap_huge_pmd+0x17a/0x200 [ 3323.071028] RSP Thanks, Sasha From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757454AbaDHU4K (ORCPT ); Tue, 8 Apr 2014 16:56:10 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:39490 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756778AbaDHU4J (ORCPT ); Tue, 8 Apr 2014 16:56:09 -0400 Message-ID: <53446261.9070903@oracle.com> Date: Tue, 08 Apr 2014 16:56:01 -0400 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "Kirill A. Shutemov" CC: "linux-mm@kvack.org" , Andrew Morton , LKML Subject: Re: mm: kernel BUG at mm/huge_memory.c:1371! References: <5307D74C.5070002@oracle.com> <20140221235145.GA18046@node.dhcp.inet.fi> <5307F90C.9060602@oracle.com> <5310C56C.60709@oracle.com> In-Reply-To: <5310C56C.60709@oracle.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/28/2014 12:20 PM, Sasha Levin wrote: > On 02/21/2014 08:10 PM, Sasha Levin wrote: >> On 02/21/2014 06:51 PM, Kirill A. Shutemov wrote: >>> On Fri, Feb 21, 2014 at 05:46:36PM -0500, Sasha Levin wrote: >>>> >Hi all, >>>> > >>>> >While fuzzing with trinity inside a KVM tools guest running latest -next >>>> >kernel I've stumbled on the following (now with pretty line numbers!) spew: >>>> > >>>> >[ 746.125099] kernel BUG at mm/huge_memory.c:1371! >>> It "VM_BUG_ON_PAGE(!PageHead(page), page);", correct? >>> I don't see dump_page() output. >> >> Right. However, I'm not seeing the dump_page() output in the log. >> >> I see that dump_page() has been modified not long ago, I'm looking into it. > > Alright, here we go: > > [ 3323.062742] page:ffffea00080f0000 count:3 mapcount:0 mapping:ffff8802292ee0e1 index:0x7fa2e6800 > [ 3323.065978] page flags: 0x16fffff80090018(uptodate|dirty|swapcache|swapbacked) > [ 3323.068535] ------------[ cut here ]------------ > [ 3323.069669] kernel BUG at mm/huge_memory.c:1371! > [ 3323.070961] invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC > [ 3323.071028] Dumping ftrace buffer: > [ 3323.071028] (ftrace buffer empty) > [ 3323.071028] Modules linked in: > [ 3323.071028] CPU: 101 PID: 48284 Comm: trinity-c101 Tainted: G W 3.14.0-rc4-next-20140228-sasha-00011-g4077c67 #25 > [ 3323.071028] task: ffff8800c2718000 ti: ffff8800c26ec000 task.ti: ffff8800c26ec000 > [ 3323.071028] RIP: 0010:[] [] zap_huge_pmd+0x17a/0x200 > [ 3323.071028] RSP: 0018:ffff8800c26edc78 EFLAGS: 00010246 > [ 3323.071028] RAX: ffff88022febc000 RBX: ffff8800c26edde8 RCX: 0000000000000040 > [ 3323.071028] RDX: 0000000000000000 RSI: ffff8800c2718cc0 RDI: 000000000203c000 > [ 3323.071028] RBP: ffff8800c26edcb8 R08: 0000000000000000 R09: 0000000000000000 > [ 3323.071028] R10: 0000000000000001 R11: 0000000000000001 R12: ffffea0008b9e240 > [ 3323.071028] R13: ffffea00080f0000 R14: 00007fa2e6800000 R15: 00007fa2ffffffff > [ 3323.071028] FS: 00007fa31e1b8700(0000) GS:ffff880230600000(0000) knlGS:0000000000000000 > [ 3323.071028] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 3323.071028] CR2: 00007fa31e1e8990 CR3: 0000000005c25000 CR4: 00000000000006e0 > [ 3323.071028] DR0: 0000000000698000 DR1: 0000000000698000 DR2: 0000000000698000 > [ 3323.071028] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 3323.071028] Stack: > [ 3323.071028] 00000000000004de ffff88022e2139d0 ffff8800c26edcb8 ffff88021b7ef9a0 > [ 3323.071028] 00007fa2e6800000 00007fa300000000 ffff8800c26edde8 00007fa2ffffffff > [ 3323.071028] ffff8800c26edd48 ffffffff812800c6 ffffea0008454540 00007fa2e6a00000 > [ 3323.071028] Call Trace: > [ 3323.071028] [] unmap_page_range+0x2c6/0x410 > [ 3323.071028] [] unmap_single_vma+0xf1/0x110 > [ 3323.071028] [] unmap_vmas+0x61/0xa0 > [ 3323.071028] [] exit_mmap+0xd0/0x170 > [ 3323.071028] [] mmput+0x77/0xe0 > [ 3323.071028] [] exit_mm+0x18d/0x1a0 > [ 3323.071028] [] ? acct_collect+0x175/0x1b0 > [ 3323.071028] [] do_exit+0x26a/0x510 > [ 3323.071028] [] do_group_exit+0xa1/0xe0 > [ 3323.071028] [] SyS_exit_group+0x12/0x20 > [ 3323.071028] [] tracesys+0xdd/0xe2 > [ 3323.071028] Code: 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 81 80 60 03 00 00 00 fe ff ff 49 8b 45 00 f6 c4 40 75 18 31 f6 4c 89 ef e8 f6 1f f9 ff <0f> 0b 0f 1f 40 00 eb fe 66 0f 1f 44 00 00 48 8b 03 f0 48 ff 48 > [ 3323.071028] RIP [] zap_huge_pmd+0x17a/0x200 > [ 3323.071028] RSP This is still happening in -next. Anything else I can provide that'll be useful? Thanks, Sasha