Re: [PATCH bpf-next v1 1/3] x86/mm: Resolve BPF exception fixups for user address faults under SMAP
From: Kumar Kartikeya Dwivedi
Date: Sun Nov 22 2026 - 22:57:33 EST
On Mon, 23 Nov 2026 at 03:55, Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> On Mon, Nov 23, 2026 at 01:59:32AM +0100, Kumar Kartikeya Dwivedi wrote:
> > I also don't understand your security concern.
>
> Was:
>
> "the only line of defense is for is_bpf_text_address() to really DTRT."
>
> not clear?
>
> Do you want me to elaborate?
Yes, please elaborate, because I am not sure why you think that is a
huge problem.
You're treating that function as if it's an unknown, untrusted black
box that can break anytime.
It finds out whether the fault originated in a BPF program. What does
DTRT mean apart from that?
If it starts firing for normal kernel code, this would be the last
place to break. That would be our bug to fix.
In fact, for kernel address faults, we already invoke it for exception
handling. This change would simply extend that to user address faults,
optionally for BPF code; otherwise, we panic as usual.
So I don't think it's a useful argument, except if it stems from "I
don't trust anything BPF", which is not productive.
I am happy to engage with any actual material concerns. So far I
haven't seen any except you being constantly dismissive.
>
> [...]