# git rev-parse -q --verify 92edf8df0ff2ae86cc632eeca0e651fd8431d40d^{commit} 92edf8df0ff2ae86cc632eeca0e651fd8431d40d already have revision, skipping fetch # git checkout -q -f -B kisskb 92edf8df0ff2ae86cc632eeca0e651fd8431d40d # git clean -qxdf # < git log -1 # commit 92edf8df0ff2ae86cc632eeca0e651fd8431d40d # Author: Michael Ellerman # Date: Thu Mar 21 15:24:33 2019 +1100 # # powerpc/security: Fix spectre_v2 reporting # # When I updated the spectre_v2 reporting to handle software count cache # flush I got the logic wrong when there's no software count cache # enabled at all. # # The result is that on systems with the software count cache flush # disabled we print: # # Mitigation: Indirect branch cache disabled, Software count cache flush # # Which correctly indicates that the count cache is disabled, but # incorrectly says the software count cache flush is enabled. # # The root of the problem is that we are trying to handle all # combinations of options. But we know now that we only expect to see # the software count cache flush enabled if the other options are false. # # So split the two cases, which simplifies the logic and fixes the bug. # We were also missing a space before "(hardware accelerated)". # # The result is we see one of: # # Mitigation: Indirect branch serialisation (kernel only) # Mitigation: Indirect branch cache disabled # Mitigation: Software count cache flush # Mitigation: Software count cache flush (hardware accelerated) # # Fixes: ee13cb249fab ("powerpc/64s: Add support for software count cache flush") # Cc: stable@vger.kernel.org # v4.19+ # Signed-off-by: Michael Ellerman # Reviewed-by: Michael Neuling # Reviewed-by: Diana Craciun # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 92edf8df0ff2ae86cc632eeca0e651fd8431d40d # < make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mips CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux- defconfig # make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mips CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux- /kisskb/src/arch/mips/vdso/Makefile:39: MIPS VDSO requires binutils >= 2.25 :1478:2: warning: #warning syscall pidfd_send_signal not implemented [-Wcpp] :1481:2: warning: #warning syscall io_uring_setup not implemented [-Wcpp] :1484:2: warning: #warning syscall io_uring_enter not implemented [-Wcpp] :1487:2: warning: #warning syscall io_uring_register not implemented [-Wcpp] /kisskb/src/arch/mips/vdso/Makefile:39: MIPS VDSO requires binutils >= 2.25 /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:187:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:140:32: warning: 'levelspread[]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:88:6: note: 'levelspread[]' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1855:6: 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:2594:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/notify/fanotify/fanotify.c: In function 'fanotify_encode_fid': /kisskb/src/fs/notify/fanotify/fanotify.c:249:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat] /kisskb/src/fs/notify/fanotify/fanotify.c:249:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /kisskb/src/fs/notify/mark.c: In function 'fsnotify_add_mark_list': /kisskb/src/fs/notify/mark.c:587:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat] /kisskb/src/fs/notify/mark.c:587:3: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat] /kisskb/src/fs/notify/mark.c:587:3: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Wformat] /kisskb/src/fs/notify/mark.c:587:3: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Wformat] /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:337:21: note: 'pdeo' was declared here /kisskb/src/fs/fs_parser.c: In function 'fs_validate_description': /kisskb/src/fs/fs_parser.c:413:6: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat] /kisskb/src/net/sunrpc/xprtsock.c: In function 'xs_read_stream_request.constprop.17': /kisskb/src/net/sunrpc/xprtsock.c:529:2: warning: 'read' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/sunrpc/xprtsock.c:529:2: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] :1478:2: warning: #warning syscall pidfd_send_signal not implemented [-Wcpp] :1481:2: warning: #warning syscall io_uring_setup not implemented [-Wcpp] :1484:2: warning: #warning syscall io_uring_enter not implemented [-Wcpp] :1487:2: warning: #warning syscall io_uring_register not implemented [-Wcpp] /kisskb/src/arch/mips/vdso/Makefile:39: MIPS VDSO requires binutils >= 2.25 /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:187:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] FIT description: Linux 5.1.0-rc1-g92edf8df0ff2 Created: Fri Mar 22 00:03:41 2019 Image 0 (kernel@0) Description: Linux 5.1.0-rc1-g92edf8df0ff2 Created: Fri Mar 22 00:03:41 2019 Type: Kernel Image Compression: gzip compressed Data Size: 4370878 Bytes = 4268.44 KiB = 4.17 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8081d8f0 Hash algo: sha1 Hash value: 4922bccde7f4aa06191de5431008a55274c35bc1 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Fri Mar 22 00:03:41 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Fri Mar 22 00:03:41 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Fri Mar 22 00:03:41 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d 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 Configuration 3 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mips # Build took: 0:01:17.391258