summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorQiliang Yuan <odys.yuan@gmail.com>2026-10-09 10:04:38 +0800
committerAlexei Starovoitov <ast@kernel.org>2026-10-16 02:49:42 +0000
commite0645cfd0e1b2ae7b8ad989bef00a30016b16b5f (patch)
tree29fab8dceef939f1c5dcbf81c50bdcb10e71c103 /scripts
parent3c824dfd17e6e918e45a6a96bda0d020ddec8287 (diff)
selftests/bpf: Unmount the bpffs that cgroup_hierarchical_stats mounted
setup_bpffs() mounts a bpffs on /sys/fs/bpf and records in mounted_bpffs whether it did, so that cleanup_bpffs() unmounts only a bpffs that the test mounted itself. cleanup_bpffs() checks the flag the other way around. As mounting on /sys/fs/bpf succeeds even when a bpffs is already there, the test never unmounts the bpffs it mounted, and every run leaves another one stacked on /sys/fs/bpf of the mount namespace that the test_progs worker keeps running later tests in. Unmount the bpffs only when setup_bpffs() mounted it. Fixes: 88886309d2e8 ("selftests/bpf: add a selftest for cgroup hierarchical stats collection") Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Yosry Ahmed <yosry@kernel.org> Link: https://patch.msgid.link/20261009-selftests-bpf-cgroup-stats-bpffs-v2-2-f93a111da992@gmail.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions