kmemleak: sched_domain_shared leaked on asymmetric-capacity + SCHED_CACHE
From: Breno Leitao
Date: Fri Jul 03 2026 - 06:25:48 EST
Hi,
On current linux-next (CONFIG_SCHED_CACHE=y) we hit a kmemleak on an
arm64 box with asymmetric CPU capacity, triggered by a cpuset-driven
sched-domain rebuild:
kmemleak: unreferenced object 0xffff000100c95e80 (size 32):
comm "kworker/22:1", pid 407, jiffies 4294669077
hex dump (first 32 bytes):
48 00 00 00 48 00 00 00 00 00 00 00 20 00 00 00 H...H....... ...
backtrace (crc ec5d7053):
__kmalloc_cache_node_noprof
build_sched_domains
partition_sched_domains
rebuild_sched_domains_locked
rebuild_sched_domains
process_scheduled_works
kthread
ret_from_fork
kmemleak: 1 new suspected memory leaks
The leaked object is a struct sched_domain_shared (32 bytes with
CONFIG_SCHED_CACHE) allocated in __sds_alloc(), inlined into
build_sched_domains()
Is this a known issue?
--breno