# git rev-parse -q --verify 6e693b3ffecb0b478c7050b44a4842854154f715^{commit} 6e693b3ffecb0b478c7050b44a4842854154f715 already have revision, skipping fetch # git checkout -q -f -B kisskb 6e693b3ffecb0b478c7050b44a4842854154f715 # git clean -qxdf # < git log -1 # commit 6e693b3ffecb0b478c7050b44a4842854154f715 # Author: Will Deacon # Date: Sat Jan 19 21:56:05 2019 +0000 # # x86: uaccess: Inhibit speculation past access_ok() in user_access_begin() # # Commit 594cc251fdd0 ("make 'user_access_begin()' do 'access_ok()'") # makes the access_ok() check part of the user_access_begin() preceding a # series of 'unsafe' accesses. This has the desirable effect of ensuring # that all 'unsafe' accesses have been range-checked, without having to # pick through all of the callsites to verify whether the appropriate # checking has been made. # # However, the consolidated range check does not inhibit speculation, so # it is still up to the caller to ensure that they are not susceptible to # any speculative side-channel attacks for user addresses that ultimately # fail the access_ok() check. # # This is an oversight, so use __uaccess_begin_nospec() to ensure that # speculation is inhibited until the access_ok() check has passed. # # Reported-by: Julien Thierry # Signed-off-by: Will Deacon # Signed-off-by: Linus Torvalds # < /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 6e693b3ffecb0b478c7050b44a4842854154f715 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_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/linus_ppc40x_defconfig_powerpc-gcc4.6 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:339:21: note: 'pdeo' 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/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 0x5415b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5415b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x530f44) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5415b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-rc2-g6e693b3ffecb Created: Sun Jan 20 15:06:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2642216 Bytes = 2580.29 KiB = 2.52 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.0.0-rc2-g6e693b3ffecb Created: Sun Jan 20 15:06:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2673408 Bytes = 2610.75 KiB = 2.55 MiB Load Address: 00600000 Entry Point: 006019cc Image Name: Linux-5.0.0-rc2-g6e693b3ffecb Created: Sun Jan 20 15:06:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2671893 Bytes = 2609.27 KiB = 2.55 MiB Load Address: 00600000 Entry Point: 00601758 INFO: Uncompressed kernel (size 0x5415b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Completed OK # rm -rf /kisskb/build/linus_ppc40x_defconfig_powerpc-gcc4.6 # Build took: 0:00:24.568494