All of lore.kernel.org
 help / color / mirror / Atom feed
From: Suren Baghdasaryan <surenb@google.com>
To: akpm@linux-foundation.org
Cc: david@kernel.org, hao.ge@linux.dev, liam@infradead.org,
	vbabka@kernel.org,  hannes@cmpxchg.org,
	brendan.jackman@linux.dev, ziy@nvidia.com,
	 bigeasy@linutronix.de, clrkwllms@kernel.org,
	rostedt@goodmis.org,  pasha.tatashin@soleen.com,
	pyyjason@gmail.com, usamaarif642@gmail.com,  surenb@google.com,
	linux-mm@kvack.org, linux-rt-devel@lists.linux.dev
Subject: [PATCH 0/3] alloc_tag: fixes for module tag area handling and the show_mem() report
Date: Thu,  3 Dec 2026 17:56:27 -0800	[thread overview]
Message-ID: <20261204015630.4095988-1-surenb@google.com> (raw)

This series fixes three issues in memory allocation profiling which were
reported by Sashiko.

Patches 1 and 2 fix the error handling while operating on the maple tree
which tracks the areas reserved for module allocation tags. Patch 3 fixes
the locking used by the "Memory allocations" report in __show_mem(), which
can be called from any context, including hardirq or NMI as well as on
PREEMPT_RT.

The series is based on mm-unstable.

Suren Baghdasaryan (3):
  alloc_tag: preserve the error when reserving a module tag area fails
  alloc_tag: do not leak module tag areas when removing them fails
  mm/show_mem: avoid unsafe locking when reporting allocation profiling

 mm/alloc_tag.c | 47 +++++++++++++++++++++++++++++++++++++++++++----
 mm/show_mem.c  | 11 ++++++++---
 2 files changed, 51 insertions(+), 7 deletions(-)


base-commit: e685fdf67323bade713c5f81015eda5094b3261b
-- 
2.56.1.987.g2ec0ab4260-goog


             reply	other threads:[~2026-12-04  1:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  1:56 Suren Baghdasaryan [this message]
2026-12-04  1:56 ` [PATCH 1/3] alloc_tag: preserve the error when reserving a module tag area fails Suren Baghdasaryan
2026-12-04  2:06   ` Liam R. Howlett
2026-12-04  7:47   ` Hao Ge
2026-12-04  1:56 ` [PATCH 2/3] alloc_tag: do not leak module tag areas when removing them fails Suren Baghdasaryan
2026-12-04  2:29   ` Liam R. Howlett
2026-12-04 18:31     ` Suren Baghdasaryan
2026-12-04  1:56 ` [PATCH 3/3] mm/show_mem: avoid unsafe locking when reporting allocation profiling Suren Baghdasaryan
2026-12-04  2:48   ` Liam R. Howlett
2026-12-04 18:44     ` Suren Baghdasaryan

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=20261204015630.4095988-1-surenb@google.com \
    --to=surenb@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=bigeasy@linutronix.de \
    --cc=brendan.jackman@linux.dev \
    --cc=clrkwllms@kernel.org \
    --cc=david@kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=hao.ge@linux.dev \
    --cc=liam@infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=pasha.tatashin@soleen.com \
    --cc=pyyjason@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=usamaarif642@gmail.com \
    --cc=vbabka@kernel.org \
    --cc=ziy@nvidia.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.