# git rev-parse -q --verify 6830fcf476286380beeac027eaa2718cb574438a^{commit} 6830fcf476286380beeac027eaa2718cb574438a already have revision, skipping fetch # git checkout -q -f -B kisskb 6830fcf476286380beeac027eaa2718cb574438a # git clean -qxdf # < git log -1 # commit 6830fcf476286380beeac027eaa2718cb574438a # 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 # # commit a048a07d7f4535baa4cbad6bc024f175317ab938 upstream. # # 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/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < git log --format=%s --max-count=1 6830fcf476286380beeac027eaa2718cb574438a # < make -s -j 10 ARCH=mips O=/kisskb/build/mpe_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # make -s -j 10 ARCH=mips O=/kisskb/build/mpe_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- FIT description: Linux 4.16.10-g6830fcf Created: Tue May 22 18:10:22 2018 Image 0 (kernel@0) Description: Linux 4.16.10-g6830fcf Created: Tue May 22 18:10:22 2018 Type: Kernel Image Compression: gzip compressed Data Size: 4404368 Bytes = 4301.14 kB = 4.20 MB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8087b660 Hash algo: sha1 Hash value: 18b9cc60b5f909da9d677665d3bde459e72d9809 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Tue May 22 18:10:22 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 3602 Bytes = 3.52 kB = 0.00 MB Architecture: MIPS Hash algo: sha1 Hash value: dabc84017c5ea1c23fdb5a4b25d185bdf81faa6a Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Tue May 22 18:10:22 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 kB = 0.00 MB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Completed OK # rm -rf /kisskb/build/mpe_mips-defconfig_mipsel # Build took: 0:03:28.566263