1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <bpf/bpf_helpers.h>
16 __noinline int foo(const struct Big *big)
21 return bpf_get_prandom_u32() < big->y;
24 SEC("cgroup_skb/ingress")
25 __failure __msg("invalid indirect access to stack")
26 int global_func10(struct __sk_buff *skb)
28 const struct Small small = {.x = skb->len };
30 return foo((struct Big *)&small) ? 1 : 0;