# 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-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 8bd72f8f7c64c22a621801a76c9423932844e014 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_c2k_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- c2k_defconfig warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_c2k_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec': /kisskb/src/net/bridge/br_netlink.c:635:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1816:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1726:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] INFO: Uncompressed kernel (size 0x6b3e04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-4.16.0-rc4-g8bd72f8 Created: Tue Apr 3 20:34:52 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3245796 Bytes = 3169.72 kB = 3.10 MB Load Address: 00700000 Entry Point: 007004fc Completed OK # rm -rf /kisskb/build/powerpc-next_c2k_defconfig_powerpc # Build took: 0:01:24.934284