Re: [PATCH bpf-next v1 1/3] x86/mm: Resolve BPF exception fixups for user address faults under SMAP

From: Kumar Kartikeya Dwivedi

Date: Fri Nov 27 2026 - 20:48:37 EST


On Fri Nov 27, 2026 at 1:18 AM CET, Alexei Starovoitov wrote:
> On Thu, Nov 26, 2026 at 09:30 AM Andy Lutomirski <luto@xxxxxxxxxx> wrote:
>> Okay. So maybe there should be a nice patch set to *fix* it.
>
> [[...]
>
> The main point that it's orgonal to this patchset.
>

I was wondering whether one concrete improvement could be to emit BTF type tags
for __iomem annotations in the kernel, then reject accesses on BTF pointers
formed using such walks in the verifier, so such programs would fail to load.

I think in practice, at least for BPF users, this will close the issue.