Skip to content

x86, pkeys: fix prefetch/pkeys interaction

Dave Hansen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86, tracing: fix x86 exceptions trace headerarch/x86/include/asm/trace/exceptions.h+1 -01 reply
2/3x86: add some better documentation for probe_kernel_address()include/linux/uaccess.h+8 -03 replies
3/3x86, pkeys: allow instruction fetches in presence of pkeysarch/x86/mm/fault.c+49 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchSteven Rostedt
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] x86, pkeys: fix prefetch/pkeys interaction

The first two patches here are useful in any case, I think.

But, as for the third: There are no known prefetch errata on processors that support memory protection keys. There have not been any that I can find in any recent generations, either.

But, if there were a future erratum, we would need this. Otherwise, apps who hit the theoretical erratum and used pkeys would not be fixed up by the prefetch erratum detection code.

It also occurs to me that *if* there were an erratum on a modern CPU, we might not know because we have so many workarounds in place.

So, I'm submitting this, but I don't feel that strongly about it. It doesn't fix a real problem, but it's also not that much code, or in any kind of fast path.