# 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/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 b5372fe5dc84235dbe04998efdede3c4daa866a9 # < make -s -j 24 ARCH=sh O=/kisskb/build/linus_espt_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- espt_defconfig # make -s -j 24 ARCH=sh O=/kisskb/build/linus_espt_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1318:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1321:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1324:2: warning: #warning syscall pkey_free not implemented [-Wcpp] :1327:2: warning: #warning syscall statx not implemented [-Wcpp] :1333:2: warning: #warning syscall io_pgetevents not implemented [-Wcpp] :1336:2: warning: #warning syscall rseq not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S:385: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S:388: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/net/ipv4/ip_output.c: In function '__ip_append_data': /kisskb/src/include/linux/skbuff.h:1338:6: warning: 'extra_uref' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/ipv4/ip_output.c:885:14: note: 'extra_uref' was declared here /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/sh/clk/cpg.c: In function 'r8': /kisskb/src/drivers/sh/clk/cpg.c:41:2: warning: passing argument 1 of 'ioread8' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:29:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r16': /kisskb/src/drivers/sh/clk/cpg.c:46:2: warning: passing argument 1 of 'ioread16' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:30:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r32': /kisskb/src/drivers/sh/clk/cpg.c:51:2: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:32:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here Kernel: arch/sh/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_espt_defconfig_sh4 # Build took: 0:00:33.102882