* [PATCH v2 0/2] alloc_tag: fix a leak and a deadlock around shutdown_mem_profiling()
@ 2026-08-17 6:26 Hao Ge
0 siblings, 0 replies; 3+ messages in thread
From: Hao Ge @ 2026-08-17 6:26 UTC (permalink / raw)
To: Suren Baghdasaryan, Kent Overstreet, Andrew Morton; +Cc: linux-kernel, linux-mm
Two fixes for issues reported by sashiko:
1. percpu counter leak on modules loaded after profiling is disabled.
2. AB-BA deadlock between module load and /proc/allocinfo readers.
Changes since the RFC [2]:
- The "move codetag section placement decision to layout_sections()"
patch is dropped from this series. Its retry path depends on [1],
so it will be sent as part of that patchset instead.
- Patch 1 now returns -EOPNOTSUPP instead of introducing
CODETAG_MODULE_LOAD/CODETAG_MODULE_EXCLUDED defines (suggested by
Suren).
- Reported-by tags added.
Patch 1 skips percpu counter allocation when profiling is disabled,
so the module loads without its tags instead of leaking counters.
Patch 2 defers remove_proc_entry() to a workqueue.
[1]: https://lore.kernel.org/all/20260812054105.102637-3-hao.ge@linux.dev/
[2]: https://lore.kernel.org/all/20260813093421.135230-1-hao.ge@linux.dev/
Hao Ge (2):
alloc_tag: skip percpu counter allocation when profiling is disabled
alloc_tag: remove /proc/allocinfo outside of mod_lock
lib/codetag.c | 10 ++++++++--
mm/alloc_tag.c | 14 ++++++++++++-
2 files changed, 21 insertions(+), 3 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 0/2] alloc_tag: fix a leak and a deadlock around shutdown_mem_profiling()
@ 2026-08-17 6:27 Hao Ge
0 siblings, 0 replies; 3+ messages in thread
From: Hao Ge @ 2026-08-17 6:27 UTC (permalink / raw)
To: Suren Baghdasaryan, Kent Overstreet, Andrew Morton; +Cc: linux-kernel, linux-mm
Two fixes for issues reported by sashiko:
1. percpu counter leak on modules loaded after profiling is disabled.
2. AB-BA deadlock between module load and /proc/allocinfo readers.
Changes since the RFC [2]:
- The "move codetag section placement decision to layout_sections()"
patch is dropped from this series. Its retry path depends on [1],
so it will be sent as part of that patchset instead.
- Patch 1 now returns -EOPNOTSUPP instead of introducing
CODETAG_MODULE_LOAD/CODETAG_MODULE_EXCLUDED defines (suggested by
Suren).
- Reported-by tags added.
Patch 1 skips percpu counter allocation when profiling is disabled,
so the module loads without its tags instead of leaking counters.
Patch 2 defers remove_proc_entry() to a workqueue.
[1]: https://lore.kernel.org/all/20260812054105.102637-3-hao.ge@linux.dev/
[2]: https://lore.kernel.org/all/20260813093421.135230-1-hao.ge@linux.dev/
Hao Ge (2):
alloc_tag: skip percpu counter allocation when profiling is disabled
alloc_tag: remove /proc/allocinfo outside of mod_lock
lib/codetag.c | 10 ++++++++--
mm/alloc_tag.c | 14 ++++++++++++-
2 files changed, 21 insertions(+), 3 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 0/2] alloc_tag: fix a leak and a deadlock around shutdown_mem_profiling()
@ 2026-08-17 6:27 Hao Ge
0 siblings, 0 replies; 3+ messages in thread
From: Hao Ge @ 2026-08-17 6:27 UTC (permalink / raw)
To: Suren Baghdasaryan, Kent Overstreet, Andrew Morton; +Cc: linux-kernel, linux-mm
Two fixes for issues reported by sashiko:
1. percpu counter leak on modules loaded after profiling is disabled.
2. AB-BA deadlock between module load and /proc/allocinfo readers.
Changes since the RFC [2]:
- The "move codetag section placement decision to layout_sections()"
patch is dropped from this series. Its retry path depends on [1],
so it will be sent as part of that patchset instead.
- Patch 1 now returns -EOPNOTSUPP instead of introducing
CODETAG_MODULE_LOAD/CODETAG_MODULE_EXCLUDED defines (suggested by
Suren).
- Reported-by tags added.
Patch 1 skips percpu counter allocation when profiling is disabled,
so the module loads without its tags instead of leaking counters.
Patch 2 defers remove_proc_entry() to a workqueue.
[1]: https://lore.kernel.org/all/20260812054105.102637-3-hao.ge@linux.dev/
[2]: https://lore.kernel.org/all/20260813093421.135230-1-hao.ge@linux.dev/
Hao Ge (2):
alloc_tag: skip percpu counter allocation when profiling is disabled
alloc_tag: remove /proc/allocinfo outside of mod_lock
lib/codetag.c | 10 ++++++++--
mm/alloc_tag.c | 14 ++++++++++++-
2 files changed, 21 insertions(+), 3 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-17 6:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 6:27 [PATCH v2 0/2] alloc_tag: fix a leak and a deadlock around shutdown_mem_profiling() Hao Ge
-- strict thread matches above, loose matches on Subject: below --
2026-08-17 6:27 Hao Ge
2026-08-17 6:26 Hao Ge
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.