2018-07-13 05:11:49

by kernel test robot

[permalink] [raw]
Subject: [lkp-robot] [xarray] f0b90e702f: BUG:soft_lockup-CPU##stuck_for#s


FYI, we noticed the following commit (built with gcc-7):

commit: f0b90e702fe74fa575b7382ec3474d341098d5b1 ("xarray: Add XArray unconditional store operations")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

in testcase: boot

on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+------------------------------------------------+------------+------------+
| | 3d730c4294 | f0b90e702f |
+------------------------------------------------+------------+------------+
| boot_successes | 0 | 0 |
| boot_failures | 14 | 25 |
| WARNING:at_mm/slab_common.c:#kmalloc_slab | 14 | 25 |
| EIP:kmalloc_slab | 14 | 25 |
| Mem-Info | 14 | 25 |
| INFO:trying_to_register_non-static_key | 14 | 25 |
| BUG:unable_to_handle_kernel | 14 | |
| Oops:#[##] | 14 | |
| EIP:__pci_epf_register_driver | 14 | |
| Kernel_panic-not_syncing:Fatal_exception | 14 | |
| BUG:soft_lockup-CPU##stuck_for#s | 0 | 25 |
| EIP:xa_entry | 0 | 5 |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 25 |
| EIP:xa_is_node | 0 | 8 |
| EIP:xas_load | 0 | 2 |
| EIP:debug_lockdep_rcu_enabled | 0 | 1 |
| EIP:xa_load | 0 | 3 |
| EIP:xas_descend | 0 | 2 |
| EIP:xa_head | 0 | 1 |
| EIP:xas_start | 0 | 3 |
+------------------------------------------------+------------+------------+



[ 44.036666] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper/0:1]
[ 44.036666] irq event stamp: 1072387
[ 44.036666] hardirqs last enabled at (1072387): [<4106ebde>] console_unlock+0x3f3/0x42d
[ 44.036666] hardirqs last disabled at (1072386): [<4106e84f>] console_unlock+0x64/0x42d
[ 44.036666] softirqs last enabled at (1072364): [<417ecbeb>] __do_softirq+0x183/0x1b3
[ 44.036666] softirqs last disabled at (1072357): [<41007967>] do_softirq_own_stack+0x1d/0x23
[ 44.036666] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.18.0-rc3-00012-gf0b90e7 #169
[ 44.036666] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 44.036666] EIP: xa_is_node+0x0/0x1a
[ 44.036666] Code: 89 73 08 89 7b 0c eb 0b 39 43 14 72 0c 8b 75 ec 8b 7d f0 89 73 10 89 7b 14 8d 4d ec 89 d8 e8 88 fe ff ff 5a 59 5b 5e 5f 5d c3 <89> c2 55 83 e2 03 83 fa 02 89 e5 0f 94 c2 3d 00 10 00 00 0f 97 c0
[ 44.036666] EAX: 4c93caf2 EBX: 5442fec0 ECX: 4c93caf2 EDX: 00000001
[ 44.036666] ESI: 00000000 EDI: 00000000 EBP: 5442feb4 ESP: 5442feac
[ 44.036666] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00200293
[ 44.036666] CR0: 80050033 CR2: 00000000 CR3: 01d27000 CR4: 000406b0
[ 44.036666] Call Trace:
[ 44.036666] ? xas_load+0x26/0x2f
[ 44.036666] ? xa_load+0x35/0x52
[ 44.036666] ? xarray_checks+0x8c2/0x984
[ 44.036666] ? check_xa_tag_1+0x308/0x308
[ 44.036666] ? do_one_initcall+0x6a/0x13c
[ 44.036666] ? parse_args+0xd9/0x1e3
[ 44.036666] ? kernel_init_freeable+0xe1/0x172
[ 44.036666] ? rest_init+0xaf/0xaf
[ 44.036666] ? kernel_init+0x8/0xd0
[ 44.036666] ? ret_from_fork+0x19/0x24
[ 44.036666] Kernel panic - not syncing: softlockup: hung tasks
[ 44.036666] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W L 4.18.0-rc3-00012-gf0b90e7 #169
[ 44.036666] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 44.036666] Call Trace:
[ 44.036666] ? dump_stack+0x79/0xab
[ 44.036666] ? panic+0x99/0x1d8
[ 44.036666] ? watchdog_timer_fn+0x1ac/0x1d3
[ 44.036666] ? __hrtimer_run_queues+0xa0/0x114
[ 44.036666] ? watchdog+0x16/0x16
[ 44.036666] ? hrtimer_run_queues+0xd2/0xe5
[ 44.036666] ? run_local_timers+0x15/0x39
[ 44.036666] ? update_process_times+0x18/0x39
[ 44.036666] ? tick_nohz_handler+0xba/0xfb
[ 44.036666] ? smp_apic_timer_interrupt+0x54/0x67
[ 44.036666] ? apic_timer_interrupt+0x41/0x48
[ 44.036666] ? siphash_2u64+0x54f/0x7de
[ 44.036666] ? minmax_running_min+0x6f/0x6f
[ 44.036666] ? xas_load+0x26/0x2f
[ 44.036666] ? xa_load+0x35/0x52
[ 44.036666] ? xarray_checks+0x8c2/0x984
[ 44.036666] ? check_xa_tag_1+0x308/0x308
[ 44.036666] ? do_one_initcall+0x6a/0x13c
[ 44.036666] ? parse_args+0xd9/0x1e3
[ 44.036666] ? kernel_init_freeable+0xe1/0x172
[ 44.036666] ? rest_init+0xaf/0xaf
[ 44.036666] ? kernel_init+0x8/0xd0
[ 44.036666] ? ret_from_fork+0x19/0x24
[ 44.036666] Kernel Offset: disabled

Elapsed time: 50

#!/bin/bash

# To reproduce,
# 1) save job-script and this script (both are attached in 0day report email)
# 2) run this script with your compiled kernel and optional env $INSTALL_MOD_PATH

kernel=$1

initrds=(
/osimage/quantal/quantal-core-i386.cgz
/lkp/lkp/lkp-i386.cgz
)

HTTP_PREFIX=https://download.01.org/0day-ci/lkp-qemu
wget --timestamping "${initrds[@]/#/$HTTP_PREFIX}"

{
cat "${initrds[@]//*\//}"
[[ $INSTALL_MOD_PATH ]] && (
cd "$INSTALL_MOD_PATH"
find lib | cpio -o -H newc --quiet | gzip
)
echo job-script | cpio -o -H newc --quiet | gzip
} > initrd.img

kvm=(
qemu-system-i386
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-initrd initrd.img
-m 360
-smp 1
-device e1000,netdev=net0
-netdev user,id=net0
-boot order=nc
-no-reboot
-watchdog i6300esb
-watchdog-action debug
-rtc base=localtime
-serial stdio
-display none
-monitor null
)



To reproduce:

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
Xiaolong


Attachments:
(No filename) (6.39 kB)
config-4.18.0-rc3-00012-gf0b90e7 (103.11 kB)
dmesg.xz (27.86 kB)
Download all attachments