Bug 220102 - struct taskstats breaks backward compatibility since version 15

From: Boian Bonev
Date: Fri May 09 2025 - 14:43:18 EST


Hello!

Since version 15 (TASKSTATS_VERSION=15) the new layout of the structure
adds fields in the middle of the structure, rendering all old software
incompatible with newer kernels and software compiled against the new
kernel headers incompatible with older kernels.

I think that change has to be reverted and the added fields moved to
the end of the structure. Also bumping the version to 16 after the
change is a good idea in order for the userspace software to be able to
distinguish the different formats.

https://bugzilla.kernel.org/show_bug.cgi?id=220102

With best regards,
b.