Wind River Support Network

HomeDefectsOVP-137
Fixed

OVP-137 : [OVP] When running ramspeed of phoronix on floating guest, generate call trace

Created: Aug 30, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 29, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.9
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

1). boot guest
/usr/bin/qemu-system-x86_64 -enable-kvm -m 4096 -smp 2,sockets=1,cores=2,threads=1 -name rt,process=rt-kvm -no-reboot -no-hpet -nographic -kernel /boot/guest.kernel -append "root=/dev/vda rw console=ttyS0,115200 selinux=0 enforcing=0 ip=dhcp" -net nic,macaddr=de:ef:be:74:ae:e0,model=virtio -net tap,script=/etc/qemu-ifup -drive file=/boot/guest_raw.img,if=virtio,cache=none -mlock -balloon virtio

2). key logs
# phoronix-test-suite batch-benchmark ramspeed
....
AMspeed SMP 3.5.0:
    pts/ramspeed-1.4.0 [Type: Scale - Benchmark: Integer]
    Test 3 of 10
    Estimated Trial Run Count:    1
    Estimated Test Run-Time:      4 Minutes
    Estimated Time To Completion: 26 Minutes
        Started Run 1 @ 10:15:02BUG: sleeping function called from invalid context at /buildarea2/ovp_build/BUILD/intel-xeon-core-preempt-rt-ovp-kvm-2013-08-29-00-58-54/project_build/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r1/linux/include/linux/kernel.h:191
in_atomic(): 0, irqs_disabled(): 1, pid: 1629, name: rt-kvm
Pid: 1629, comm: rt-kvm Not tainted 3.4.34-ovp-ga-rt40-WR5.0.1.0_preempt-rt #1
Call Trace:
 [<ffffffff8106f90d>] __might_sleep+0xfd/0x160
 [<ffffffffa01dac02>] kvm_read_guest_cached+0x62/0x90 [kvm]
 [<ffffffffa01f4258>] kvm_arch_vcpu_ioctl_run+0x388/0x1350 [kvm]
 [<ffffffff8188e68d>] ? sub_preempt_count+0x9d/0xd0
 [<ffffffffa01dbbfa>] kvm_vcpu_ioctl+0x4da/0x720 [kvm]
 [<ffffffffa01dd36d>] ? kvm_vm_ioctl+0x7d/0x4e0 [kvm]
 [<ffffffff811a7d02>] ? fsnotify+0x1d2/0x2b0
 [<ffffffff814a5fc0>] ? process_echoes+0x340/0x340
 [<ffffffff81179d79>] do_vfs_ioctl+0x99/0x5e0
 [<ffffffff81071041>] ? get_parent_ip+0x11/0x50
 [<ffffffff8117a368>] sys_ioctl+0xa8/0x140
 [<ffffffff810bcd4c>] ? __audit_syscall_entry+0x17c/0x200
 [<ffffffff81892196>] system_call_fastpath+0x1a/0x1f
BUG: sleeping function called from invalid context at /buildarea2/ovp_build/BUILD/intel-xeon-core-preempt-rt-ovp-kvm-2013-08-29-00-58-54/project_build/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r1/linux/include/linux/kernel.h:191
in_atomic(): 0, irqs_disabled(): 1, pid: 1628, name: rt-kvm
Pid: 1628, comm: rt-kvm Not tainted 3.4.34-ovp-ga-rt40-WR5.0.1.0_preempt-rt #1
Call Trace:
 [<ffffffff8106f90d>] __might_sleep+0xfd/0x160
......
root@localhost:~# shutdown -h now
NOHZ: local_softirq_pending (cpu=1, vec=0x02) TIMER
NOHZ: local_softirq_pending (cpu=1, vec=0x02) TIMER
NOHZ: local_softirq_pending (cpu=1, vec=0x02) TIMER
NOHZ: local_softirq_pending (cpu=1, vec=0x02) TIMER
NOHZ: local_softirq_pending (cpu=1, vec=0x02) TIMER
NOHZ: local_softirq_pending (cpu=1, vec=0x02) TIMER

Broadcast message from root@localhost (console) (Fri Aug 30 10:37:04 2013):
The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
root@localhost:~# tty_ldisc_hangup: waiting (login) for ttyS0 took too long, but we keep waiting...
nfsd: last server has exited, flushing export cache
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
Unregister pv shared memory for cpu 1
Power down.
/etc/qemu-ifdownBUG: sleeping function called from invalid context at /buildarea2/ovp_build/BUILD/intel-xeon-core-preempt-rt-ovp-kvm-2013-08-29-00-58-54/project_build/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r1/linux/include/linux/kernel.h:191
in_atomic(): 0, irqs_disabled(): 1, pid: 1628, name: rt-kvm
Pid: 1628, comm: rt-kvm Not tainted 3.4.34-ovp-ga-rt40-WR5.0.1.0_preempt-rt #1
Call Trace:
 [<ffffffff8106f90d>] __might_sleep+0xfd/0x160
 [<ffffffffa01dac02>] kvm_read_guest_cached+0x62/0x90 [kvm]
....
 [<ffffffff8117a368>] sys_ioctl+0xa8/0x140
 [<ffffffff810bcd4c>] ? __audit_syscall_entry+0x17c/0x200
 [<ffffffff81892196>] system_call_fastpath+0x1a/0x1f
virbr0: port 1(tap0) entered disabled state
: could not launch network script
virbr0: port 1(tap0) entered disabled state
device tap0 left promiscuous mode
virbr0: port 1(tap0) entered disabled state
root@flathead_creek-1:~# 

Steps to Reproduce

1).Host
/lpg-build/cdc/fast_prod/wrlinuxovp/wrlinux-x/wrlinux/configure --enable-jobs=12 --enable-parallel-pkgbuilds=12 --enable-board=intel-xeon-core --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm --enable-addons=wr-ovp --with-layer=/folk/xdong/wr-testing/ovp-test --with-template=feature/ovp-test

2). Guest
/lpg-build/cdc/fast_prod/wrlinuxovp/wrlinux-x/wrlinux/configure --enable-jobs=12 --enable-parallel-pkgbuilds=12 --enable-board=x86-64-kvm-guest --enable-kernel=preempt-rt --enable-rootfs=ovp-guest --enable-addons=wr-ovp --with-layer=meta-webserver --with-template=feature/target-toolchain,feature/benchmark,feature/ovp-benchmark

3).boot host
# cat /proc/cmdline 
console=ttyS0,115200 ip=dhcp root=/dev/nfs nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/21059/rootfs rw selinux=0 enforcing=0
Live chat
Online