# 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/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 ff69279a44e9ba876466b7d3ab84d6dbd31cac92 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_corenet64_smp_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- corenet64_smp_defconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_corenet64_smp_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1256:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1433:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:341:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2511:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1833:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/core/rtnetlink.c: In function 'rtnl_newlink': /kisskb/src/net/core/rtnetlink.c:3148:1: warning: the frame size of 1248 bytes is larger than 1024 bytes [-Wframe-larger-than=] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:251:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:231:19: note: 'i' was declared here WARNING: vmlinux.o (.PPC.EMB.apuinfo): unexpected non-allocatable section. Did you forget to use "ax"/"aw" in a .S file? Note that for example contains section definitions for use in .S files. INFO: Uncompressed kernel (size 0xf40e58) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) Image Name: Linux-4.19.0-rc1-gff69279a44e9b Created: Thu Aug 30 11:02:50 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6423968 Bytes = 6273.41 KiB = 6.13 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/linus_corenet64_smp_defconfig_powerpc # Build took: 0:02:14.732749