Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/sched_ext: Fix data header access during free in scx_sdt

Fix a pointer arithmetic error in scx_sdt during freeing that
causes the allocator to use the wrong memory address for the
allocation's data header.

Fixes: 36929ebd17ae ("tools/sched_ext: add arena based scheduler")
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Emil Tsalapatis and committed by
Tejun Heo
2e06d54e bd4f0822

+1 -1
+1 -1
tools/sched_ext/scx_sdt.bpf.c
··· 312 312 pos = idx & mask; 313 313 data = chunk->data[pos]; 314 314 if (likely(data)) { 315 - data[pos] = (struct sdt_data) { 315 + *data = (struct sdt_data) { 316 316 .tid.genn = data->tid.genn + 1, 317 317 }; 318 318