# git rev-parse -q --verify 7b55851367136b1efd84d98fea81ba57a98304cf^{commit} 7b55851367136b1efd84d98fea81ba57a98304cf already have revision, skipping fetch # git checkout -q -f -B kisskb 7b55851367136b1efd84d98fea81ba57a98304cf # git clean -qxdf # < git log -1 # commit 7b55851367136b1efd84d98fea81ba57a98304cf # Author: David Herrmann # Date: Tue Jan 8 13:58:52 2019 +0100 # # fork: record start_time late # # This changes the fork(2) syscall to record the process start_time after # initializing the basic task structure but still before making the new # process visible to user-space. # # Technically, we could record the start_time anytime during fork(2). But # this might lead to scenarios where a start_time is recorded long before # a process becomes visible to user-space. For instance, with # userfaultfd(2) and TLS, user-space can delay the execution of fork(2) # for an indefinite amount of time (and will, if this causes network # access, or similar). # # By recording the start_time late, it much closer reflects the point in # time where the process becomes live and can be observed by other # processes. # # Lastly, this makes it much harder for user-space to predict and control # the start_time they get assigned. Previously, user-space could fork a # process and stall it in copy_thread_tls() before its pid is allocated, # but after its start_time is recorded. This can be misused to later-on # cycle through PIDs and resume the stalled fork(2) yielding a process # that has the same pid and start_time as a process that existed before. # This can be used to circumvent security systems that identify processes # by their pid+start_time combination. # # Even though user-space was always aware that start_time recording is # flaky (but several projects are known to still rely on start_time-based # identification), changing the start_time to be recorded late will help # mitigate existing attacks and make it much harder for user-space to # control the start_time a process gets assigned. # # Reported-by: Jann Horn # Signed-off-by: Tom Gundersen # Signed-off-by: David Herrmann # 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 7b55851367136b1efd84d98fea81ba57a98304cf # < make -s -j 8 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=0x82A0FE10 WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # yes \n | make -s -j 8 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 8 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 ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=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 function 'ZSTD_copyRawBlock', inlined from 'ZSTD_decompressContinue' at /kisskb/src/lib/zstd/decompress.c:1811:24, inlined from 'ZSTD_decompressStream' at /kisskb/src/lib/zstd/decompress.c:2353:5: /kisskb/src/lib/zstd/decompress.c:416:2: warning: argument 1 null where non-null expected [-Wnonnull] memcpy(dst, src, srcSize); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/string.h:20, from /kisskb/src/lib/zstd/mem.h:24, from /kisskb/src/lib/zstd/bitstream.h:54, from /kisskb/src/lib/zstd/fse.h:228, from /kisskb/src/lib/zstd/decompress.c:32: /kisskb/src/lib/zstd/decompress.c: In function 'ZSTD_decompressStream': /kisskb/src/arch/arm64/include/asm/string.h:46:14: note: in a call to function 'memcpy' declared here extern void *memcpy(void *, const void *, __kernel_size_t); ^~~~~~ In function 'ZSTD_setRleBlock', inlined from 'ZSTD_decompressContinue' at /kisskb/src/lib/zstd/decompress.c:1812:24, inlined from 'ZSTD_decompressStream' at /kisskb/src/lib/zstd/decompress.c:2353:5: /kisskb/src/lib/zstd/decompress.c:426:2: warning: argument 1 null where non-null expected [-Wnonnull] memset(dst, *(const BYTE *)src, regenSize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/string.h:20, from /kisskb/src/lib/zstd/mem.h:24, from /kisskb/src/lib/zstd/bitstream.h:54, from /kisskb/src/lib/zstd/fse.h:228, from /kisskb/src/lib/zstd/decompress.c:32: /kisskb/src/lib/zstd/decompress.c: In function 'ZSTD_decompressStream': /kisskb/src/arch/arm64/include/asm/string.h:54:14: note: in a call to function 'memset' declared here extern void *memset(void *, int, __kernel_size_t); ^~~~~~ In function 'ZSTD_copyRawBlock', inlined from 'ZSTD_decompressContinue' at /kisskb/src/lib/zstd/decompress.c:1811:24, inlined from 'ZSTD_decompressStream' at /kisskb/src/lib/zstd/decompress.c:2356:6: /kisskb/src/lib/zstd/decompress.c:416:2: warning: argument 1 null where non-null expected [-Wnonnull] memcpy(dst, src, srcSize); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/string.h:20, from /kisskb/src/lib/zstd/mem.h:24, from /kisskb/src/lib/zstd/bitstream.h:54, from /kisskb/src/lib/zstd/fse.h:228, from /kisskb/src/lib/zstd/decompress.c:32: /kisskb/src/lib/zstd/decompress.c: In function 'ZSTD_decompressStream': /kisskb/src/arch/arm64/include/asm/string.h:46:14: note: in a call to function 'memcpy' declared here extern void *memcpy(void *, const void *, __kernel_size_t); ^~~~~~ In function 'ZSTD_setRleBlock', inlined from 'ZSTD_decompressContinue' at /kisskb/src/lib/zstd/decompress.c:1812:24, inlined from 'ZSTD_decompressStream' at /kisskb/src/lib/zstd/decompress.c:2356:6: /kisskb/src/lib/zstd/decompress.c:426:2: warning: argument 1 null where non-null expected [-Wnonnull] memset(dst, *(const BYTE *)src, regenSize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/string.h:20, from /kisskb/src/lib/zstd/mem.h:24, from /kisskb/src/lib/zstd/bitstream.h:54, from /kisskb/src/lib/zstd/fse.h:228, from /kisskb/src/lib/zstd/decompress.c:32: /kisskb/src/lib/zstd/decompress.c: In function 'ZSTD_decompressStream': /kisskb/src/arch/arm64/include/asm/string.h:54:14: note: in a call to function 'memset' declared here extern void *memset(void *, int, __kernel_size_t); ^~~~~~ /kisskb/src/drivers/acpi/arm64/iort.c:880:1: error: expected identifier or '(' before '{' token { return NULL; } ^ /kisskb/src/drivers/acpi/arm64/iort.c:879:39: warning: 'iort_fwspec_iommu_ops' used but never defined static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev); ^~~~~~~~~~~~~~~~~~~~~ make[4]: *** [/kisskb/src/scripts/Makefile.build:277: drivers/acpi/arm64/iort.o] Error 1 make[3]: *** [/kisskb/src/scripts/Makefile.build:492: drivers/acpi/arm64] Error 2 make[2]: *** [/kisskb/src/scripts/Makefile.build:492: drivers/acpi] Error 2 make[1]: *** [/kisskb/src/Makefile:1042: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 8 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:04:18.319391