Subject: Re: [PATCH 2/8] bpf: Recover arena kernel faults with scratch page

From: "Alexei Starovoitov" <[email-masked]>
Date: Thu, 21 May 2026 02:42:50 -0700

On Wed May 20, 2026 at 4:50 PM PDT, Tejun Heo wrote:
>
> v2: Use ptep_get_and_clear() in apply_range_clear_cb(). (David)
>
> Suggested-by: Alexei Starovoitov <[email-masked]>
> Signed-off-by: Kumar Kartikeya Dwivedi <[email-masked]>
> Signed-off-by: Tejun Heo <[email-masked]>
> Cc: David Hildenbrand <[email-masked]>
> ---
>  Documentation/bpf/kfuncs.rst |  14 +++
>  arch/arm64/mm/fault.c        |  10 +-
>  arch/x86/mm/fault.c          |  12 ++-
>  include/linux/bpf.h          |   1 +
>  include/linux/bpf_defs.h     |  11 +++
>  kernel/bpf/arena.c           | 177 +++++++++++++++++++++++++++--------
>  kernel/bpf/core.c            |   5 +
>  7 files changed, 183 insertions(+), 47 deletions(-)
>  create mode 100644 include/linux/bpf_defs.h

First 5 patches lgtm. Should we create a stable branch out of them
and pull into bpf-next and sched-ext trees?
I'm preparing a followup for slab-over-arena on top of these changes.