Files
android_kernel_xiaomi_sm8450/kernel/bpf
Andrii Nakryiko 517bbe1994 bpf: Enforce BPF ringbuf size to be the power of 2
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: 457f44363a ("bpf: Implement BPF ring buffer and verifier support for it")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200630061500.1804799-1-andriin@fb.com
2020-06-30 16:31:55 +02:00
..
2020-05-15 17:29:41 +02:00
2020-03-13 12:49:52 -07:00
2020-05-15 17:29:41 +02:00
2020-05-09 17:05:26 -07:00
2020-05-15 17:29:41 +02:00
2020-05-15 17:29:41 +02:00
2020-05-15 17:29:41 +02:00
2020-05-15 17:29:41 +02:00