]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix update of LPAR security flavor after LPM
authorLaurent Dufour <ldufour@linux.ibm.com>
Thu, 5 Aug 2021 15:23:08 +0000 (17:23 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 Aug 2021 22:53:59 +0000 (08:53 +1000)
commit9dcce9feb2dbaec080862670b3c42aeb1322b4ee
tree5085f6e0c2325ce02a2d132229f3bbcd9e6b54dd
parent6ea0d96a35dec7dcbbeef40fea50062baaa51378
powerpc/pseries: Fix update of LPAR security flavor after LPM

After LPM, when migrating from a system with security mitigation enabled
to a system with mitigation disabled, the security flavor exposed in
/proc is not correctly set back to 0.

Do not assume the value of the security flavor is set to 0 when entering
init_cpu_char_feature_flags(), so when called after a LPM, the value is
set correctly even if the mitigation are not turned off.

Fixes: cba5566387dd ("powerpc/pseries: export LPAR security flavor in lparcfg")
Cc: stable@vger.kernel.org # v5.13+
Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210805152308.33988-1-ldufour@linux.ibm.com
arch/powerpc/platforms/pseries/setup.c