]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Tweak cgroup kfunc test.
authorAlexei Starovoitov <ast@kernel.org>
Fri, 3 Mar 2023 04:14:45 +0000 (20:14 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 3 Mar 2023 16:42:20 +0000 (17:42 +0100)
commit0047d8343f6042c4feea24072ef254d47b8a33b3
tree300fa4af805c84650340b1974ac060800064e2f3
parent838bd4ac9aa35bdf43bf0199fa8eef9d3a004611
selftests/bpf: Tweak cgroup kfunc test.

Adjust cgroup kfunc test to dereference RCU protected cgroup pointer
as PTR_TRUSTED and pass into KF_TRUSTED_ARGS kfunc.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20230303041446.3630-6-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/progs/cgrp_kfunc_success.c