[PATCH 5.15 10/71] bpf: Fix out of bounds access for ringbuf helpers