# 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/sh4-linux/bin/sh4-linux-gcc --version # < git log --format=%s --max-count=1 ff69279a44e9ba876466b7d3ab84d6dbd31cac92 # < make -s -j 8 ARCH=sh O=/kisskb/build/linus_migor_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- migor_defconfig # make -s -j 8 ARCH=sh O=/kisskb/build/linus_migor_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1317:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp] :1326:2: warning: #warning syscall statx not implemented [-Wcpp] :1332:2: warning: #warning syscall io_pgetevents not implemented [-Wcpp] :1335:2: warning: #warning syscall rseq not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S:389: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S:392: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /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/vmstat.c: In function 'sysctl_vm_numa_stat_handler': /kisskb/src/mm/vmstat.c:89:5: warning: 'oldval' 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/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/sh/clk/cpg.c: In function 'r8': /kisskb/src/drivers/sh/clk/cpg.c:41:2: warning: passing argument 1 of 'ioread8' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:29:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r16': /kisskb/src/drivers/sh/clk/cpg.c:46:2: warning: passing argument 1 of 'ioread16' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:30:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r32': /kisskb/src/drivers/sh/clk/cpg.c:51:2: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:32:21: note: expected 'void *' but argument is of type 'const void *' Image Name: Linux-4.19.0-rc1-gff69279a44e9 Created: Thu Aug 30 12:21:39 2018 Image Type: SuperH Linux Kernel Image (gzip compressed) Data Size: 2634693 Bytes = 2572.94 KiB = 2.51 MiB Load Address: 8c001000 Entry Point: 8c002000 Image arch/sh/boot/uImage is ready Completed OK # rm -rf /kisskb/build/linus_migor_defconfig_sh4 # Build took: 0:00:58.436929