Thread (3 messages) flat view 3 messages, 3 authors, 2020-05-14

Re: [PATCH bpf] bpf: fix bug in mmap() implementation for BPF array map

From: Yonghong Song <hidden>
Date: 2020-05-13 03:20:19
Also in: bpf


On 5/12/20 4:59 PM, Andrii Nakryiko wrote:
mmap() subsystem allows user-space application to memory-map region with
initial page offset. This wasn't taken into account in initial implementation
of BPF array memory-mapping. This would result in wrong pages, not taking into
account requested page shift, being memory-mmaped into user-space. This patch
fixes this gap and adds a test for such scenario.

Fixes: fc9702273e2e ("bpf: Add mmap() support for BPF_MAP_TYPE_ARRAY")
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