1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
6 #include "../test_kmods/bpf_testmod.h"
9 SEC("tp_btf/bpf_testmod_test_nullable_bare")
10 __failure __msg("R1 invalid mem access 'trusted_ptr_or_null_'")
11 int BPF_PROG(handle_tp_btf_nullable_bare1, struct bpf_testmod_test_read_ctx *nullable_ctx)
13 return nullable_ctx->len;
16 SEC("tp_btf/bpf_testmod_test_nullable_bare")
17 int BPF_PROG(handle_tp_btf_nullable_bare2, struct bpf_testmod_test_read_ctx *nullable_ctx)
20 return nullable_ctx->len;
24 char _license[] SEC("license") = "GPL";