# git rev-parse -q --verify 66f93c5a02d5ba6ef17fef459143961382593212^{commit} 66f93c5a02d5ba6ef17fef459143961382593212 already have revision, skipping fetch # git checkout -q -f -B kisskb 66f93c5a02d5ba6ef17fef459143961382593212 # git clean -qxdf # < git log -1 # commit 66f93c5a02d5ba6ef17fef459143961382593212 # Author: Nicholas Piggin # Date: Thu Nov 15 12:34:27 2018 +1000 # # powerpc/64: Fix kernel stack 16-byte alignment # # Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather # than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, # which causes the interrupt frame allocation on kernel entry to put the # kernel stack out of alignment. # # Quadword (16-byte) alignment for the stack is required by both the # 64-bit v1 ABI (v1.9 § 3.2.2) and the 64-bit v2 ABI (v1.1 § 2.2.2.1). # # Add a pad field to fix alignment, and add a BUILD_BUG_ON to catch this # in future. # # Fixes: 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather than thread_struct") # Signed-off-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 66f93c5a02d5ba6ef17fef459143961382593212 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ arch/powerpc/boot/dts/fsl/mpc8555cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/dts/fsl/mpc8541cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb93bec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb833f8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5710387 Bytes = 5576.55 KiB = 5.45 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708825 Bytes = 5575.02 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5710205 Bytes = 5576.37 KiB = 5.45 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708765 Bytes = 5574.97 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5709476 Bytes = 5575.66 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708907 Bytes = 5575.10 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c00320 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708756 Bytes = 5574.96 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708833 Bytes = 5575.03 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c00320 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5677901 Bytes = 5544.83 KiB = 5.41 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5710148 Bytes = 5576.32 KiB = 5.45 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708847 Bytes = 5575.05 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c00320 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708824 Bytes = 5575.02 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708780 Bytes = 5574.98 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c00320 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708825 Bytes = 5575.02 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c002b0 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5708778 Bytes = 5574.98 KiB = 5.44 MiB Load Address: 00c00000 Entry Point: 00c00320 Image Name: Linux-4.20.0-rc1-g66f93c5a02d5 Created: Thu Nov 15 20:28:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5709564 Bytes = 5575.75 KiB = 5.45 MiB Load Address: 00c00000 Entry Point: 00c002b0 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 # Build took: 0:01:40.290113