[PATCH 5.12 202/363] libbpf: Fix signed overflow in ringbuf_process_ring