Buildresult: linus/x86_64-randconfig/x86_64-gcc4.6 built on Jan 23 2018, 08:03
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
Failed
Date/Time:
Jan 23 2018, 08:03
Duration:
0:00:05.882765
Builder:
ka1
Revision:
mm, page_vma_mapped: Drop faulty pointer arithmetics in check_pte() (
0d665e7b109d512b7cae3ccef6e8654714887844)
Target:
linus/x86_64-randconfig/x86_64-gcc4.6
Branch:
linus
Compiler:
x86_64-gcc4.6
(x86_64-linux-gcc (GCC) 4.6.3)
Config:
randconfig
(
download
)
Log:
Download original
Possible errors
gcc: error trying to exec 'cc1plus': execvp: No such file or directory make[1]: *** [gcc-plugins-check] Error 1 make: *** [sub-make] Error 2
No warnings found in log.
Full Log
# git rev-parse -q --verify 0d665e7b109d512b7cae3ccef6e8654714887844^{commit} 0d665e7b109d512b7cae3ccef6e8654714887844 already have revision, skipping fetch # git checkout -q -f -B kisskb 0d665e7b109d512b7cae3ccef6e8654714887844 # git clean -qxdf # git log -1 commit 0d665e7b109d512b7cae3ccef6e8654714887844 Author: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Date: Fri Jan 19 15:49:24 2018 +0300 mm, page_vma_mapped: Drop faulty pointer arithmetics in check_pte() Tetsuo reported random crashes under memory pressure on 32-bit x86 system and tracked down to change that introduced page_vma_mapped_walk(). The root cause of the issue is the faulty pointer math in check_pte(). As ->pte may point to an arbitrary page we have to check that they are belong to the section before doing math. Otherwise it may lead to weird results. It wasn't noticed until now as mem_map[] is virtually contiguous on flatmem or vmemmap sparsemem. Pointer arithmetic just works against all 'struct page' pointers. But with classic sparsemem, it doesn't because each section memap is allocated separately and so consecutive pfns crossing two sections might have struct pages at completely unrelated addresses. Let's restructure code a bit and replace pointer arithmetic with operations on pfns. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Reported-and-tested-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Acked-by: Michal Hocko <mhocko@suse.com> Fixes: ace71a19cec5 ("mm: introduce page_vma_mapped_walk()") Cc: stable@vger.kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> # < /opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < git log --format=%s --max-count=1 0d665e7b109d512b7cae3ccef6e8654714887844 # < make -j 48 ARCH=x86_64 O=/home/kisskb/slave/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- randconfig KCONFIG_SEED=0x1649B593 # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=n # Added to kconfig CONFIG_GCC_PLUGIN_SANCOV=n # Added to kconfig CONFIG_GCC_PLUGIN_LATENT_ENTROPY=n # yes \n | make -j 48 ARCH=x86_64 O=/home/kisskb/slave/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -j 48 ARCH=x86_64 O=/home/kisskb/slave/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- make[1]: Entering directory '/home/kisskb/slave/build/linus_x86_64-randconfig_x86_64' GEN ./Makefile scripts/kconfig/conf --silentoldconfig Kconfig scripts/Makefile.kasan:20: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler CHK include/config/kernel.release SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h SYSTBL arch/x86/include/generated/asm/syscalls_32.h SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h SYSTBL arch/x86/include/generated/asm/syscalls_64.h HOSTCC scripts/basic/bin2c SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h GEN ./Makefile WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h gcc: error trying to exec 'cc1plus': execvp: No such file or directory Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing? scripts/Makefile.gcc-plugins:69: recipe for target 'gcc-plugins-check' failed make[1]: *** [gcc-plugins-check] Error 1 make[1]: *** Waiting for unfinished jobs.... DESCEND objtool HOSTCC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/fixdep.o HOSTLD /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/fixdep-in.o LINK /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/fixdep CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/builtin-check.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/builtin-orc.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/check.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/orc_gen.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/orc_dump.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/elf.o MKDIR /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/arch/x86/lib/ CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/special.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/objtool.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/libstring.o GEN /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/arch/x86/lib/inat-tables.c CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/str_error_r.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/exec-cmd.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/help.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/pager.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/parse-options.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/run-command.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/sigchain.o CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/arch/x86/decode.o UPD include/config/kernel.release CC /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/subcmd-config.o LD /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/arch/x86/objtool-in.o LD /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/libsubcmd-in.o AR /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/libsubcmd.a LD /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/objtool-in.o LINK /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64/tools/objtool/objtool make[1]: Leaving directory '/home/kisskb/slave/build/linus_x86_64-randconfig_x86_64' Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -j 48 ARCH=x86_64 O=/home/kisskb/slave/build/linus_x86_64-randconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- ' returned non-zero exit status 2 # rm -rf /home/kisskb/slave/build/linus_x86_64-randconfig_x86_64 # Build took: 0:00:05.882765
© Michael Ellerman 2006-2018.