From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Dave Airlie <airlied@linux.ie>,
Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: 2.6.27-rc5-mm1: 3 WARN_ON dumps during boot (acpi + vmap_pte_range)
Date: Tue, 9 Sep 2008 13:04:47 +1000 [thread overview]
Message-ID: <200809091304.47769.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <20080908195208.773ecadb.krzysztof.h1@poczta.fm>
[-- Attachment #1: Type: text/plain, Size: 958 bytes --]
On Tuesday 09 September 2008 03:52, Krzysztof Helt wrote:
> alloc_vmap_area within(e07f0000-fffb7000) size=801000
> returns=(e0880000-e1081000)
> alloc_vmap_area within(e07f0000-fffb7000) size=2000
> returns=(e07f0000-e07f2000)
> alloc_vmap_area within(e07f0000-fffb7000) size=2000
> returns=(e0822000-e0824000)
> vunmap_page_range (e07f0000-e07f2000 size=2000)
> free_vmap_area (e07f0000-e07f2000 size=2000)
> alloc_vmap_area within(e07f0000-fffb7000) size=5000
> returns=(e07f0000-e07f5000)
> ------------[ cut here ]------------
> WARNING: at mm/vmalloc.c:40 check_pte_range+0x83/0x90()
Thanks for that, it clearly shows the virtual address allocator
is allowing an overlapping allocation after a vm_unmap_aliases()
call. Unfortunately, my "random" test case happened not to
trigger that... I should have paid more attention to edge cases
rather than just random testing.
Anyway, I hope this fix should solve the problem for you? (it
fixes it here)
[-- Attachment #2: vmap-new-infrastructure-fix2.patch --]
[-- Type: text/x-diff, Size: 435 bytes --]
Index: linux-2.6/mm/vmalloc.c
===================================================================
--- linux-2.6.orig/mm/vmalloc.c
+++ linux-2.6/mm/vmalloc.c
@@ -321,7 +321,7 @@ retry:
struct vmap_area *tmp;
tmp = rb_entry(n, struct vmap_area, rb_node);
if (tmp->va_end >= addr) {
- if (!first && tmp->va_start <= addr)
+ if (!first && tmp->va_start < addr + size)
first = tmp;
n = n->rb_left;
} else {
next prev parent reply other threads:[~2008-09-09 3:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-06 6:45 2.6.27-rc5-mm1: 3 WARN_ON dumps during boot (acpi + vmap_pte_range) Krzysztof Helt
2008-09-06 6:50 ` Andrew Morton
2008-09-06 10:18 ` Krzysztof Helt
2008-09-08 9:05 ` Nick Piggin
2008-09-08 9:37 ` Nick Piggin
2008-09-08 17:52 ` Krzysztof Helt
2008-09-09 3:04 ` Nick Piggin [this message]
2008-09-09 5:05 ` Krzysztof Helt
2008-09-09 7:55 ` Nick Piggin
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=200809091304.47769.nickpiggin@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=krzysztof.h1@poczta.fm \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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