diff options
| author | Zhenhua Huang <[email protected]> | 2025-04-21 07:52:32 +0000 |
|---|---|---|
| committer | Vlastimil Babka <[email protected]> | 2025-04-24 17:19:40 +0000 |
| commit | be8250786ca94952a19ce87f98ad9906448bc9ef (patch) | |
| tree | 0e6a4606e70eec3d5b908cffdf4925108789611d /scripts/gcc-plugins | |
| parent | slab: ensure slab->obj_exts is clear in a newly allocated slab page (diff) | |
| download | kernel-be8250786ca94952a19ce87f98ad9906448bc9ef.tar.gz kernel-be8250786ca94952a19ce87f98ad9906448bc9ef.zip | |
mm, slab: clean up slab->obj_exts always
When memory allocation profiling is disabled at runtime or due to an
error, shutdown_mem_profiling() is called: slab->obj_exts which
previously allocated remains.
It won't be cleared by unaccount_slab() because of
mem_alloc_profiling_enabled() not true. It's incorrect, slab->obj_exts
should always be cleaned up in unaccount_slab() to avoid following error:
[...]BUG: Bad page state in process...
..
[...]page dumped because: page still charged to cgroup
[[email protected]: fold need_slab_obj_ext() into its only user]
Fixes: 21c690a349ba ("mm: introduce slabobj_ext to support slab object extensions")
Cc: [email protected]
Signed-off-by: Zhenhua Huang <[email protected]>
Acked-by: David Rientjes <[email protected]>
Acked-by: Harry Yoo <[email protected]>
Tested-by: Harry Yoo <[email protected]>
Acked-by: Suren Baghdasaryan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions
