Buildresult: powerpc-next/mips-defconfig/mips-gcc4.6 built on Jun 19 2019, 00:44
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Jun 19 2019, 00:44
Duration:
0:01:22.302275
Builder:
ka2
Revision:
powerpc/watchpoint: Restore NV GPRs while returning from exception (
4ea6e7299deb821cd410d8efb8ad86de9f867251)
Target:
powerpc-next/mips-defconfig/mips-gcc4.6
Branch:
powerpc-next
Compiler:
mips-gcc4.6
(mips-linux-gcc (GCC) 4.6.3 / GNU ld (GNU Binutils) 2.22)
Config:
defconfig
(
download
)
Log:
Download original
Possible warnings (11)
warning: The last gc run reported the following. Please correct the root cause warning: There are too many unreachable loose objects; run 'git prune' to remove them. kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] kernel/rcu/srcutree.c:140:32: warning: 'levelspread[<U2c80>]' may be used uninitialized in this function [-Wuninitialized] drivers/base/regmap/regmap.c:1850:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] drivers/base/regmap/regmap.c:2589:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] net/bridge/br_netlink.c:652:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] net/core/devlink.c:4394:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized]
Full Log
# git rev-parse -q --verify 4ea6e7299deb821cd410d8efb8ad86de9f867251^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/linuxppc/linux.git next-test warning: The last gc run reported the following. Please correct the root cause and remove .git/gc.log. Automatic cleanup will not be performed until the file is removed. warning: There are too many unreachable loose objects; run 'git prune' to remove them. # git rev-parse -q --verify 4ea6e7299deb821cd410d8efb8ad86de9f867251^{commit} 4ea6e7299deb821cd410d8efb8ad86de9f867251 # git checkout -q -f -B kisskb 4ea6e7299deb821cd410d8efb8ad86de9f867251 # git clean -qxdf # < git log -1 # commit 4ea6e7299deb821cd410d8efb8ad86de9f867251 # Author: Ravi Bangoria <ravi.bangoria@linux.ibm.com> # Date: Thu Jun 13 09:00:14 2019 +0530 # # powerpc/watchpoint: Restore NV GPRs while returning from exception # # powerpc hardware triggers watchpoint before executing the instruction. # To make trigger-after-execute behavior, kernel emulates the # instruction. If the instruction is 'load something into non-volatile # register', exception handler should restore emulated register state # while returning back, otherwise there will be register state # corruption. eg, adding a watchpoint on a list can corrput the list: # # # cat /proc/kallsyms | grep kthread_create_list # c00000000121c8b8 d kthread_create_list # # Add watchpoint on kthread_create_list->prev: # # # perf record -e mem:0xc00000000121c8c0 # # Run some workload such that new kthread gets invoked. eg, I just # logged out from console: # # list_add corruption. next->prev should be prev (c000000001214e00), \ # but was c00000000121c8b8. (next=c00000000121c8b8). # WARNING: CPU: 59 PID: 309 at lib/list_debug.c:25 __list_add_valid+0xb4/0xc0 # CPU: 59 PID: 309 Comm: kworker/59:0 Kdump: loaded Not tainted 5.1.0-rc7+ #69 # ... # NIP __list_add_valid+0xb4/0xc0 # LR __list_add_valid+0xb0/0xc0 # Call Trace: # __list_add_valid+0xb0/0xc0 (unreliable) # __kthread_create_on_node+0xe0/0x260 # kthread_create_on_node+0x34/0x50 # create_worker+0xe8/0x260 # worker_thread+0x444/0x560 # kthread+0x160/0x1a0 # ret_from_kernel_thread+0x5c/0x70 # # List corruption happened because it uses 'load into non-volatile # register' instruction: # # Snippet from __kthread_create_on_node: # # c000000000136be8: addis r29,r2,-19 # c000000000136bec: ld r29,31424(r29) # if (!__list_add_valid(new, prev, next)) # c000000000136bf0: mr r3,r30 # c000000000136bf4: mr r5,r28 # c000000000136bf8: mr r4,r29 # c000000000136bfc: bl c00000000059a2f8 <__list_add_valid+0x8> # # Register state from WARN_ON(): # # GPR00: c00000000059a3a0 c000007ff23afb50 c000000001344e00 0000000000000075 # GPR04: 0000000000000000 0000000000000000 0000001852af8bc1 0000000000000000 # GPR08: 0000000000000001 0000000000000007 0000000000000006 00000000000004aa # GPR12: 0000000000000000 c000007ffffeb080 c000000000137038 c000005ff62aaa00 # GPR16: 0000000000000000 0000000000000000 c000007fffbe7600 c000007fffbe7370 # GPR20: c000007fffbe7320 c000007fffbe7300 c000000001373a00 0000000000000000 # GPR24: fffffffffffffef7 c00000000012e320 c000007ff23afcb0 c000000000cb8628 # GPR28: c00000000121c8b8 c000000001214e00 c000007fef5b17e8 c000007fef5b17c0 # # Watchpoint hit at 0xc000000000136bec. # # addis r29,r2,-19 # => r29 = 0xc000000001344e00 + (-19 << 16) # => r29 = 0xc000000001214e00 # # ld r29,31424(r29) # => r29 = *(0xc000000001214e00 + 31424) # => r29 = *(0xc00000000121c8c0) # # 0xc00000000121c8c0 is where we placed a watchpoint and thus this # instruction was emulated by emulate_step. But because handle_dabr_fault # did not restore emulated register state, r29 still contains stale # value in above register state. # # Fixes: 5aae8a5370802 ("powerpc, hw_breakpoints: Implement hw_breakpoints for 64-bit server processors") # Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> # Cc: stable@vger.kernel.org # 2.6.36+ # Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> # < /opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 4ea6e7299deb821cd410d8efb8ad86de9f867251 # < make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mips CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux- defconfig # make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mips CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/mips-linux/bin/mips-linux- /kisskb/src/arch/mips/vdso/Makefile:39: MIPS VDSO requires binutils >= 2.25 /kisskb/src/arch/mips/vdso/Makefile:39: MIPS VDSO requires binutils >= 2.25 /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:140:32: warning: 'levelspread[<U2c80>]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:88:6: note: 'levelspread[<U2c80>]' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1850:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2589:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec.isra.20': /kisskb/src/net/bridge/br_netlink.c:652:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/core/devlink.c: In function 'devlink_fmsg_snd.constprop.30': /kisskb/src/net/core/devlink.c:4394:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /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:331:21: note: 'pdeo' was declared here /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /kisskb/src/arch/mips/vdso/Makefile:39: MIPS VDSO requires binutils >= 2.25 /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] FIT description: Linux 5.2.0-rc2-g4ea6e7299deb Created: Wed Jun 19 00:45:27 2019 Image 0 (kernel@0) Description: Linux 5.2.0-rc2-g4ea6e7299deb Created: Wed Jun 19 00:45:27 2019 Type: Kernel Image Compression: gzip compressed Data Size: 4474875 Bytes = 4370.00 KiB = 4.27 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8084a950 Hash algo: sha1 Hash value: a79512501f142825a193cd8d995ed5263e435584 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Wed Jun 19 00:45:27 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Wed Jun 19 00:45:27 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Wed Jun 19 00:45:27 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 4603 Bytes = 4.50 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 33e429f316125d86bb863c2fe8d9c42fbcf90bfb Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Wed Jun 19 00:45:27 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 5162 Bytes = 5.04 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 0c5db3f23ba8b80fafd8c8e4eacfcb8ad62a91ae Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Wed Jun 19 00:45:27 2019 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-next_mips-defconfig_mips # Build took: 0:01:22.302275
© Michael Ellerman 2006-2018.