# git rev-parse -q --verify a048a07d7f4535baa4cbad6bc024f175317ab938^{commit} a048a07d7f4535baa4cbad6bc024f175317ab938 already have revision, skipping fetch # git checkout -q -f -B kisskb a048a07d7f4535baa4cbad6bc024f175317ab938 # git clean -qxdf # < git log -1 # commit a048a07d7f4535baa4cbad6bc024f175317ab938 # Author: Nicholas Piggin # Date: Tue May 22 09:00:00 2018 +1000 # # powerpc/64s: Add support for a store forwarding barrier at kernel entry/exit # # On some CPUs we can prevent a vulnerability related to store-to-load # forwarding by preventing store forwarding between privilege domains, # by inserting a barrier in kernel entry and exit paths. # # This is known to be the case on at least Power7, Power8 and Power9 # powerpc CPUs. # # Barriers must be inserted generally before the first load after moving # to a higher privilege, and after the last store before moving to a # lower privilege, HV and PR privilege transitions must be protected. # # Barriers are added as patch sections, with all kernel/hypervisor entry # points patched, and the exit points to lower privilge levels patched # similarly to the RFI flush patching. # # Firmware advertisement is not implemented yet, so CPU flush types # are hard coded. # # Thanks to Michal Suchánek for bug fixes and review. # # Signed-off-by: Nicholas Piggin # Signed-off-by: Mauricio Faria de Oliveira # Signed-off-by: Michael Neuling # Signed-off-by: Michal Suchánek # Signed-off-by: Michael Ellerman # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < git log --format=%s --max-count=1 a048a07d7f4535baa4cbad6bc024f175317ab938 # < make -s -j 48 ARCH=sh O=/kisskb/build/linus_shmin_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- shmin_defconfig # make -s -j 48 ARCH=sh O=/kisskb/build/linus_shmin_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1317:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp] :1326:2: warning: #warning syscall statx not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/clock-cpg.c: In function 'cpg_clk_init': /kisskb/src/arch/sh/kernel/cpu/clock-cpg.c:53:3: warning: 'arch_init_clk_ops' is deprecated (declared at /kisskb/src/arch/sh/include/asm/clock.h:8) [-Wdeprecated-declarations] /kisskb/src/arch/sh/kernel/cpu/clock-cpg.c: In function 'arch_clk_init': /kisskb/src/arch/sh/kernel/cpu/clock-cpg.c:77:2: warning: 'cpg_clk_init' is deprecated (declared at /kisskb/src/arch/sh/kernel/cpu/clock-cpg.c:47) [-Wdeprecated-declarations] /kisskb/src/arch/sh/kernel/cpu/sh3/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh3/../../entry-common.S:389: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh3/../../entry-common.S:392: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /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/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:340:21: note: 'pdeo' was declared here /kisskb/src/drivers/sh/clk/cpg.c: In function 'r8': /kisskb/src/drivers/sh/clk/cpg.c:41:2: warning: passing argument 1 of 'ioread8' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:29:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r16': /kisskb/src/drivers/sh/clk/cpg.c:46:2: warning: passing argument 1 of 'ioread16' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:30:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r32': /kisskb/src/drivers/sh/clk/cpg.c:51:2: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:32:21: note: expected 'void *' but argument is of type 'const void *' Kernel: arch/sh/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_shmin_defconfig_sh4 # Build took: 0:00:26.942712