]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1afdd09c30f302f9d1fea8dc3720a334eeff4322
tree8bb401bd0919c77c6319c25e7233401b44c68765
parent02868a09617859ee8ad44de24d9eba1bc77576c6
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