Buildresult: powerpc-next-rand/powerpc-randconfig+ppc64le/powerpc-gcc9 built on Dec 1 2021, 00:42
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
Failed
Date/Time:
Dec 1 2021, 00:42
Duration:
0:00:18.361811
Builder:
ka3
Revision:
powerpc/32s: Fix shift-out-of-bounds in KASAN init (
af11dee4361b3519981fa04d014873f9d9edd6ac)
Target:
powerpc-next-rand/powerpc-randconfig+ppc64le/powerpc-gcc9
Branch:
powerpc-next-rand
Compiler:
powerpc-gcc9
(powerpc64-linux-gcc (GCC) 9.2.0 / GNU ld (GNU Binutils) 2.32)
Config:
randconfig+ppc64le
(
download
)
Log:
Download original
Possible errors
arch/powerpc/include/asm/book3s/64/pgtable-64k.h:60:1: error: no return statement in function returning non-void [-Werror=return-type] cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:121: arch/powerpc/kernel/asm-offsets.s] Error 1 make[1]: *** [Makefile:1197: prepare0] Error 2 make: *** [Makefile:219: __sub-make] Error 2
Possible warnings (4)
.config:7116:warning: override: reassigning to symbol STANDALONE .config:7119:warning: override: reassigning to symbol CPU_BIG_ENDIAN .config:7122:warning: override: reassigning to symbol PPC_BOOK3E_64 .config:7129:warning: override: reassigning to symbol UBSAN
Full Log
# git rev-parse -q --verify af11dee4361b3519981fa04d014873f9d9edd6ac^{commit} af11dee4361b3519981fa04d014873f9d9edd6ac already have revision, skipping fetch # git checkout -q -f -B kisskb af11dee4361b3519981fa04d014873f9d9edd6ac # git clean -qxdf # < git log -1 # commit af11dee4361b3519981fa04d014873f9d9edd6ac # Author: Christophe Leroy <christophe.leroy@csgroup.eu> # Date: Tue Nov 30 09:42:37 2021 +0100 # # powerpc/32s: Fix shift-out-of-bounds in KASAN init # # ================================================================================ # UBSAN: shift-out-of-bounds in arch/powerpc/mm/kasan/book3s_32.c:22:23 # shift exponent -1 is negative # CPU: 0 PID: 0 Comm: swapper Not tainted 5.15.5-gentoo-PowerMacG4 #9 # Call Trace: # [c214be60] [c0ba0048] dump_stack_lvl+0x80/0xb0 (unreliable) # [c214be80] [c0b99288] ubsan_epilogue+0x10/0x5c # [c214be90] [c0b98fe0] __ubsan_handle_shift_out_of_bounds+0x94/0x138 # [c214bf00] [c1c0f010] kasan_init_region+0xd8/0x26c # [c214bf30] [c1c0ed84] kasan_init+0xc0/0x198 # [c214bf70] [c1c08024] setup_arch+0x18/0x54c # [c214bfc0] [c1c037f0] start_kernel+0x90/0x33c # [c214bff0] [00003610] 0x3610 # ================================================================================ # # This happens when the directly mapped memory is a power of 2. # # Fix it by checking the shift and set the result to 0 when shift is -1 # # Fixes: 7974c4732642 ("powerpc/32s: Implement dedicated kasan_init_region()") # Reported-by: Erhard Furtner <erhard_f@mailbox.org> # Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> # Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> # Link: https://bugzilla.kernel.org/show_bug.cgi?id=215169 # Link: https://lore.kernel.org/r/15cbc3439d4ad988b225e2119ec99502a5cc6ad3.1638261744.git.christophe.leroy@csgroup.eu # < /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 af11dee4361b3519981fa04d014873f9d9edd6ac # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=n # Added to kconfig CONFIG_CPU_LITTLE_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_BOOK3E_64=n # Added to kconfig CONFIG_PPC_BOOK3S_64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_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-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:7116:warning: override: reassigning to symbol STANDALONE .config:7119:warning: override: reassigning to symbol CPU_BIG_ENDIAN .config:7122:warning: override: reassigning to symbol PPC_BOOK3E_64 .config:7129:warning: override: reassigning to symbol UBSAN # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/arch/powerpc/include/asm/book3s/64/pgtable.h:310, from /kisskb/src/arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from /kisskb/src/arch/powerpc/include/asm/book3s/64/mmu.h:32, from /kisskb/src/arch/powerpc/include/asm/mmu.h:395, from /kisskb/src/arch/powerpc/include/asm/lppaca.h:46, from /kisskb/src/arch/powerpc/include/asm/paca.h:17, from /kisskb/src/arch/powerpc/include/asm/current.h:13, from /kisskb/src/include/linux/thread_info.h:23, from /kisskb/src/include/asm-generic/preempt.h:5, from ./arch/powerpc/include/generated/asm/preempt.h:1, from /kisskb/src/include/linux/preempt.h:78, from /kisskb/src/include/linux/spinlock.h:55, from /kisskb/src/include/linux/ipc.h:5, from /kisskb/src/include/uapi/linux/sem.h:5, from /kisskb/src/include/linux/sem.h:5, from /kisskb/src/include/linux/compat.h:14, from /kisskb/src/arch/powerpc/kernel/asm-offsets.c:12: /kisskb/src/arch/powerpc/include/asm/book3s/64/pgtable-64k.h: In function 'get_hugepd_cache_index': /kisskb/src/arch/powerpc/include/asm/book3s/64/pgtable-64k.h:60:1: error: no return statement in function returning non-void [-Werror=return-type] 60 | } | ^ cc1: some warnings being treated as errors make[2]: *** [/kisskb/src/scripts/Makefile.build:121: arch/powerpc/kernel/asm-offsets.s] Error 1 make[1]: *** [/kisskb/src/Makefile:1197: prepare0] Error 2 make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig+ppc64le_powerpc-gcc9 # Build took: 0:00:18.361811
© Michael Ellerman 2006-2018.