# git rev-parse -q --verify b5372fe5dc84235dbe04998efdede3c4daa866a9^{commit} b5372fe5dc84235dbe04998efdede3c4daa866a9 already have revision, skipping fetch # git checkout -q -f -B kisskb b5372fe5dc84235dbe04998efdede3c4daa866a9 # git clean -qxdf # < git log -1 # commit b5372fe5dc84235dbe04998efdede3c4daa866a9 # Author: Kees Cook # Date: Mon Feb 18 16:36:48 2019 -0800 # # exec: load_script: Do not exec truncated interpreter path # # Commit 8099b047ecc4 ("exec: load_script: don't blindly truncate # shebang string") was trying to protect against a confused exec of a # truncated interpreter path. However, it was overeager and also refused # to truncate arguments as well, which broke userspace, and it was # reverted. This attempts the protection again, but allows arguments to # remain truncated. In an effort to improve readability, helper functions # and comments have been added. # # Co-developed-by: Linus Torvalds # Signed-off-by: Kees Cook # Cc: Andrew Morton # Cc: Oleg Nesterov # Cc: Samuel Dionne-Riel # Cc: Richard Weinberger # Cc: Graham Christensen # Cc: Michal Hocko # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 b5372fe5dc84235dbe04998efdede3c4daa866a9 # < make -s -j 24 ARCH=arm64 O=/kisskb/build/linus_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- defconfig # make -s -j 24 ARCH=arm64 O=/kisskb/build/linus_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:40: LSE atomics not supported by binutils In file included from /kisskb/src/include/linux/rwsem.h:16:0, from /kisskb/src/include/linux/notifier.h:15, from /kisskb/src/include/linux/clk.h:17, from /kisskb/src/drivers/tty/serial/sh-sci.c:24: /kisskb/src/drivers/tty/serial/sh-sci.c: In function 'sci_submit_rx': /kisskb/src/include/linux/spinlock.h:279:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] _raw_spin_unlock_irqrestore(lock, flags); \ ^ /kisskb/src/drivers/tty/serial/sh-sci.c:1338:16: note: 'flags' was declared here unsigned long flags; ^ Completed OK # rm -rf /kisskb/build/linus_arm64-defconfig_arm64-gcc5.4 # Build took: 0:03:37.687693