mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: kaleshsingh@google.com
Cc: surenb@google.com, kernel-team@android.com,
	android-mm@google.com, "Liam R. Howlett" <liam@infradead.org>,
	Lorenzo Stoakes <ljs@kernel.org>,
	Vlastimil Babka <vbabka@kernel.org>, Jann Horn <jannh@google.com>,
	Pedro Falcato <pfalcato@suse.de>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] mm: proc/task_mmu: Use walk_page_range_vma() for smaps
Date: Tue, 21 Jul 2026 17:39:39 -0700	[thread overview]
Message-ID: <20260721173939.6bee67b6af17b54961daf4f8@linux-foundation.org> (raw)
In-Reply-To: <20260721051903.691848-1-kaleshsingh@google.com>

On Tue, 21 Jul 2026 05:19:02 +0000 kaleshsingh@google.com wrote:

> From: Kalesh Singh <kaleshsingh@google.com>
> 
> Modify smap_gather_stats() to use walk_page_range_vma() instead of
> walk_page_range() when walking page tables.
> 
> walk_page_range() internally calls find_vma(), which asserts that
> mmap_lock is held. This assertion fails when reading /proc/pid/smaps
> under per-VMA locks (where mmap_lock is not held).

So the kernel is emitting a WARN trace under some situation?

I'm surprised.  The offending patch is only six weeks old, but we'd
normally hear about this very promptly.   Is a bug report available
somewhere?

> walk_page_range_vma() walks a range within a single VMA and does not
> use find_vma(). It relies on the VMA lock instead (when configured
> with PGWALK_VMA_RDLOCK_VERIFY), making it compatible with per-VMA
> locks.

Sashiko said a thing:
	https://sashiko.dev/#/patchset/20260721051903.691848-1-kaleshsingh@google.com


  parent reply	other threads:[~2026-07-22  0:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-21  5:19 kaleshsingh
2026-07-21 16:30 ` T.J. Mercier
2026-07-21 19:39   ` Kalesh Singh
2026-07-22  0:39 ` Andrew Morton [this message]
2026-07-22  3:17   ` Suren Baghdasaryan
2026-07-22 22:25     ` Kalesh Singh

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=20260721173939.6bee67b6af17b54961daf4f8@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=android-mm@google.com \
    --cc=jannh@google.com \
    --cc=kaleshsingh@google.com \
    --cc=kernel-team@android.com \
    --cc=liam@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=pfalcato@suse.de \
    --cc=surenb@google.com \
    --cc=vbabka@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

all inboxes | Powered by JetHome®