# 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/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 6e693b3ffecb0b478c7050b44a4842854154f715 # < make -s -j 120 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- randconfig KCONFIG_SEED=0x2CDC2C1F WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # yes \n | make -s -j 120 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 120 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] /kisskb/src/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts:25.9-29.5: Warning (graph_port): /edp-panel/ports: graph port node name should be 'port' /kisskb/src/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts:46.9-50.5: Warning (graph_port): /edp-panel/ports: graph port node name should be 'port' /kisskb/src/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts:94.9-98.5: Warning (graph_port): /edp-panel/ports: graph port node name should be 'port' In file included from /kisskb/src/include/asm-generic/bug.h:18, from /kisskb/src/arch/arm64/include/asm/bug.h:37, from /kisskb/src/include/linux/bug.h:5, from /kisskb/src/include/linux/mmdebug.h:5, from /kisskb/src/include/linux/mm.h:9, from /kisskb/src/drivers/dma/imx-dma.c:14: /kisskb/src/drivers/dma/imx-dma.c: In function 'imxdma_sg_next': /kisskb/src/include/linux/kernel.h:846:29: warning: comparison of distinct pointer types lacks a cast (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^~ /kisskb/src/include/linux/kernel.h:860:4: note: in expansion of macro '__typecheck' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~ /kisskb/src/include/linux/kernel.h:870:24: note: in expansion of macro '__safe_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~ /kisskb/src/include/linux/kernel.h:879:19: note: in expansion of macro '__careful_cmp' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~ /kisskb/src/drivers/dma/imx-dma.c:288:8: note: in expansion of macro 'min' now = min(d->len, sg_dma_len(sg)); ^~~ drivers/pinctrl/freescale/pinctrl-scu.o: In function `imx_pinctrl_sc_ipc_init': pinctrl-scu.c:(.text+0x10): undefined reference to `imx_scu_get_handle' drivers/pinctrl/freescale/pinctrl-scu.o: In function `imx_pinconf_get_scu': pinctrl-scu.c:(.text+0xb0): undefined reference to `imx_scu_call_rpc' drivers/pinctrl/freescale/pinctrl-scu.o: In function `imx_pinconf_set_scu': pinctrl-scu.c:(.text+0x1dc): undefined reference to `imx_scu_call_rpc' make[1]: *** [/kisskb/src/Makefile:1021: vmlinux] Error 1 make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 120 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 # Build took: 0:01:14.513657