# 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/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 2f26ed1764b42a8c40d9c48441c73a70d805decf # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4097:warning: override: reassigning to symbol PPC_E500MC .config:4098:warning: override: reassigning to symbol VIRTUALIZATION # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, 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] 22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) | ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # 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' 139 | if (IS_ERR_VALUE(fep->ring_mem_addr)) | ^~~~~~~~~~~~ /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 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe788f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe680f4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6751938 Bytes = 6593.69 KiB = 6.44 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6787238 Bytes = 6628.16 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6788809 Bytes = 6629.70 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6785355 Bytes = 6626.32 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6787237 Bytes = 6628.16 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6787536 Bytes = 6628.45 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6787292 Bytes = 6628.21 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:32 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6787137 Bytes = 6628.06 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6785356 Bytes = 6626.32 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6788595 Bytes = 6629.49 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6786269 Bytes = 6627.22 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6787222 Bytes = 6628.15 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6785286 Bytes = 6626.26 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6785312 Bytes = 6626.28 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6789032 Bytes = 6629.91 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-g2f26ed1764b4 Created: Sat May 30 02:09:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6788756 Bytes = 6629.64 KiB = 6.47 MiB Load Address: 00f00000 Entry Point: 00f002cc Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 # Build took: 0:02:37.245933