diff options
author | Roberto Sassu <[email protected]> | 2022-09-20 09:59:48 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-09-21 17:32:49 -0700 |
commit | 7c036ed9e0065e852fb1886d9ea97ceb35680e3f (patch) | |
tree | b0bcfc61981fa7ce6dfdee335bb0d18daefab28d /drivers/platform/surface/aggregator/controller.c | |
parent | 94fd7420faa0bc85341c0a9cbe5e5240ef4f123d (diff) |
selftests/bpf: Add verifier tests for bpf_lookup_*_key() and bpf_key_put()
Add verifier tests for bpf_lookup_*_key() and bpf_key_put(), to ensure that
acquired key references stored in the bpf_key structure are released, that
a non-NULL bpf_key pointer is passed to bpf_key_put(), and that key
references are not leaked.
Also, slightly modify test_verifier.c, to find the BTF ID of the attach
point for the LSM program type (currently, it is done only for TRACING).
Signed-off-by: Roberto Sassu <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions