diff options
| author | Suren Baghdasaryan <[email protected]> | 2024-11-30 00:14:23 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-12-19 03:04:46 +0000 |
| commit | 60da7445a142bd15e67f3cda915497781c3f781f (patch) | |
| tree | 016fd09dd9f3d308131bf34771bbe7d49cdf2768 /scripts/mod/file2alias.c | |
| parent | alloc_tag: fix module allocation tags populated area calculation (diff) | |
| download | kernel-60da7445a142bd15e67f3cda915497781c3f781f.tar.gz kernel-60da7445a142bd15e67f3cda915497781c3f781f.zip | |
alloc_tag: fix set_codetag_empty() when !CONFIG_MEM_ALLOC_PROFILING_DEBUG
It was recently noticed that set_codetag_empty() might be used not only to
mark NULL alloctag references as empty to avoid warnings but also to reset
valid tags (in clear_page_tag_ref()). Since set_codetag_empty() is
defined as NOOP for CONFIG_MEM_ALLOC_PROFILING_DEBUG=n, such use of
set_codetag_empty() leads to subtle bugs. Fix set_codetag_empty() for
CONFIG_MEM_ALLOC_PROFILING_DEBUG=n to reset the tag reference.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: a8fc28dad6d5 ("alloc_tag: introduce clear_page_tag_ref() helper function")
Signed-off-by: Suren Baghdasaryan <[email protected]>
Reported-by: David Wang <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Cc: David Wang <[email protected]>
Cc: Kent Overstreet <[email protected]>
Cc: Mike Rapoport (Microsoft) <[email protected]>
Cc: Pasha Tatashin <[email protected]>
Cc: Sourav Panda <[email protected]>
Cc: Yu Zhao <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions
