Re: [PATCH bpf-next] libbpf: Fix signed overflow in ringbuf_process_ring

From: Brendan Jackman
Date: Thu Apr 29 2021 - 04:46:23 EST


On Wed, 28 Apr 2021 at 20:13, Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote:
...
>
> Yep, let's cap. But to not penalize a hot loop with extra checks.
> Let's use int64_t internally for counting and only cap it before the
> return.

Cool, sounds good. Patch incoming but I'm on interrupts duty this week
so might not be today/tomorrow.