# 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/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 66f93c5a02d5ba6ef17fef459143961382593212 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc6xx_defconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /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/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/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:2: warning: 'speaker_vol' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594: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:1855:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec': /kisskb/src/net/bridge/br_netlink.c:647:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2076:9: warning: 'str' 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/dma-buf/reservation.c: In function 'reservation_object_add_shared_fence': /kisskb/src/drivers/dma-buf/reservation.c:226:6: warning: 'k' may be used uninitialized in this function [-Wuninitialized] /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/net/mac80211/mlme.c: In function 'ieee80211_rx_mgmt_beacon': /kisskb/src/net/mac80211/mlme.c:1513:3: warning: 'pwr_level_cisco' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c:1470:6: note: 'pwr_level_cisco' was declared here /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1819:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1729:46: warning: 'linear' 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: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/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type without #include arch/powerpc/boot/dts/mpc832x_rdb.dtb: Warning (interrupts_property): /qe@e0100000/mdio@3120/ethernet-phy@0:#interrupt-cells: size is (4), expected multiple of 8 arch/powerpc/boot/dts/mpc832x_rdb.dtb: Warning (interrupts_property): /qe@e0100000/mdio@3120/ethernet-phy@4:#interrupt-cells: size is (4), expected multiple of 8 INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa73608) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa62f24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa62f24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4990665 Bytes = 4873.70 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b00894 Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4959440 Bytes = 4843.20 KiB = 4.73 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4990475 Bytes = 4873.51 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b0029c Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4990646 Bytes = 4873.68 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b00894 Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4990523 Bytes = 4873.56 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b0029c Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4990687 Bytes = 4873.72 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b0029c Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4988710 Bytes = 4871.79 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b0029c Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4989414 Bytes = 4872.47 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b0029c Image Name: Linux-4.20.0-rc1+ Created: Thu Nov 15 20:05:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4989606 Bytes = 4872.66 KiB = 4.76 MiB Load Address: 00b00000 Entry Point: 00b0029c Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc # Build took: 0:02:49.586180