1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <bpf/bpf_helpers.h>
11 __noinline int foo(const struct S *s)
13 return bpf_get_prandom_u32() < s->x;
16 SEC("cgroup_skb/ingress")
17 __failure __msg("invalid mem access 'mem_or_null'")
18 int global_func12(struct __sk_buff *skb)
20 const struct S s = {.x = skb->len };