aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorWang Yaxin <[email protected]>2025-05-10 07:54:13 +0000
committerAndrew Morton <[email protected]>2025-05-21 05:49:39 +0000
commit0bf2d838de1ffb6d0bb6f8d18a6ccc59b7d9a705 (patch)
treeb0e251fc0f49c763f3e779d349d5e1e9c5928348 /rust/helpers/task.c
parentmm/truncate: fix out-of-bounds when doing a right-aligned split (diff)
downloadkernel-0bf2d838de1ffb6d0bb6f8d18a6ccc59b7d9a705.tar.gz
kernel-0bf2d838de1ffb6d0bb6f8d18a6ccc59b7d9a705.zip
taskstats: fix struct taskstats breaks backward compatibility since version 15
Problem ======== commit 658eb5ab916d ("delayacct: add delay max to record delay peak") - adding more fields commit f65c64f311ee ("delayacct: add delay min to record delay peak") - adding more fields commit b016d0873777 ("taskstats: modify taskstats version") - version bump to 15 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. Solution ========= move delay max and delay min to the end of taskstat, and bump the version to 16 after the change [[email protected]: adjust indentation] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: f65c64f311ee ("delayacct: add delay min to record delay peak") Signed-off-by: Wang Yaxin <[email protected]> Signed-off-by: xu xin <[email protected]> Signed-off-by: Kun Jiang <[email protected]> Reviewed-by: Yang Yang <[email protected]> Cc: Balbir Singh <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions