mirror_ubuntu-kernels/arch/powerpc/platforms/pseries
Mauricio Faria de Oliveira 6232774f15 powerpc/pseries: Restore default security feature flags on setup
After migration the security feature flags might have changed (e.g.,
destination system with unpatched firmware), but some flags are not
set/clear again in init_cpu_char_feature_flags() because it assumes
the security flags to be the defaults.

Additionally, if the H_GET_CPU_CHARACTERISTICS hypercall fails then
init_cpu_char_feature_flags() does not run again, which potentially
might leave the system in an insecure or sub-optimal configuration.

So, just restore the security feature flags to the defaults assumed
by init_cpu_char_feature_flags() so it can set/clear them correctly,
and to ensure safe settings are in place in case the hypercall fail.

Fixes: f636c14790 ("powerpc/pseries: Set or clear security feature flags")
Depends-on: 19887d6a28e2 ("powerpc: Move default security feature flags")
Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-04-03 21:50:09 +10:00
..
cmm.c
dlpar.c
dtl.c
eeh_pseries.c
event_sources.c
firmware.c
hotplug-cpu.c
hotplug-memory.c
hvCall_inst.c
hvCall.S
hvconsole.c
hvcserver.c
ibmebus.c
io_event_irq.c
iommu.c
Kconfig
kexec.c
lpar.c
lparcfg.c
Makefile
mobility.c
msi.c
nvram.c
of_helpers.c
of_helpers.h
offline_states.h
pci_dlpar.c
pci.c
power.c
pseries_energy.c
pseries.h
ras.c
reconfig.c
rng.c
scanlog.c
setup.c powerpc/pseries: Restore default security feature flags on setup 2018-04-03 21:50:09 +10:00
smp.c
suspend.c
vio.c