LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* barrier_nospec for POWER
@ 2018-03-05 13:13 Michal Suchánek
  0 siblings, 0 replies; only message in thread
From: Michal Suchánek @ 2018-03-05 13:13 UTC (permalink / raw)
  To: linuxppc-dev

Hello,

there is x86 barrier_nospec which implements the same barrier as the
earlier out-of-tree gmb() barrier but instead of sprinkling the barrier
randomly in kernel code it put it in copy_from_user. We have the
firmware support for barrier_nospec already reported from the hcall
which is used for RFI flushes. So copy-pasting this from x86 should not
be that difficult.

However, there is separate patch which protects the NR_syscalls check of
syscall entry which does not apply on powerpc because the check is done
in assembly. I did not manage to write a barrier_nospec that compiles
both in C and asm so you are spared a RFC patch.

Is there some work in progress on addressing this?

Thanks

Michal

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-05 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-05 13:13 barrier_nospec for POWER Michal Suchánek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox