# 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 8 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allmodconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_HAVE_FTRACE_MCOUNT_RECORD=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_MODULE_SIG=n # yes \n | make -s -j 8 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allmodconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 8 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allmodconfig_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] /kisskb/src/drivers/input/joystick/analog.c:172:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^ /kisskb/src/drivers/scsi/myrs.c: In function 'myrs_log_event': /kisskb/src/drivers/scsi/myrs.c:821:24: warning: 'sshdr.sense_key' may be used uninitialized in this function [-Wmaybe-uninitialized] struct scsi_sense_hdr sshdr; ^ 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; ^ kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_sparc64-allmodconfig_sparc64 # Build took: 0:18:24.040649