[PATCH 5.15.y 5/5] bpf: Fix ringbuf memory type confusion when passing to helpers