# 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/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 6830fcf476286380beeac027eaa2718cb574438a # < make -s -j 48 ARCH=powerpc O=/kisskb/build/mpe_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/mpe_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xb495a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb38dec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:01 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5530266 Bytes = 5400.65 kB = 5.27 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:01 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554010 Bytes = 5423.84 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:01 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554341 Bytes = 5424.16 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5553970 Bytes = 5423.80 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5555344 Bytes = 5425.14 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554297 Bytes = 5424.12 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5553972 Bytes = 5423.80 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554638 Bytes = 5424.45 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554148 Bytes = 5423.97 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5555570 Bytes = 5425.36 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5555483 Bytes = 5425.28 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554297 Bytes = 5424.12 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554340 Bytes = 5424.16 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5553908 Bytes = 5423.74 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5555718 Bytes = 5425.51 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.10-g6830fcf Created: Tue May 22 16:36:03 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5554332 Bytes = 5424.15 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c00278 Completed OK # rm -rf /kisskb/build/mpe_mpc85xx_defconfig_powerpc-5.3 # Build took: 0:01:39.369424