aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2025-05-29 20:11:51 +0000
committerAlexei Starovoitov <[email protected]>2025-06-01 20:07:47 +0000
commitbaa39c169dd526cb0186187fc44ec462266efcc6 (patch)
treeb186f97afdf762f9bc5df4c49447f44b150dad79 /rust/helpers/helpers.c
parentselftests/bpf: Fix bpf selftest build error (diff)
downloadkernel-baa39c169dd526cb0186187fc44ec462266efcc6.tar.gz
kernel-baa39c169dd526cb0186187fc44ec462266efcc6.zip
selftests/bpf: Fix selftest btf_tag/btf_type_tag_percpu_vmlinux_helper failure
Ihor Solodrai reported selftest 'btf_tag/btf_type_tag_percpu_vmlinux_helper' failure ([1]) during 6.16 merge window. The failure log: ... 7: (15) if r0 == 0x0 goto pc+1 ; R0=ptr_css_rstat_cpu() ; *(volatile int *)rstat; @ btf_type_tag_percpu.c:68 8: (61) r1 = *(u32 *)(r0 +0) cannot access ptr member updated_children with moff 0 in struct css_rstat_cpu with off 0 size 4 Two changes are needed. First, 'struct cgroup_rstat_cpu' needs to be replaced with 'struct css_rstat_cpu' to be consistent with new data structure. Second, layout of 'css_rstat_cpu' is changed compared to 'cgroup_rstat_cpu'. The first member becomes a pointer so the bpf prog needs to do 8-byte load instead of 4-byte load. [1] https://lore.kernel.org/bpf/[email protected]/ Cc: Ihor Solodrai <[email protected]> Cc: JP Kobryn <[email protected]> Signed-off-by: Yonghong Song <[email protected]> Acked-by: JP Kobryn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions