Re: [PATCH bpf-next v4 12/17] mm, bpf: introduce bpf_oom_proactive_kill() for proactive OOM prevention
From: Alexei Starovoitov
Date: Wed Dec 02 2026 - 20:19:43 EST
On Wed, Dec 02, 2026 at 01:04 PM Ben Gardon <bgardon@xxxxxxxxxx> wrote:
> It cannot directly terminate a specific task chosen by a proactive
> userspace/BPF policy.
It can with patches 2-4:
proactive prog bpf_oom_ops handler
store pid in a map
bpf_out_of_memory(memcg)
oc->bpf_declared is set
bpf_task_from_pid(pid)
bpf_oom_kill_process(oc, task, msg)
return 1
Drop this patch ?