From: Steven Rostedt <rostedt@goodmis.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Hugh Dickins <hughd@google.com>, Mel Gorman <mel@csn.ul.ie>
Subject: Re: [PATCH] mm: Fix wrong kunmap_atomic() pointer
Date: Fri, 03 Jun 2011 23:54:29 -0400 [thread overview]
Message-ID: <1307159669.31814.3.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <1307158665.3667.86.camel@gandalf.stny.rr.com>
On Fri, 2011-06-03 at 23:37 -0400, Steven Rostedt wrote:
> The problem came in d16dfc55 where it introduced a "break;" from the
> while loop. This alone did not seem to easily trigger the bug. But the
> modifications made by e303297e6 caused that "break;" to be hit on the
> first iteration, before the pte++.
>
> The pte not being incremented will now cause pte_unmap_unlock(pte - 1)
> to be pointing to the previous page. This will cause the wrong page to
> be unmapped, and also trigger the warning above.
Note, just to prove this was the case, by adding a few trace_printks()
and a tracing_off() when the bug hit, I found the following:
<...>-93 [000] 65.630994: unmap_vmas: enter addr=0xa00000 end=0xa53000
<...>-93 [000] 65.630995: unmap_vmas: pte=fffb9000
<...>-93 [000] 65.630996: unmap_vmas: loop pte=fffb9000 addr=0xa00000
<...>-93 [000] 65.630996: unmap_vmas: force flush!
<...>-93 [000] 65.630997: unmap_vmas: end loop pte=fffb9000
<...>-93 [000] 65.630997: unmap_vmas: unlock pte-1=fffb8ff8
-- Steve
next prev parent reply other threads:[~2011-06-04 3:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-04 3:37 Steven Rostedt
2011-06-04 3:54 ` Steven Rostedt [this message]
2011-06-04 4:14 ` Andrew Morton
2011-06-05 19:20 ` Hugh Dickins
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=1307159669.31814.3.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=hughd@google.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@csn.ul.ie \
/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
all inboxes | Powered by JetHome®