powerpc/security: Allow for processors that flush the link stack using the special...
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 Jun 2020 07:06:09 +0000 (17:06 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:32 +0000 (13:12 +1000)
commit4d24e21cc694e7253a532fe5a9bde12b284f1317
tree8bb401bd0919c77c6319c25e7233401b44c68765
parent70d7cdaf0548ec95fa7204dcdd39cd8e63cee24d
powerpc/security: Allow for processors that flush the link stack using the special bcctr

If both count cache and link stack are to be flushed, and can be flushed
with the special bcctr, patch that in directly to the flush/branch nop
site.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200609070610.846703-7-npiggin@gmail.com
arch/powerpc/include/asm/security_features.h
arch/powerpc/kernel/security.c