# git rev-parse -q --verify f6f3732162b5ae3c771b9285a5a32d72b8586920^{commit} f6f3732162b5ae3c771b9285a5a32d72b8586920 already have revision, skipping fetch # git checkout -q -f -B kisskb f6f3732162b5ae3c771b9285a5a32d72b8586920 # git clean -qxdf # git log -1 commit f6f3732162b5ae3c771b9285a5a32d72b8586920 Author: Linus Torvalds Date: Fri Dec 15 18:53:22 2017 -0800 Revert "mm: replace p??_write with pte_access_permitted in fault + gup paths" This reverts commits 5c9d2d5c269c, c7da82b894e9, and e7fe7b5cae90. We'll probably need to revisit this, but basically we should not complicate the get_user_pages_fast() case, and checking the actual page table protection key bits will require more care anyway, since the protection keys depend on the exact state of the VM in question. Particularly when doing a "remote" page lookup (ie in somebody elses VM, not your own), you need to be much more careful than this was. Dave Hansen says: "So, the underlying bug here is that we now a get_user_pages_remote() and then go ahead and do the p*_access_permitted() checks against the current PKRU. This was introduced recently with the addition of the new p??_access_permitted() calls. We have checks in the VMA path for the "remote" gups and we avoid consulting PKRU for them. This got missed in the pkeys selftests because I did a ptrace read, but not a *write*. I also didn't explicitly test it against something where a COW needed to be done" It's also not entirely clear that it makes sense to check the protection key bits at this level at all. But one possible eventual solution is to make the get_user_pages_fast() case just abort if it sees protection key bits set, which makes us fall back to the regular get_user_pages() case, which then has a vma and can do the check there if we want to. We'll see. Somewhat related to this all: what we _do_ want to do some day is to check the PAGE_USER bit - it should obviously always be set for user pages, but it would be a good check to have back. Because we have no generic way to test for it, we lost it as part of moving over from the architecture-specific x86 GUP implementation to the generic one in commit e585513b76f7 ("x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation"). Cc: Peter Zijlstra Cc: Dan Williams Cc: Dave Hansen Cc: Kirill A. Shutemov Cc: "Jérôme Glisse" Cc: Andrew Morton Cc: Al Viro Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < git log --format=%s --max-count=1 f6f3732162b5ae3c771b9285a5a32d72b8586920 # < make -j 120 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allmodconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # yes \n | make -j 120 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allmodconfig_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 120 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allmodconfig_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-allmodconfig_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/errno.h WRAP arch/sh/include/generated/uapi/asm/fcntl.h WRAP arch/sh/include/generated/uapi/asm/ioctl.h WRAP arch/sh/include/generated/uapi/asm/ipcbuf.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/siginfo.h WRAP arch/sh/include/generated/uapi/asm/shmbuf.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 CHK include/generated/uapi/linux/version.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/clkdev.h 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 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 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 CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h HOSTCC scripts/kallsyms HOSTCC scripts/pnmtologo HOSTCC scripts/conmakehash HOSTCC scripts/asn1_compiler HOSTCC scripts/extract-cert HOSTCC scripts/insert-sys-cert HOSTCC scripts/dtc/dtc.o HOSTCC scripts/genksyms/genksyms.o SHIPPED scripts/genksyms/parse.tab.c HOSTCC scripts/dtc/flattree.o SHIPPED scripts/genksyms/lex.lex.c SHIPPED scripts/genksyms/parse.tab.h HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o CC scripts/mod/empty.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/mod/mk_elfconfig HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/dtc/srcpos.o CC scripts/mod/devicetable-offsets.s 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-parser.tab.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/selinux/mdp/mdp Generating include/generated/machtypes.h CHK scripts/mod/devicetable-offsets.h UPD scripts/mod/devicetable-offsets.h CC kernel/bounds.s CHK include/generated/timeconst.h UPD include/generated/timeconst.h MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/sumversion.o CHK include/generated/bounds.h UPD include/generated/bounds.h CC arch/sh/kernel/asm-offsets.s 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/dtc/dtc HOSTLD scripts/genksyms/genksyms HOSTLD scripts/mod/modpost CC init/main.o CHK include/generated/compile.h CC init/do_mounts.o HOSTCC usr/gen_init_cpio CC init/do_mounts_initrd.o CC init/initramfs.o CC init/calibrate.o CC init/init_task.o CC arch/sh/mm/alignment.o CC arch/sh/mm/cache.o CC arch/sh/mm/init.o AS arch/sh/kernel/debugtraps.o CC arch/sh/mm/consistent.o CC arch/sh/mm/mmap.o CC arch/sh/kernel/dma-nommu.o CC arch/sh/mm/cache-sh2.o CC arch/sh/kernel/dumpstack.o CC arch/sh/mm/nommu.o CC arch/sh/mm/extable_32.o CC arch/sh/kernel/idle.o CC arch/sh/boards/of-generic.o CC arch/sh/mm/asids-debugfs.o CC arch/sh/kernel/io.o UPD include/generated/compile.h CC arch/sh/kernel/irq.o CC arch/sh/kernel/irq_32.o make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.o', needed by 'arch/sh/boot/dts/built-in.o'. Stop. CC arch/sh/math-emu/math.o CC init/version.o CC arch/sh/kernel/machvec.o CC arch/sh/kernel/kdebugfs.o /home/kisskb/slave/src/Makefile:1012: 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/nmi_debug.o CC arch/sh/kernel/process_32.o CC arch/sh/kernel/process.o CC arch/sh/kernel/ptrace.o CC arch/sh/kernel/ptrace_32.o CC arch/sh/kernel/reboot.o CC arch/sh/kernel/return_address.o CC arch/sh/kernel/setup.o CC arch/sh/kernel/sys_sh.o CC arch/sh/kernel/signal_32.o AS arch/sh/kernel/syscalls_32.o CC arch/sh/kernel/time.o CC arch/sh/kernel/topology.o CC kernel/fork.o CC arch/sh/kernel/traps.o CC kernel/exit.o CC arch/sh/boards/mach-se/board-se7619.o CC arch/sh/kernel/iomap.o CC arch/sh/kernel/sys_sh32.o CC arch/sh/kernel/traps_32.o CC kernel/cpu.o CC kernel/exec_domain.o CC kernel/resource.o CC arch/sh/kernel/sh_ksyms_32.o CC arch/sh/kernel/sh_bios.o CC kernel/panic.o CC kernel/softirq.o CC arch/sh/kernel/unwinder.o CC arch/sh/kernel/kgdb.o CC arch/sh/kernel/crash_dump.o CC arch/sh/kernel/stacktrace.o CC kernel/capability.o CC kernel/sysctl_binary.o CC kernel/sysctl.o CC arch/sh/kernel/dwarf.o CC arch/sh/kernel/perf_callchain.o CC arch/sh/kernel/hw_breakpoint.o CC kernel/ptrace.o CC arch/sh/kernel/disassemble.o CC kernel/signal.o CC arch/sh/kernel/module.o CC arch/sh/kernel/ftrace.o LDS arch/sh/kernel/vmlinux.lds CC arch/sh/kernel/perf_event.o CC arch/sh/kernel/kprobes.o CC kernel/sys.o CC kernel/user.o CC kernel/umh.o AS arch/sh/kernel/head_32.o CC kernel/pid.o CC kernel/workqueue.o CC kernel/task_work.o CC kernel/params.o CC kernel/kthread.o CC kernel/ksysfs.o CC kernel/cred.o CC kernel/extable.o CC kernel/sys_ni.o CC kernel/notifier.o CC kernel/range.o CC kernel/async.o CC kernel/smpboot.o CC kernel/ucount.o CC kernel/nsproxy.o CC kernel/kmod.o CC arch/sh/kernel/cpu/init.o CC arch/sh/kernel/cpu/clock-cpg.o CC arch/sh/kernel/cpu/clock.o CC kernel/groups.o CC kernel/reboot.o CC kernel/profile.o CC arch/sh/kernel/cpu/proc.o CC kernel/stacktrace.o CC kernel/kcmp.o CC kernel/freezer.o AS arch/sh/kernel/cpu/sh2/ex.o CC arch/sh/kernel/cpu/pfc.o CC arch/sh/kernel/cpu/fpu.o CC kernel/locking/mutex.o CC kernel/trace/trace_selftest_dynamic.o CC kernel/events/core.o CC kernel/power/qos.o CC kernel/sched/core.o CC kernel/gcov/base.o CC kernel/time/time.o CC kernel/irq/irqdesc.o CC kernel/printk/printk.o AR kernel/livepatch/built-in.o CC kernel/cgroup/cgroup.o CC kernel/debug/debug_core.o CC kernel/bpf/core.o CC kernel/futex.o CC kernel/rcu/update.o CC arch/sh/kernel/cpu/irq/imask.o CC kernel/irq/handle.o CC kernel/up.o CC arch/sh/kernel/cpu/sh2/probe.o GEN usr/initramfs_data.cpio AS arch/sh/kernel/cpu/sh2/entry.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/power/main.o CC arch/sh/kernel/cpu/sh2/setup-sh7619.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] /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] /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] /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] /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 kernel/power/poweroff.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] /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 /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] /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 arch/sh/kernel/cpu/sh2/clock-sh7619.o /home/kisskb/slave/src/arch/sh/math-emu/math.c:296:1: warning: statement with no effect [-Wunused-value] CC kernel/power/process.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: In function 'ftrc': /home/kisskb/slave/src/arch/sh/math-emu/math.c:310:1: warning: left 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: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 kernel/irq/manage.o CC kernel/gcov/fs.o CC kernel/gcov/gcc_3_4.o CC kernel/uid16.o CC kernel/module.o CC kernel/kallsyms.o AR arch/sh/boards/mach-se/built-in.o CC kernel/irq/spurious.o CC kernel/utsname.o CC kernel/acct.o CC kernel/user_namespace.o CC kernel/pid_namespace.o CC kernel/test_kprobes.o CC kernel/sched/clock.o CC kernel/sched/loadavg.o CC kernel/sched/cputime.o AR arch/sh/boards/built-in.o CC kernel/events/ring_buffer.o AS usr/initramfs_data.o CC kernel/audit.o CC kernel/auditfilter.o CC kernel/sched/idle_task.o CC kernel/auditsc.o CC kernel/events/callchain.o CC kernel/debug/gdbstub.o AR usr/built-in.o CC kernel/time/timer.o CC kernel/events/hw_breakpoint.o CC kernel/irq/resend.o CC kernel/irq/chip.o CC kernel/cgroup/stat.o CC kernel/cgroup/namespace.o CC kernel/locking/semaphore.o CC kernel/irq/dummychip.o CC kernel/cgroup/cgroup-v1.o CC kernel/audit_watch.o CC kernel/audit_fsnotify.o CC kernel/debug/kdb/kdb_io.o CC kernel/debug/kdb/kdb_main.o CC kernel/audit_tree.o CC kernel/irq/devres.o CC kernel/debug/kdb/kdb_support.o CC kernel/irq/generic-chip.o CC kernel/time/hrtimer.o CC kernel/debug/kdb/kdb_bt.o CC kernel/kprobes.o CC kernel/rcu/sync.o CC kernel/locking/percpu-rwsem.o CC kernel/sched/fair.o CC kernel/locking/rwsem.o GENKDB kernel/debug/kdb/gen-kdb_cmds.c CC kernel/sched/rt.o CC kernel/hung_task.o CC kernel/debug/kdb/kdb_bp.o CC kernel/sched/deadline.o CC kernel/trace/trace_clock.o CC kernel/seccomp.o CC kernel/watchdog.o CC kernel/trace/ftrace.o CC kernel/relay.o CC kernel/trace/trace.o AR arch/sh/kernel/cpu/irq/built-in.o CC kernel/trace/ring_buffer.o CC kernel/taskstats.o CC kernel/irq/irqdomain.o CC kernel/delayacct.o CC kernel/utsname_sysctl.o CC kernel/bpf/syscall.o CC kernel/debug/kdb/kdb_debugger.o CC kernel/bpf/verifier.o CC kernel/time/timekeeping.o AR arch/sh/mm/built-in.o CC kernel/tsacct.o AR arch/sh/kernel/cpu/sh2/built-in.o CC kernel/locking/mutex-debug.o CC kernel/tracepoint.o CC kernel/locking/lockdep.o CC kernel/elfcore.o CC kernel/latencytop.o CC kernel/irq/irq_sim.o CC kernel/irq_work.o AR arch/sh/kernel/cpu/built-in.o CC kernel/irq/proc.o CC kernel/bpf/inode.o CC kernel/irq/debugfs.o CC kernel/crash_dump.o CC kernel/memremap.o CC kernel/bpf/helpers.o CC [M] kernel/backtracetest.o AR arch/sh/kernel/built-in.o CC kernel/locking/lockdep_proc.o CC kernel/bpf/tnum.o CC [M] kernel/torture.o GZIP kernel/config_data.gz CC kernel/bpf/hashtab.o CHK kernel/config_data.h CC kernel/locking/spinlock.o CC kernel/locking/rtmutex.o CC kernel/bpf/arraymap.o CC kernel/sched/wait.o CC kernel/debug/kdb/kdb_keyboard.o CC kernel/time/ntp.o UPD kernel/config_data.h AR kernel/gcov/built-in.o CC kernel/time/clocksource.o CC kernel/sched/wait_bit.o CC [M] kernel/configs.o CC kernel/cgroup/freezer.o CC kernel/rcu/srcutiny.o CC kernel/printk/braille.o CC kernel/printk/printk_safe.o CC kernel/sched/swait.o CC kernel/rcu/tiny.o CC kernel/bpf/percpu_freelist.o CC kernel/debug/kdb/gen-kdb_cmds.o CC kernel/sched/completion.o CC kernel/bpf/bpf_lru_list.o CC [M] kernel/rcu/rcutorture.o CC kernel/sched/idle.o CC kernel/locking/rtmutex-debug.o CC kernel/locking/spinlock_debug.o CC kernel/cgroup/pids.o CC kernel/locking/rwsem-spinlock.o CC kernel/trace/trace_output.o CC kernel/cgroup/rdma.o AR kernel/power/built-in.o CC [M] kernel/locking/locktorture.o CC [M] kernel/locking/test-ww_mutex.o CC kernel/cgroup/debug.o CC kernel/time/jiffies.o CC kernel/sched/autogroup.o CC kernel/sched/stats.o CC kernel/bpf/lpm_trie.o CC kernel/time/timer_list.o CC kernel/bpf/map_in_map.o CC kernel/time/timeconv.o CC kernel/trace/trace_seq.o CC kernel/trace/trace_stat.o CC kernel/time/timecounter.o AR init/mounts.o CC kernel/trace/trace_printk.o CC kernel/trace/trace_sched_switch.o AR init/built-in.o CC [M] kernel/rcu/rcuperf.o CC kernel/sched/debug.o CC kernel/bpf/disasm.o CC kernel/trace/trace_functions.o CC kernel/bpf/devmap.o CC kernel/time/alarmtimer.o CC kernel/sched/cpuacct.o CC kernel/time/posix-timers.o CC kernel/trace/trace_irqsoff.o CC kernel/sched/cpufreq.o CC kernel/trace/trace_sched_wakeup.o CC kernel/sched/membarrier.o CC kernel/trace/trace_hwlat.o CC kernel/sched/isolation.o CC kernel/trace/trace_nop.o CC kernel/trace/trace_stack.o CC kernel/trace/trace_functions_graph.o CC kernel/bpf/cpumap.o CC kernel/time/posix-cpu-timers.o CC kernel/bpf/offload.o CC kernel/trace/blktrace.o CC kernel/time/posix-clock.o CC kernel/time/itimer.o CC kernel/bpf/sockmap.o CC kernel/bpf/stackmap.o CC kernel/time/clockevents.o CC kernel/bpf/cgroup.o CC kernel/time/tick-common.o /home/kisskb/slave/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /home/kisskb/slave/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] CC kernel/trace/trace_events.o CC kernel/trace/trace_export.o CC kernel/time/sched_clock.o CC kernel/time/tick-oneshot.o /home/kisskb/slave/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /home/kisskb/slave/src/kernel/cgroup/cgroup-v1.c:1264:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] CC kernel/trace/trace_syscalls.o CC kernel/time/tick-sched.o CC kernel/time/timekeeping_debug.o CC kernel/trace/trace_event_perf.o CC [M] kernel/time/test_udelay.o CC kernel/trace/trace_events_filter.o CC kernel/trace/trace_events_trigger.o CC kernel/trace/bpf_trace.o CC kernel/trace/trace_kprobe.o CC kernel/trace/power-traces.o CC kernel/trace/rpm-traces.o CC kernel/trace/trace_kdb.o CC kernel/trace/trace_benchmark.o CC kernel/trace/trace_probe.o CC [M] kernel/trace/ring_buffer_benchmark.o AR kernel/irq/built-in.o AR kernel/rcu/built-in.o AR arch/sh/math-emu/built-in.o AR kernel/printk/built-in.o AR kernel/debug/kdb/built-in.o AR kernel/debug/built-in.o AR kernel/time/built-in.o AR kernel/bpf/built-in.o AR kernel/locking/built-in.o AR kernel/sched/built-in.o AR kernel/trace/libftrace.o AR kernel/cgroup/built-in.o AR kernel/trace/built-in.o AR kernel/events/built-in.o AR kernel/built-in.o make[1]: *** wait: No child processes. Stop. Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -j 120 ARCH=sh O=/home/kisskb/slave/build/linus_sh-allmodconfig_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-allmodconfig_sh4 # Build took: 0:00:11.383857