Skip to contentSkip to conversation

docs-mm-allocation-profiling-describe-sysctrl-limitations-in-debug-mode.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Jan 19

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: Docs/mm/allocation-profiling: describe sysctrl limitations in debug mode
has been removed from the -mm tree. Its filename was
docs-mm-allocation-profiling-describe-sysctrl-limitations-in-debug-mode.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: Docs/mm/allocation-profiling: describe sysctrl limitations in debug mode
Date: Fri, 16 Jan 2026 10:44:23 -0800

When CONFIG_MEM_ALLOC_PROFILING_DEBUG=y, /proc/sys/vm/mem_profiling is read-only to avoid debug warnings in a scenario when an allocation is made while profiling is disabled (allocation does not get an allocation tag), then profiling gets enabled and allocation gets freed (warning due to the allocation missing allocation tag).

Fixes ebdf9ad4ca98 ("memprofiling: documentation")
Cc Jonathan Corbet <[email protected]>
Cc Kent Overstreet <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Ran Xiaokai <[email protected]>
Cc SeongJae Park <[email protected]>

---

 Documentation/admin-guide/sysctl/vm.rst   |    4 ++++
 Documentation/mm/allocation-profiling.rst |   10 ++++++++++
 2 files changed, 14 insertions(+)
Documentation/admin-guide/sysctl/vm.rst renamed from Documentation/admin-guide/sysctl/vm.rst~docs-mm-allocation-profiling-describe-sysctrl-limitations-in-debug-mode +4 -0
@@ -494,6 +494,10 @@ memory allocations.
 
 The default value depends on CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT.
 
+When CONFIG_MEM_ALLOC_PROFILING_DEBUG=y, this control is read-only to avoid
+warnings produced by allocations made while profiling is disabled and freed
+when it's enabled.
+
 
 memory_failure_early_kill
 =========================
Documentation/mm/allocation-profiling.rst renamed from Documentation/mm/allocation-profiling.rst~docs-mm-allocation-profiling-describe-sysctrl-limitations-in-debug-mode +10 -0
@@ -33,6 +33,16 @@ Boot parameter:
 sysctl:
   /proc/sys/vm/mem_profiling
 
+  1: Enable memory profiling.
+
+  0: Disable memory profiling.
+
+  The default value depends on CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT.
+
+  When CONFIG_MEM_ALLOC_PROFILING_DEBUG=y, this control is read-only to avoid
+  warnings produced by allocations made while profiling is disabled and freed
+  when it's enabled.
+
 Runtime info:
   /proc/allocinfo
 

_

Patches currently in -mm which might be from [email protected] are