From: Andrew Morton <akpm@linux-foundation.org>
To: Ye Liu <ye.liu@linux.dev>
Cc: Uladzislau Rezki <urezki@gmail.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Ye Liu <liuye@kylinos.cn>
Subject: Re: [PATCH 0/3] mm/vmalloc: fix vmalloc_dump_obj VA lookup
Date: Wed, 16 Sep 2026 17:59:39 -0700 [thread overview]
Message-ID: <20260916175939.01ecf1e866621427b7f09f21@linux-foundation.org> (raw)
In-Reply-To: <20260916-vmalloc_dump_obj-v1-0-7aa402d224df@linux.dev>
On Wed, 16 Sep 2026 16:25:27 +0800 Ye Liu <ye.liu@linux.dev> wrote:
> vmalloc_dump_obj() has two bugs that cause it to miss vmalloc
> allocations, plus a minor optimization opportunity:
>
> 1. PAGE_ALIGN() rounds up, pushing last-page addresses to va_end
> and outside the VA lookup range.
>
> 2. The function searches only one vmap node, but allocations
> larger than 64 KiB may span multiple vmap zones whose VA
> is stored in a different node's rb-tree.
>
> Patch 1 fixes the alignment, patch 2 fixes the cross-zone search,
> patch 3 adds an early is_vmalloc_addr() check to skip non-vmalloc
> addresses without traversing all nodes.
>
Thanks. Sashiko asked a thing:
https://sashiko.dev/#/patchset/20260916-vmalloc_dump_obj-v1-0-7aa402d224df@linux.dev
prev parent reply other threads:[~2026-09-17 0:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 8:25 Ye Liu
2026-09-16 8:25 ` [PATCH 1/3] mm/vmalloc: fix vmalloc_dump_obj address alignment for last-page lookups Ye Liu
2026-09-16 8:25 ` [PATCH 2/3] mm/vmalloc: fix vmalloc_dump_obj cross-zone VA lookup Ye Liu
2026-09-16 8:25 ` [PATCH 3/3] mm/vmalloc: skip vmalloc_dump_obj for non-vmalloc addresses Ye Liu
2026-09-17 0:59 ` Andrew Morton [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=20260916175939.01ecf1e866621427b7f09f21@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=liuye@kylinos.cn \
--cc=urezki@gmail.com \
--cc=ye.liu@linux.dev \
/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®