[PATCH 5.10 154/289] libbpf: Fix signed overflow in ringbuf_process_ring