# git rev-parse -q --verify 2d83b0f30c1483a556c8aa1f7d891006fffcd5e0^{commit} 2d83b0f30c1483a556c8aa1f7d891006fffcd5e0 already have revision, skipping fetch # git checkout -q -f -B kisskb 2d83b0f30c1483a556c8aa1f7d891006fffcd5e0 # git clean -qxdf # < git log -1 # commit 2d83b0f30c1483a556c8aa1f7d891006fffcd5e0 # Author: Ard Biesheuvel # Date: Wed Oct 28 09:04:33 2020 +0100 # # powerpc: Avoid broken GCC __attribute__((optimize)) # # Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early # boot") introduced a couple of uses of __attribute__((optimize)) with # function scope, to disable the stack protector in some early boot # code. # # Unfortunately, and this is documented in the GCC man pages [0], # overriding function attributes for optimization is broken, and is only # supported for debug scenarios, not for production: the problem appears # to be that setting GCC -f flags using this method will cause it to # forget about some or all other optimization settings that have been # applied. # # So the only safe way to disable the stack protector is to disable it # for the entire source file. # # [0] https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html # # Fixes: 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") # Signed-off-by: Ard Biesheuvel # [mpe: Drop one remaining use of __nostackprotector, reported by snowpatch] # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20201028080433.26799-1-ardb@kernel.org # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 2d83b0f30c1483a556c8aa1f7d891006fffcd5e0 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5f39b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:54 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026168 Bytes = 2955.24 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026152 Bytes = 2955.23 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 00601544 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026065 Bytes = 2955.14 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026884 Bytes = 2955.94 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026116 Bytes = 2955.19 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 00601524 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3025966 Bytes = 2955.04 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 006001b8 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026837 Bytes = 2955.90 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 00601514 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026735 Bytes = 2955.80 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 006000c4 Image Name: Linux-5.10.0-rc2-65308-g2d83b0f3 Created: Tue Nov 3 02:39:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3026706 Bytes = 2955.77 KiB = 2.89 MiB Load Address: 00600000 Entry Point: 0060152c Completed OK # rm -rf /kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 # Build took: 0:00:59.656281