# git rev-parse -q --verify 8bd72f8f7c64c22a621801a76c9423932844e014^{commit} 8bd72f8f7c64c22a621801a76c9423932844e014 already have revision, skipping fetch # git checkout -q -f -B kisskb 8bd72f8f7c64c22a621801a76c9423932844e014 # git clean -qxdf # < git log -1 # commit 8bd72f8f7c64c22a621801a76c9423932844e014 # Author: Mauricio Faria de Oliveira # Date: Fri Mar 30 14:28:25 2018 -0300 # # 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: f636c14790ea ("powerpc/pseries: Set or clear security feature flags") # Depends-on: 19887d6a28e2 ("powerpc: Move default security feature flags") # Signed-off-by: Mauricio Faria de Oliveira # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux-gcc --version # < git log --format=%s --max-count=1 8bd72f8f7c64c22a621801a76c9423932844e014 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- pseries_le_defconfig # Added to kconfig CONFIG_NUMA=n # yes \n | make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- WARNING: modpost: Found 5 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_online_cpu': hotplug-cpu.c:(.text+0x12c): undefined reference to `timed_topology_update' arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_cpu_remove': hotplug-cpu.c:(.text+0x400): undefined reference to `timed_topology_update' /kisskb/src/Makefile:1032: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1 Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le # Build took: 0:02:08.186662