]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Use offsetofend on both sides of the ops_cid layout assert
authorTejun Heo <tj@kernel.org>
Fri, 8 May 2026 15:50:08 +0000 (05:50 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 8 May 2026 16:08:01 +0000 (06:08 -1000)
commitca1d48a86fab82da94cf0ddf586b484dcd04df6e
treecf54d83a176f74a6778ccd382e6565398f0a2e10
parente18002d2c791456546505d64f308981f38316ca9
sched_ext: Use offsetofend on both sides of the ops_cid layout assert

sizeof() includes trailing struct pad, offsetofend() doesn't. On
32-bit PPC, sched_ext_ops_cid tail-pads 4 bytes past @priv and the
assert trips. Use offsetofend() on both sides.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605081637.DbH4SZ1E-lkp@intel.com/
Fixes: 7e655ed7b953 ("sched_ext: Add bpf_sched_ext_ops_cid struct_ops type")
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c