From: Andrew Morton <akpm@linux-foundation.org>
To: n-horiguchi@ah.jp.nec.com
Cc: LKML <linux-kernel@vger.kernel.org>,
hugh.dickins@tiscali.co.uk, linux-mm <linux-mm@kvack.org>,
stable@kernel.org
Subject: Re: [PATCH] mm hugetlb x86: fix hugepage memory leak in mincore()
Date: Tue, 8 Dec 2009 14:35:06 -0800 [thread overview]
Message-ID: <20091208143506.250b47c7.akpm@linux-foundation.org> (raw)
In-Reply-To: <4B1CB5D2.7020403@ah.jp.nec.com>
On Mon, 07 Dec 2009 16:59:14 +0900
Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> wrote:
> Most callers of pmd_none_or_clear_bad() check whether the target
> page is in a hugepage or not, but mincore() and walk_page_range()
> do not check it. So if we use mincore() on a hugepage on x86 machine,
> the hugepage memory is leaked as shown below.
> This patch fixes it by extending mincore() system call to support hugepages.
This bug is fairly embarrassing. I tagged the patch for a -stable
backport.
--
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>
next prev parent reply other threads:[~2009-12-08 22:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1260172193-14397-1-git-send-email-n-horiguchi@ah.jp.nec.com>
2009-12-07 7:59 ` Naoya Horiguchi
2009-12-08 22:35 ` Andrew Morton [this message]
2009-12-07 7:59 ` [PATCH 1/2] mm hugetlb x86: fix hugepage memory leak in walk_page_range() Naoya Horiguchi
2009-12-07 7:59 ` [PATCH 2/2] mm hugetlb: add hugepage support to pagemap Naoya Horiguchi
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=20091208143506.250b47c7.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=hugh.dickins@tiscali.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=stable@kernel.org \
/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