linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-mm@kvack.org, Andrea Arcangeli <aarcange@redhat.com>,
	"Kirill A. Shutemov" <kirill@shutemov.name>,
	Ebru Akagunduz <ebru.akagunduz@gmail.com>
Subject: Re: [linux-next-20160602] kernel BUG at mm/rmap.c:1253!
Date: Thu, 2 Jun 2016 15:13:53 +0200	[thread overview]
Message-ID: <20160602131352.GQ1995@dhcp22.suse.cz> (raw)
In-Reply-To: <20160602115949.GL1995@dhcp22.suse.cz>

On Thu 02-06-16 13:59:49, Michal Hocko wrote:
> [CCing Ebru]
> 
> On Thu 02-06-16 13:50:46, Michal Hocko wrote:
> > [CCing Andrea and Kirill]
> 
> Hmm, thinking about it little bit more it might be related to "mm, thp:
> make swapin readahead under down_read of mmap_sem". I didn't get to look
> closer at the patch but maybe revalidate after mmap sem is dropped is
> not sufficient.

so hugepage_vma_revalidate does this:

	hstart = (vma->vm_start + ~HPAGE_PMD_MASK) & HPAGE_PMD_MASK;
	hend = vma->vm_end & HPAGE_PMD_MASK;
	if (address < hstart || address + HPAGE_PMD_SIZE > hend)
		return SCAN_ADDRESS_RANGE;

I really do not see why we have to play with hstart and hend. But
address + HPAGE_PMD_SIZE > hend part looks suspicious. address
always have to vm_start <= address && address < vm_end AFAICS.

and the above allows address + HPAGE_PMD_MASK == end.
-- 
Michal Hocko
SUSE Labs

--
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>

  reply	other threads:[~2016-06-02 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 11:14 Tetsuo Handa
2016-06-02 11:50 ` Michal Hocko
2016-06-02 11:59   ` Michal Hocko
2016-06-02 13:13     ` Michal Hocko [this message]
2016-06-02 13:35       ` Vlastimil Babka
2016-06-02 13:27     ` Vlastimil Babka

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=20160602131352.GQ1995@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=aarcange@redhat.com \
    --cc=ebru.akagunduz@gmail.com \
    --cc=kirill@shutemov.name \
    --cc=linux-mm@kvack.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /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