On Thu, Apr 21, 2022 at 1:57 AM Nicholas Piggin <npiggin@xxxxxxxxx> wrote: > > Those were (AFAIKS) all in arch code though. No Nick, they really weren't. The bpf issue with VM_FLUSH_RESET_PERMS means that all your arguments are invalid, because this affected non-architecture code. So the bpf case had two independent issues: one was just bpf doing a really bad job at making sure the executable mapping was sanely initialized. But the other was an actual bug in that hugepage case for vmalloc. And that bug was an issue on power too. So your "this is purely an x86 issue" argument is simply wrong. Because I'm very much looking at that power code that says "oh, __module_alloc() needs more work". Notice? Can these be fixed? Yes. But they can't be fixed by saying "oh, let's disable it on x86". Although it's probably true that at that point, some of the issues would no longer be nearly as noticeable. Linus