Thread (4 messages) 4 messages, 4 authors, 2020-06-30

Re: [PATCH bpf] bpf: enforce BPF ringbuf size to be the power of 2

From: Yonghong Song <hidden>
Date: 2020-06-30 03:08:57
Also in: bpf


On 6/29/20 3:17 PM, Andrii Nakryiko wrote:
BPF ringbuf assumes the size to be a multiple of page size and the power of
2 value. The latter is important to avoid division while calculating position
inside the ring buffer and using (N-1) mask instead. This patch fixes omission
to enforce power-of-2 size rule.

Fixes: 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it")
Signed-off-by: Andrii Nakryiko <redacted>
Acked-by: Yonghong Song <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help