mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 19:12:36 +00:00
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).
Link: https://lkml.kernel.org/r/[email protected]
Fixes: ebdf9ad4ca ("memprofiling: documentation")
Reported-by: Andrew Morton <[email protected]>
Signed-off-by: Suren Baghdasaryan <[email protected]>
Acked-by: SeongJae Park <[email protected]>
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]>
Signed-off-by: Andrew Morton <[email protected]>