# git rev-parse -q --verify 2f26ed1764b42a8c40d9c48441c73a70d805decf^{commit} 2f26ed1764b42a8c40d9c48441c73a70d805decf already have revision, skipping fetch # git checkout -q -f -B kisskb 2f26ed1764b42a8c40d9c48441c73a70d805decf # git clean -qxdf # < git log -1 # commit 2f26ed1764b42a8c40d9c48441c73a70d805decf # Author: Daniel Axtens # Date: Fri May 29 16:14:46 2020 +1000 # # powerpc/64s: Disable sanitisers for C syscall/interrupt entry/exit code # # syzkaller is picking up a bunch of crashes that look like this: # # Unrecoverable exception 380 at c00000000037ed60 (msr=8000000000001031) # Oops: Unrecoverable exception, sig: 6 [#1] # LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries # Modules linked in: # CPU: 0 PID: 874 Comm: syz-executor.0 Not tainted 5.7.0-rc7-syzkaller-00016-gb0c3ba31be3e #0 # NIP: c00000000037ed60 LR: c00000000004bac8 CTR: c000000000030990 # REGS: c0000000555a7230 TRAP: 0380 Not tainted (5.7.0-rc7-syzkaller-00016-gb0c3ba31be3e) # MSR: 8000000000001031 CR: 48222882 XER: 20000000 # CFAR: c00000000004bac4 IRQMASK: 0 # GPR00: c00000000004bb68 c0000000555a74c0 c0000000024b3500 0000000000000005 # GPR04: 0000000000000000 0000000000000000 c00000000004bb88 c008000000910000 # GPR08: 00000000000b0000 c00000000004bac8 0000000000016000 c000000002503500 # GPR12: c000000000030990 c000000003190000 00000000106a5898 00000000106a0000 # GPR16: 00000000106a5890 c000000007a92000 c000000008180e00 c000000007a8f700 # GPR20: c000000007a904b0 0000000010110000 c00000000259d318 5deadbeef0000100 # GPR24: 5deadbeef0000122 c000000078422700 c000000009ee88b8 c000000078422778 # GPR28: 0000000000000001 800000000280b033 0000000000000000 c0000000555a75a0 # NIP [c00000000037ed60] __sanitizer_cov_trace_pc+0x40/0x50 # LR [c00000000004bac8] interrupt_exit_kernel_prepare+0x118/0x310 # Call Trace: # [c0000000555a74c0] [c00000000004bb68] interrupt_exit_kernel_prepare+0x1b8/0x310 (unreliable) # [c0000000555a7530] [c00000000000f9a8] interrupt_return+0x118/0x1c0 # --- interrupt: 900 at __sanitizer_cov_trace_pc+0x0/0x50 # ...... # # This is caused by __sanitizer_cov_trace_pc() causing an SLB fault # after MSR[RI] has been cleared by __hard_EE_RI_disable(), which we # can not recover from. # # Do not instrument the new syscall/interrupt entry/exit code with KCOV, # GCOV or UBSAN. # # Reported-by: syzbot-ppc64 # Fixes: 68b34588e202 ("powerpc/64/sycall: Implement syscall entry/exit logic in C") # Signed-off-by: Daniel Axtens # Acked-by: Andrew Donnellan # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-ld --version # < git log --format=%s --max-count=1 2f26ed1764b42a8c40d9c48441c73a70d805decf # < make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # < make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- help # make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- olddefconfig # make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1652:6: note: 'oldval' was declared here int oldval, ret; ^ FIT description: Linux 5.7.0-rc2-14564-g2f26ed1764b4 Created: Sat May 30 03:27:03 2020 Image 0 (kernel@0) Description: Linux 5.7.0-rc2-14564-g2f26ed1764b4 Created: Sat May 30 03:27:03 2020 Type: Kernel Image Compression: gzip compressed Data Size: 4941175 Bytes = 4825.37 KiB = 4.71 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8091a200 Hash algo: sha1 Hash value: 40cdf11387d003227ccfcb3f7731a4ef5ba16eac Image 1 (fdt@boston) Description: img,boston Device Tree Created: Sat May 30 03:27:03 2020 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: Sat May 30 03:27:03 2020 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@ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Sat May 30 03:27:03 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 4639 Bytes = 4.53 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 018897896b42c41c943aca35a20e4300dba250c8 Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Sat May 30 03:27:03 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 5198 Bytes = 5.08 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 36c7bd0bd79cfc2f7dd6acda6c7996294f4967e6 Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Sat May 30 03:27:03 2020 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@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mipsel # Build took: 0:01:38.179083