# git rev-parse -q --verify 617aebe6a97efa539cc4b8a52adccd89596e6be0^{commit} 617aebe6a97efa539cc4b8a52adccd89596e6be0 already have revision, skipping fetch # git checkout -q -f -B kisskb 617aebe6a97efa539cc4b8a52adccd89596e6be0 # git clean -qxdf # git log -1 commit 617aebe6a97efa539cc4b8a52adccd89596e6be0 Merge: 0771ad4 e47e311 Author: Linus Torvalds Date: Sat Feb 3 16:25:42 2018 -0800 Merge tag 'usercopy-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux Pull hardened usercopy whitelisting from Kees Cook: "Currently, hardened usercopy performs dynamic bounds checking on slab cache objects. This is good, but still leaves a lot of kernel memory available to be copied to/from userspace in the face of bugs. To further restrict what memory is available for copying, this creates a way to whitelist specific areas of a given slab cache object for copying to/from userspace, allowing much finer granularity of access control. Slab caches that are never exposed to userspace can declare no whitelist for their objects, thereby keeping them unavailable to userspace via dynamic copy operations. (Note, an implicit form of whitelisting is the use of constant sizes in usercopy operations and get_user()/put_user(); these bypass all hardened usercopy checks since these sizes cannot change at runtime.) This new check is WARN-by-default, so any mistakes can be found over the next several releases without breaking anyone's system. The series has roughly the following sections: - remove %p and improve reporting with offset - prepare infrastructure and whitelist kmalloc - update VFS subsystem with whitelists - update SCSI subsystem with whitelists - update network subsystem with whitelists - update process memory with whitelists - update per-architecture thread_struct with whitelists - update KVM with whitelists and fix ioctl bug - mark all other allocations as not whitelisted - update lkdtm for more sensible test overage" * tag 'usercopy-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: (38 commits) lkdtm: Update usercopy tests for whitelisting usercopy: Restrict non-usercopy caches to size 0 kvm: x86: fix KVM_XEN_HVM_CONFIG ioctl kvm: whitelist struct kvm_vcpu_arch arm: Implement thread_struct whitelist for hardened usercopy arm64: Implement thread_struct whitelist for hardened usercopy x86: Implement thread_struct whitelist for hardened usercopy fork: Provide usercopy whitelisting for task_struct fork: Define usercopy region in thread_stack slab caches fork: Define usercopy region in mm_struct slab caches net: Restrict unwhitelisted proto caches to size 0 sctp: Copy struct sctp_sock.autoclose to userspace using put_user() sctp: Define usercopy region in SCTP proto slab cache caif: Define usercopy region in caif proto slab cache ip: Define usercopy region in IP proto slab cache net: Define usercopy region in struct proto slab cache scsi: Define usercopy region in scsi_sense_cache slab cache cifs: Define usercopy region in cifs_request slab cache vxfs: Define usercopy region in vxfs_inode slab cache ufs: Define usercopy region in ufs_inode_cache slab cache ... # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < git log --format=%s --max-count=1 617aebe6a97efa539cc4b8a52adccd89596e6be0 # < make -j 40 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allyesconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- allyesconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # yes \n | make -j 40 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allyesconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -j 40 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allyesconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- make[1]: Entering directory '/home/kisskb/slave/build/linus_sh-allyesconfig_sh4' GEN ./Makefile scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.release GEN ./Makefile WRAP arch/sh/include/generated/uapi/asm/bitsperlong.h WRAP arch/sh/include/generated/uapi/asm/bpf_perf_event.h WRAP arch/sh/include/generated/uapi/asm/fcntl.h WRAP arch/sh/include/generated/uapi/asm/errno.h WRAP arch/sh/include/generated/uapi/asm/ipcbuf.h WRAP arch/sh/include/generated/uapi/asm/ioctl.h WRAP arch/sh/include/generated/uapi/asm/kvm_para.h WRAP arch/sh/include/generated/uapi/asm/mman.h WRAP arch/sh/include/generated/uapi/asm/msgbuf.h WRAP arch/sh/include/generated/uapi/asm/param.h WRAP arch/sh/include/generated/uapi/asm/poll.h WRAP arch/sh/include/generated/uapi/asm/resource.h WRAP arch/sh/include/generated/uapi/asm/sembuf.h WRAP arch/sh/include/generated/uapi/asm/shmbuf.h WRAP arch/sh/include/generated/uapi/asm/siginfo.h CHK include/generated/uapi/linux/version.h WRAP arch/sh/include/generated/uapi/asm/socket.h WRAP arch/sh/include/generated/uapi/asm/statfs.h WRAP arch/sh/include/generated/uapi/asm/termbits.h WRAP arch/sh/include/generated/uapi/asm/termios.h WRAP arch/sh/include/generated/uapi/asm/ucontext.h UPD include/generated/uapi/linux/version.h HOSTCC scripts/basic/bin2c UPD include/config/kernel.release Using /home/kisskb/slave/src as source for kernel WRAP arch/sh/include/generated/asm/current.h WRAP arch/sh/include/generated/asm/delay.h WRAP arch/sh/include/generated/asm/div64.h WRAP arch/sh/include/generated/asm/emergency-restart.h WRAP arch/sh/include/generated/asm/exec.h WRAP arch/sh/include/generated/asm/irq_regs.h WRAP arch/sh/include/generated/asm/irq_work.h WRAP arch/sh/include/generated/asm/local.h WRAP arch/sh/include/generated/asm/local64.h WRAP arch/sh/include/generated/asm/mcs_spinlock.h WRAP arch/sh/include/generated/asm/mm-arch-hooks.h CHK include/generated/utsrelease.h WRAP arch/sh/include/generated/asm/parport.h WRAP arch/sh/include/generated/asm/percpu.h WRAP arch/sh/include/generated/asm/preempt.h WRAP arch/sh/include/generated/asm/rwsem.h UPD include/generated/utsrelease.h WRAP arch/sh/include/generated/asm/serial.h WRAP arch/sh/include/generated/asm/sizes.h WRAP arch/sh/include/generated/asm/trace_clock.h WRAP arch/sh/include/generated/asm/xor.h HOSTCC scripts/kallsyms HOSTCC scripts/pnmtologo HOSTCC scripts/dtc/dtc.o HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/conmakehash CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig CC scripts/mod/devicetable-offsets.s Generating include/generated/machtypes.h HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/asn1_compiler SHIPPED scripts/genksyms/parse.tab.c SHIPPED scripts/genksyms/lex.lex.c HOSTCC scripts/dtc/flattree.o SHIPPED scripts/genksyms/parse.tab.h HOSTCC scripts/extract-cert CHK scripts/mod/devicetable-offsets.h HOSTCC scripts/insert-sys-cert HOSTCC scripts/dtc/fstree.o UPD scripts/mod/devicetable-offsets.h CC kernel/bounds.s CHK include/generated/timeconst.h MKELF scripts/mod/elfconfig.h UPD include/generated/timeconst.h HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/mod/file2alias.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/mod/sumversion.o CHK include/generated/bounds.h UPD include/generated/bounds.h CC arch/sh/kernel/asm-offsets.s HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o SHIPPED scripts/dtc/dtc-lexer.lex.c SHIPPED scripts/dtc/dtc-parser.tab.h SHIPPED scripts/dtc/dtc-parser.tab.c HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o CHK include/generated/asm-offsets.h UPD include/generated/asm-offsets.h CALL /home/kisskb/slave/src/scripts/checksyscalls.sh :1317:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp] :1326:2: warning: #warning syscall statx not implemented [-Wcpp] HOSTLD scripts/genksyms/genksyms HOSTLD scripts/dtc/dtc HOSTLD scripts/mod/modpost CC init/main.o CHK include/generated/compile.h CC init/do_mounts.o CC init/do_mounts_rd.o HOSTCC usr/gen_init_cpio CC init/do_mounts_initrd.o CC init/initramfs.o CC init/do_mounts_md.o CC init/calibrate.o CC init/init_task.o CC arch/sh/mm/alignment.o CC arch/sh/mm/cache.o AS arch/sh/kernel/debugtraps.o CC arch/sh/kernel/dma-nommu.o CC arch/sh/kernel/dumpstack.o CC arch/sh/mm/consistent.o CC arch/sh/mm/mmap.o CC arch/sh/kernel/idle.o CC arch/sh/mm/init.o CC arch/sh/mm/cache-sh2.o CC arch/sh/mm/nommu.o CC arch/sh/kernel/io.o CC arch/sh/mm/extable_32.o CC arch/sh/kernel/irq.o CC arch/sh/kernel/irq_32.o CC arch/sh/mm/asids-debugfs.o CC arch/sh/boards/of-generic.o UPD include/generated/compile.h CC arch/sh/kernel/kdebugfs.o CC arch/sh/kernel/machvec.o CC arch/sh/kernel/nmi_debug.o CC arch/sh/kernel/process.o CC arch/sh/kernel/process_32.o CC arch/sh/kernel/ptrace.o CC arch/sh/kernel/ptrace_32.o CC init/version.o CC arch/sh/kernel/reboot.o CC arch/sh/kernel/return_address.o CC arch/sh/math-emu/math.o CC arch/sh/boards/mach-se/board-se7619.o CC certs/system_keyring.o make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.o', needed by 'arch/sh/boot/dts/built-in.o'. Stop. /home/kisskb/slave/src/Makefile:1020: recipe for target 'arch/sh/boot/dts' failed make[1]: *** [arch/sh/boot/dts] Error 2 make[1]: *** Waiting for unfinished jobs.... CC arch/sh/kernel/setup.o CC kernel/fork.o CC kernel/exec_domain.o CC kernel/panic.o EXTRACT_CERTS CC arch/sh/kernel/signal_32.o CC arch/sh/kernel/sys_sh.o AR arch/sh/boards/mach-se/built-in.o CC certs/blacklist.o CC kernel/cpu.o AS arch/sh/kernel/syscalls_32.o CC certs/blacklist_nohashes.o CC arch/sh/kernel/time.o CC arch/sh/kernel/topology.o In file included from /home/kisskb/slave/src/arch/sh/math-emu/math.c:23:0: /home/kisskb/slave/src/include/math-emu/single.h:50:21: warning: "__BIG_ENDIAN" is not defined [-Wundef] In file included from /home/kisskb/slave/src/arch/sh/math-emu/math.c:24:0: /home/kisskb/slave/src/include/math-emu/double.h:59:21: warning: "__BIG_ENDIAN" is not defined [-Wundef] /home/kisskb/slave/src/arch/sh/math-emu/math.c:54:0: warning: "WRITE" redefined [enabled by default] /home/kisskb/slave/src/include/linux/kernel.h:65:0: note: this is the location of the previous definition /home/kisskb/slave/src/arch/sh/math-emu/math.c:55:0: warning: "READ" redefined [enabled by default] /home/kisskb/slave/src/include/linux/kernel.h:64:0: note: this is the location of the previous definition /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fcmp_gt': /home/kisskb/slave/src/arch/sh/math-emu/math.c:81:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:81:1: warning: left shift count is negative [enabled by default] GEN usr/initramfs_data.cpio /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fcmp_eq': /home/kisskb/slave/src/arch/sh/math-emu/math.c:92:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:92:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fadd': /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: right shift count is negative [enabled by default] AS certs/system_certificates.o /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:108:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fsub': /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: left shift count is negative [enabled by default] CC arch/sh/kernel/traps.o /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:115:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fmul': /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:122:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fdiv': /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:129:1: warning: statement with no effect [-Wunused-value] CC kernel/exit.o CC arch/sh/kernel/traps_32.o /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fmac': /home/kisskb/slave/src/arch/sh/math-emu/math.c:145:2: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:145:2: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:147:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:147:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:147:1: warning: statement with no effect [-Wunused-value] CC arch/sh/kernel/unwinder.o AR arch/sh/boards/built-in.o CC arch/sh/kernel/iomap.o /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'ffloat': /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:3: warning: right shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:3: warning: right shift count >= width of type [enabled by default] AS usr/initramfs_data.o /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:3: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:3: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:294:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:296:3: warning: right shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:296:3: warning: right shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:296:1: warning: statement with no effect [-Wunused-value] CC kernel/softirq.o /home/kisskb/slave/src/arch/sh/math-emu/math.c:296:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:296:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'ftrc': /home/kisskb/slave/src/arch/sh/math-emu/math.c:310:1: warning: left shift count is negative [enabled by default] CC arch/sh/kernel/sys_sh32.o /home/kisskb/slave/src/arch/sh/math-emu/math.c:310:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:310:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:310:1: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:310:1: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fcnvsd': /home/kisskb/slave/src/arch/sh/math-emu/math.c:323:2: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:324:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:324:2: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:324:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:324:2: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:324:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c: In function 'fcnvds': /home/kisskb/slave/src/arch/sh/math-emu/math.c:333:1: warning: left shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:334:2: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:334:2: warning: left shift count >= width of type [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:334:2: warning: right shift count is negative [enabled by default] /home/kisskb/slave/src/arch/sh/math-emu/math.c:335:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:335:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c:335:1: warning: statement with no effect [-Wunused-value] /home/kisskb/slave/src/arch/sh/math-emu/math.c: At top level: /home/kisskb/slave/src/arch/sh/math-emu/math.c:505:12: warning: 'ieee_fpe_handler' defined but not used [-Wunused-function] CC arch/sh/kernel/sh_bios.o AR usr/built-in.o CC arch/sh/kernel/kgdb.o CC arch/sh/kernel/cpu/clock-cpg.o CC arch/sh/kernel/sh_ksyms_32.o CC arch/sh/kernel/cpu/irq/imask.o CC arch/sh/kernel/cpu/init.o AS arch/sh/kernel/cpu/sh2/ex.o CC arch/sh/kernel/cpu/sh2/probe.o AS arch/sh/kernel/cpu/sh2/entry.o CC arch/sh/kernel/cpu/clock.o CC kernel/resource.o /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S: Assembler messages: /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:89: Warning: overflow in branch to __restore_all; converted into longer instruction sequence /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:208: Warning: overflow in branch to syscall_call; converted into longer instruction sequence /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:356: Warning: overflow in branch to syscall_trace_entry; converted into longer instruction sequence /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:358: Warning: overflow in branch to syscall_trace_entry; converted into longer instruction sequence /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:389: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /home/kisskb/slave/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:392: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence CC arch/sh/kernel/cpu/sh2/setup-sh7619.o CC arch/sh/kernel/module.o CC arch/sh/kernel/crash_dump.o CC arch/sh/kernel/stacktrace.o CC arch/sh/kernel/kprobes.o CC kernel/sysctl.o CC kernel/sysctl_binary.o /home/kisskb/slave/src/arch/sh/kernel/cpu/clock-cpg.c: In function 'cpg_clk_init': /home/kisskb/slave/src/arch/sh/kernel/cpu/clock-cpg.c:53:3: warning: 'arch_init_clk_ops' is deprecated (declared at /home/kisskb/slave/src/arch/sh/include/asm/clock.h:8) [-Wdeprecated-declarations] /home/kisskb/slave/src/arch/sh/kernel/cpu/clock-cpg.c: In function 'arch_clk_init': /home/kisskb/slave/src/arch/sh/kernel/cpu/clock-cpg.c:77:2: warning: 'cpg_clk_init' is deprecated (declared at /home/kisskb/slave/src/arch/sh/kernel/cpu/clock-cpg.c:47) [-Wdeprecated-declarations] CC kernel/capability.o CC arch/sh/kernel/cpu/fpu.o CC arch/sh/kernel/cpu/sh2/clock-sh7619.o CC arch/sh/kernel/cpu/pfc.o CC kernel/ptrace.o AR arch/sh/mm/built-in.o CC kernel/user.o CC arch/sh/kernel/cpu/proc.o CC arch/sh/kernel/ftrace.o CC kernel/signal.o AR certs/built-in.o /home/kisskb/slave/src/arch/sh/kernel/cpu/clock.c: In function 'clk_init': /home/kisskb/slave/src/arch/sh/kernel/cpu/clock.c:25:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] CC kernel/sys.o CC arch/sh/kernel/disassemble.o CC kernel/umh.o CC kernel/workqueue.o CC arch/sh/kernel/dwarf.o CC arch/sh/kernel/perf_event.o CC kernel/pid.o AR arch/sh/kernel/cpu/irq/built-in.o CC kernel/task_work.o CC kernel/extable.o CC kernel/params.o CC arch/sh/kernel/perf_callchain.o CC kernel/kthread.o CC kernel/sys_ni.o CC kernel/nsproxy.o CC kernel/notifier.o CC kernel/ksysfs.o CC kernel/cred.o CC arch/sh/kernel/hw_breakpoint.o CC kernel/reboot.o AS arch/sh/kernel/head_32.o CC kernel/async.o LDS arch/sh/kernel/vmlinux.lds CC kernel/range.o AR arch/sh/kernel/cpu/sh2/built-in.o CC kernel/smpboot.o CC kernel/ucount.o CC kernel/kmod.o CC kernel/groups.o CC kernel/bpf/core.o CC kernel/bpf/syscall.o AR arch/sh/kernel/cpu/built-in.o CC kernel/bpf/verifier.o CC kernel/bpf/inode.o CC kernel/bpf/helpers.o CC kernel/cgroup/cgroup.o CC kernel/bpf/tnum.o CC kernel/cgroup/stat.o AR init/mounts.o AR init/built-in.o CC kernel/bpf/hashtab.o CC kernel/cgroup/namespace.o CC kernel/cgroup/cgroup-v1.o CC kernel/bpf/arraymap.o CC kernel/cgroup/freezer.o CC kernel/cgroup/pids.o CC kernel/cgroup/rdma.o CC kernel/cgroup/debug.o CC kernel/debug/debug_core.o CC kernel/debug/gdbstub.o CC kernel/debug/kdb/kdb_io.o CC kernel/events/core.o CC kernel/gcov/base.o AR arch/sh/kernel/built-in.o CC kernel/gcov/fs.o CC kernel/gcov/gcc_3_4.o CC kernel/bpf/percpu_freelist.o CC kernel/bpf/bpf_lru_list.o CC kernel/bpf/map_in_map.o CC kernel/bpf/lpm_trie.o CC kernel/bpf/disasm.o CC kernel/bpf/devmap.o CC kernel/debug/kdb/kdb_main.o CC kernel/events/ring_buffer.o CC kernel/events/callchain.o CC kernel/events/hw_breakpoint.o CC kernel/bpf/cpumap.o CC kernel/debug/kdb/kdb_support.o CC kernel/irq/irqdesc.o AR kernel/livepatch/built-in.o CC kernel/debug/kdb/kdb_bt.o GENKDB kernel/debug/kdb/gen-kdb_cmds.c CC kernel/irq/handle.o AR arch/sh/math-emu/built-in.o CC kernel/bpf/offload.o CC kernel/debug/kdb/kdb_bp.o CC kernel/locking/mutex.o CC kernel/debug/kdb/kdb_debugger.o CC kernel/debug/kdb/kdb_keyboard.o AR kernel/gcov/built-in.o CC kernel/debug/kdb/gen-kdb_cmds.o CC kernel/locking/semaphore.o CC kernel/locking/rwsem.o CC kernel/power/qos.o CC kernel/irq/manage.o CC kernel/printk/printk.o CC kernel/irq/spurious.o CC kernel/printk/printk_safe.o CC kernel/rcu/update.o CC kernel/printk/braille.o CC kernel/irq/resend.o /home/kisskb/slave/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /home/kisskb/slave/src/kernel/cgroup/cgroup-v1.c:1268:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] CC kernel/power/main.o CC kernel/power/process.o CC kernel/bpf/sockmap.o CC kernel/bpf/stackmap.o CC kernel/bpf/cgroup.o CC kernel/power/poweroff.o CC kernel/rcu/sync.o CC kernel/irq/chip.o CC kernel/rcu/srcutiny.o CC kernel/irq/dummychip.o CC kernel/locking/percpu-rwsem.o CC kernel/sched/core.o CC kernel/sched/loadavg.o CC kernel/sched/clock.o CC kernel/sched/cputime.o CC kernel/sched/idle_task.o CC kernel/irq/devres.o CC kernel/time/time.o CC kernel/sched/fair.o CC kernel/time/timer.o CC kernel/time/hrtimer.o CC kernel/time/timekeeping.o CC kernel/time/ntp.o CC kernel/time/clocksource.o CC kernel/trace/trace_selftest_dynamic.o CC kernel/trace/trace_clock.o CC kernel/rcu/rcutorture.o CC kernel/time/jiffies.o CC kernel/rcu/rcuperf.o CC kernel/irq/generic-chip.o CC kernel/time/timer_list.o CC kernel/time/timeconv.o CC kernel/time/timecounter.o CC kernel/time/alarmtimer.o CC kernel/time/posix-timers.o CC kernel/irq/irqdomain.o CC kernel/trace/ftrace.o CC kernel/locking/mutex-debug.o CC kernel/trace/ring_buffer.o CC kernel/trace/ring_buffer_benchmark.o CC kernel/kcmp.o CC kernel/freezer.o CC kernel/profile.o AR kernel/power/built-in.o CC kernel/stacktrace.o CC kernel/sched/rt.o CC kernel/sched/deadline.o CC kernel/sched/wait.o CC kernel/sched/wait_bit.o CC kernel/time/posix-cpu-timers.o CC kernel/futex.o CC kernel/up.o CC kernel/locking/lockdep.o AR kernel/debug/kdb/built-in.o AR kernel/debug/built-in.o CC kernel/irq/irq_sim.o CC kernel/uid16.o CC kernel/rcu/tiny.o /home/kisskb/slave/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /home/kisskb/slave/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] CC kernel/trace/trace.o CC kernel/time/posix-clock.o CC kernel/time/itimer.o CC kernel/time/clockevents.o CC kernel/time/tick-common.o CC kernel/trace/trace_output.o CC kernel/module.o CC kernel/kallsyms.o CC kernel/sched/swait.o CC kernel/sched/completion.o CC kernel/sched/idle.o CC kernel/sched/autogroup.o CC kernel/locking/lockdep_proc.o CC kernel/locking/spinlock.o CC kernel/irq/proc.o CC kernel/locking/rtmutex.o CC kernel/locking/rtmutex-debug.o CC kernel/trace/trace_seq.o CC kernel/trace/trace_stat.o CC kernel/trace/trace_printk.o CC kernel/trace/trace_sched_switch.o CC kernel/sched/stats.o CC kernel/sched/debug.o CC kernel/time/sched_clock.o CC kernel/time/tick-oneshot.o CC kernel/sched/cpuacct.o AR kernel/rcu/built-in.o CC kernel/locking/spinlock_debug.o CC kernel/acct.o CC kernel/irq/debugfs.o CC kernel/time/tick-sched.o CC kernel/backtracetest.o AR kernel/printk/built-in.o CC kernel/utsname.o CC kernel/sched/cpufreq.o CC kernel/sched/membarrier.o CC kernel/trace/trace_functions.o CC kernel/trace/trace_irqsoff.o CC kernel/time/timekeeping_debug.o CC kernel/locking/rwsem-spinlock.o CC kernel/sched/isolation.o CC kernel/locking/locktorture.o CC kernel/locking/test-ww_mutex.o CC kernel/user_namespace.o CC kernel/pid_namespace.o GZIP kernel/config_data.gz CC kernel/test_kprobes.o CC kernel/audit.o CC kernel/auditfilter.o CC kernel/auditsc.o AR kernel/bpf/built-in.o CC kernel/time/test_udelay.o CC kernel/trace/trace_sched_wakeup.o CC kernel/trace/trace_hwlat.o CC kernel/trace/trace_nop.o CC kernel/audit_watch.o CC kernel/audit_fsnotify.o CC kernel/audit_tree.o CC kernel/trace/trace_stack.o AR kernel/irq/built-in.o CC kernel/trace/trace_functions_graph.o CC kernel/kprobes.o CC kernel/trace/blktrace.o CC kernel/trace/trace_events.o CC kernel/trace/trace_export.o CC kernel/trace/trace_syscalls.o CC kernel/hung_task.o CC kernel/watchdog.o CC kernel/seccomp.o CC kernel/trace/trace_event_perf.o CC kernel/trace/trace_events_filter.o CC kernel/relay.o CC kernel/utsname_sysctl.o CC kernel/trace/trace_events_trigger.o CC kernel/trace/bpf_trace.o CC kernel/delayacct.o CC kernel/taskstats.o CC kernel/tsacct.o CC kernel/tracepoint.o CC kernel/trace/trace_kprobe.o CC kernel/trace/power-traces.o CC kernel/latencytop.o CC kernel/elfcore.o CC kernel/trace/rpm-traces.o CC kernel/irq_work.o CC kernel/trace/trace_kdb.o CC kernel/trace/trace_probe.o CC kernel/trace/trace_benchmark.o CC kernel/crash_dump.o CC kernel/torture.o AR kernel/time/built-in.o CC kernel/memremap.o CHK kernel/config_data.h AR kernel/cgroup/built-in.o UPD kernel/config_data.h CC kernel/configs.o AR kernel/locking/built-in.o AR kernel/trace/libftrace.o AR kernel/sched/built-in.o AR kernel/events/built-in.o AR kernel/trace/built-in.o AR kernel/built-in.o make[1]: Leaving directory '/home/kisskb/slave/build/linus_sh-allyesconfig_sh4' Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -j 40 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allyesconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- ' returned non-zero exit status 2 # rm -rf /home/kisskb/slave/build/linus_sh-allyesconfig_sh4 # Build took: 0:00:10.063847