Re: [PATCH bpf] bpf: fix mlock precharge on arraymaps

2018-02-15 Thread Alexei Starovoitov
On 2/15/18 4:10 PM, Daniel Borkmann wrote: syzkaller recently triggered OOM during percpu map allocation; while there is work in progress by Dennis Zhou to add __GFP_NORETRY semantics for percpu allocator under pressure, there seems also a missing bpf_map_precharge_memlock() check in array map al

[PATCH bpf] bpf: fix mlock precharge on arraymaps

2018-02-15 Thread Daniel Borkmann
syzkaller recently triggered OOM during percpu map allocation; while there is work in progress by Dennis Zhou to add __GFP_NORETRY semantics for percpu allocator under pressure, there seems also a missing bpf_map_precharge_memlock() check in array map allocation. Given today the actual bpf_map_cha