# 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-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 b5372fe5dc84235dbe04998efdede3c4daa866a9 # < make -s -j 10 ARCH=sparc O=/kisskb/build/linus_sparc-defconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- defconfig # make -s -j 10 ARCH=sparc O=/kisskb/build/linus_sparc-defconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- :1336:2: warning: #warning syscall rseq not implemented [-Wcpp] kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_sparc-defconfig_sparc64 # Build took: 0:00:46.013047