From: Dave Jones <davej@redhat.com>
To: David Rientjes <rientjes@google.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Andrea Arcangeli <aarcange@redhat.com>,
Sasha Levin <levinsasha928@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [patch v2] mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range
Date: Sun, 24 Jun 2012 15:52:36 -0400 [thread overview]
Message-ID: <20120624195236.GA2153@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1206221405430.20954@chino.kir.corp.google.com>
On Fri, Jun 22, 2012 at 02:06:40PM -0700, David Rientjes wrote:
> On Mon, 11 Jun 2012, David Rientjes wrote:
>
> > diff --git a/mm/memory.c b/mm/memory.c
> > --- a/mm/memory.c
> > +++ b/mm/memory.c
> > @@ -1225,7 +1225,15 @@ static inline unsigned long zap_pmd_range(struct mmu_gather *tlb,
> > next = pmd_addr_end(addr, end);
> > if (pmd_trans_huge(*pmd)) {
> > if (next - addr != HPAGE_PMD_SIZE) {
> > - VM_BUG_ON(!rwsem_is_locked(&tlb->mm->mmap_sem));
> > +#ifdef CONFIG_DEBUG_VM
> > + if (!rwsem_is_locked(&tlb->mm->mmap_sem)) {
> > + pr_err("%s: mmap_sem is unlocked! addr=0x%lx end=0x%lx vma->vm_start=0x%lx vma->vm_end=0x%lx\n",
> > + __func__, addr, end,
> > + vma->vm_start,
> > + vma->vm_end);
> > + BUG();
> > + }
> > +#endif
> > split_huge_page_pmd(vma->vm_mm, pmd);
> > } else if (zap_huge_pmd(tlb, vma, pmd, addr))
> > goto next;
>
> This patch is now in Linus' tree so if you are able to hit this issue and
> capture it again, we should be able to get much more useful information.
I've had it applied in my local builds for a while, but haven't managed
to hit it again recently. Though I've not been doing as many overnight runs
this last week or two because temperatures at home have been icky enough
without computers belching out hot air (no ac)
Dave
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2012-06-24 19:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 16:53 kernel BUG at mm/memory.c:1228! Dave Jones
2012-06-10 2:13 ` David Rientjes
2012-06-11 9:15 ` [patch v2] mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range David Rientjes
2012-06-22 21:06 ` David Rientjes
2012-06-24 19:52 ` Dave Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120624195236.GA2153@redhat.com \
--to=davej@redhat.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=levinsasha928@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox