# git rev-parse -q --verify c790c3d2b0ec5979d83451d0688d1cd07e23d8ba^{commit} c790c3d2b0ec5979d83451d0688d1cd07e23d8ba already have revision, skipping fetch # git checkout -q -f -B kisskb c790c3d2b0ec5979d83451d0688d1cd07e23d8ba # git clean -qxdf # < git log -1 # commit c790c3d2b0ec5979d83451d0688d1cd07e23d8ba # Author: Michael Ellerman # Date: Mon May 20 20:55:20 2019 +1000 # # selftests/powerpc: Add a test of spectre_v2 mitigations # # This test uses the PMU to count branch prediction hits/misses for a # known loop, and compare the result to the reported spectre v2 # mitigation. # # This gives us a way of sanity checking that the reported mitigation is # actually in effect. # # Sample output for some cases, eg: # # Power9: # sysfs reports: 'Vulnerable' # PM_BR_PRED_CCACHE: result 368 running/enabled 5792777124 # PM_BR_MPRED_CCACHE: result 319 running/enabled 5792775546 # PM_BR_PRED_PCACHE: result 2147483281 running/enabled 5792773128 # PM_BR_MPRED_PCACHE: result 213604201 running/enabled 5792771640 # Miss percent 9 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # sysfs reports: 'Mitigation: Indirect branch serialisation (kernel only)' # PM_BR_PRED_CCACHE: result 895 running/enabled 5780320920 # PM_BR_MPRED_CCACHE: result 822 running/enabled 5780312414 # PM_BR_PRED_PCACHE: result 2147482754 running/enabled 5780308836 # PM_BR_MPRED_PCACHE: result 213639731 running/enabled 5780307912 # Miss percent 9 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # sysfs reports: 'Mitigation: Indirect branch cache disabled' # PM_BR_PRED_CCACHE: result 2147483649 running/enabled 20540186160 # PM_BR_MPRED_CCACHE: result 2147483649 running/enabled 20540180056 # PM_BR_PRED_PCACHE: result 0 running/enabled 20540176090 # PM_BR_MPRED_PCACHE: result 0 running/enabled 20540174182 # Miss percent 100 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # Power8: # sysfs reports: 'Vulnerable' # PM_BR_PRED_CCACHE: result 2147483649 running/enabled 3505888142 # PM_BR_MPRED_CCACHE: result 9 running/enabled 3505882788 # Miss percent 0 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # sysfs reports: 'Mitigation: Indirect branch cache disabled' # PM_BR_PRED_CCACHE: result 2147483649 running/enabled 16931421988 # PM_BR_MPRED_CCACHE: result 2147483649 running/enabled 16931416478 # Miss percent 100 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # success: spectre_v2 # # Signed-off-by: Michael Ellerman # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190520105520.22274-1-mpe@ellerman.id.au # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 c790c3d2b0ec5979d83451d0688d1cd07e23d8ba # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/soc-pcm.c: In function 'soc_pcm_trigger': /kisskb/src/sound/soc/soc-pcm.c:1074:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/soc-pcm.c: In function 'soc_pcm_bespoke_trigger': /kisskb/src/sound/soc/soc-pcm.c:1092:9: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1497:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204: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:338:21: note: 'pdeo' was declared here /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5810) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc5010) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211343 Bytes = 6065.76 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211331 Bytes = 6065.75 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211608 Bytes = 6066.02 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211182 Bytes = 6065.61 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211519 Bytes = 6065.94 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211371 Bytes = 6065.79 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211234 Bytes = 6065.66 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6212109 Bytes = 6066.51 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211328 Bytes = 6065.75 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211241 Bytes = 6065.67 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211192 Bytes = 6065.62 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6180821 Bytes = 6035.96 KiB = 5.89 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211675 Bytes = 6066.09 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211193 Bytes = 6065.62 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6211858 Bytes = 6066.27 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 21:41:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6212086 Bytes = 6066.49 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:02:06.105026