# git rev-parse -q --verify 416b2bfbaccf8fd50c8e77778bd47f95f12f13d9^{commit} 416b2bfbaccf8fd50c8e77778bd47f95f12f13d9 already have revision, skipping fetch # git checkout -q -f -B kisskb 416b2bfbaccf8fd50c8e77778bd47f95f12f13d9 # git clean -qxdf # < git log -1 # commit 416b2bfbaccf8fd50c8e77778bd47f95f12f13d9 # Author: Ram Pai # Date: Mon Dec 3 12:43:22 2018 -0800 # # powerpc/pkeys: Copy pkey-tracking-information at fork() # # At fork(), the pkey tracking information is not copied over to the # mm_struct of the child. This can cause the child to erroneously # allocate keys that were already allocated. Any allocated execute-only # key is lost as well. # # Add code; called by dup_mmap(), to copy the pkey state from parent to # child explicitly. # # This problem was originally found by Dave Hansen on x86, which turns # out to be a problem on powerpc as well. # # Fixes: cf43d3b26452 ("powerpc: Enable pkey subsystem") # Cc: stable@vger.kernel.org # v4.16+ # Signed-off-by: Ram Pai # Reviewed-by: Thiago Jung Bauermann # [mpe: Return early if pkey_disabled is true] # 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 416b2bfbaccf8fd50c8e77778bd47f95f12f13d9 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_83xx_mpc8313_rdb_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 83xx/mpc8313_rdb_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_83xx_mpc8313_rdb_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/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:2594: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/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/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 INFO: Uncompressed kernel (size 0x5c213c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.20.0-rc2-g416b2bfbaccf Created: Fri Dec 21 03:16:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2911367 Bytes = 2843.13 KiB = 2.78 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_83xx_mpc8313_rdb_defconfig_powerpc # Build took: 0:00:41.691125