# git rev-parse -q --verify ff69279a44e9ba876466b7d3ab84d6dbd31cac92^{commit} ff69279a44e9ba876466b7d3ab84d6dbd31cac92 already have revision, skipping fetch # git checkout -q -f -B kisskb ff69279a44e9ba876466b7d3ab84d6dbd31cac92 # git clean -qxdf # < git log -1 # commit ff69279a44e9ba876466b7d3ab84d6dbd31cac92 # Author: Ard Biesheuvel # Date: Wed Aug 29 08:47:53 2018 +0200 # # powerpc: disable support for relative ksymtab references # # The newly added code that emits ksymtab entries as pairs of 32-bit # relative references interacts poorly with the way powerpc lays out its # address space: when a module exports a per-CPU variable, the primary # module region covering the ksymtab entry -and thus the 32-bit relative # reference- is too far away from the actual per-CPU variable's base # address (to which the per-CPU offsets are applied to obtain the # respective address of each CPU's copy), resulting in corruption when the # module loader attempts to resolve symbol references of modules that are # loaded on top and link to the exported per-CPU symbol. # # So let's disable this feature on powerpc. Even though it implements # CONFIG_RELOCATABLE, it does not implement CONFIG_RANDOMIZE_BASE and so # KASLR kernels (which are the main target of the feature) do not exist on # powerpc anyway. # # Reported-by: Andreas Schwab # Suggested-by: Nicholas Piggin # Signed-off-by: Ard Biesheuvel # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 ff69279a44e9ba876466b7d3ab84d6dbd31cac92 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pseries_le_defconfig # Added to kconfig CONFIG_NUMA=n # yes \n | make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: modpost: Found 3 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' Completed OK # rm -rf /kisskb/build/linus_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 # Build took: 0:03:36.912869