# git rev-parse -q --verify e7d9a4c41f8e9eb2a02092a0e22fa2ae54f8caa5^{commit} e7d9a4c41f8e9eb2a02092a0e22fa2ae54f8caa5 already have revision, skipping fetch # git checkout -q -f -B kisskb e7d9a4c41f8e9eb2a02092a0e22fa2ae54f8caa5 # git clean -qxdf # < git log -1 # commit e7d9a4c41f8e9eb2a02092a0e22fa2ae54f8caa5 # Author: Russell Currey # Date: Wed Mar 27 14:35:54 2019 +1100 # # powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX # # With STRICT_KERNEL_RWX enabled anything marked __init is placed at a 16M # boundary. This is necessary so that it can be repurposed later with # different permissions. However, in kernels with text larger than 16M, # this pushes early_setup past 32M, incapable of being reached by the # branch instruction. # # Fix this by setting the CTR and branching there instead. # # Fixes: 1e0fc9d1eb2b ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some configs") # Signed-off-by: Russell Currey # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 e7d9a4c41f8e9eb2a02092a0e22fa2ae54f8caa5 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc40x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc40x_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc40x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- :1478:2: warning: #warning syscall pidfd_send_signal not implemented [-Wcpp] :1481:2: warning: #warning syscall io_uring_setup not implemented [-Wcpp] :1484:2: warning: #warning syscall io_uring_enter not implemented [-Wcpp] :1487:2: warning: #warning syscall io_uring_register not implemented [-Wcpp] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:187:16: warning: 'old' 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:337:21: note: 'pdeo' was declared here /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /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/net/sunrpc/xprtsock.c: In function 'xs_stream_data_receive_workfn': /kisskb/src/net/sunrpc/xprtsock.c:529:2: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/sunrpc/xprtsock.c:499:10: note: 'ret' was declared here /kisskb/src/net/sunrpc/xprtsock.c:529:2: warning: 'read' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/sunrpc/xprtsock.c:498:15: note: 'read' was declared here /kisskb/src/fs/fs_parser.c: In function 'fs_validate_description': /kisskb/src/fs/fs_parser.c:413:6: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat] INFO: Uncompressed kernel (size 0x5556fc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5556fc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x545088) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5556fc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.1.0-rc2-ge7d9a4c41f8e Created: Fri Mar 29 01:38:07 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2714712 Bytes = 2651.09 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 00601758 INFO: Uncompressed kernel (size 0x5556fc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.1.0-rc2-ge7d9a4c41f8e Created: Fri Mar 29 01:38:07 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2681316 Bytes = 2618.47 KiB = 2.56 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.1.0-rc2-ge7d9a4c41f8e Created: Fri Mar 29 01:38:07 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2715243 Bytes = 2651.60 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006019cc Completed OK # rm -rf /kisskb/build/powerpc-next_ppc40x_defconfig_powerpc-gcc4.6 # Build took: 0:00:24.414733