kvm oops vgic_v2_sync_lr_elrsr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since last week, we have been getting and Ooops when launching kvm on
mustang. This is with kvm-arm git with testing/mustang branch, but I
also reproduced it with 3.17-rc6 (as attached on the log).

PC is at set_bit+0x14/0x30
LR is at vgic_v2_sync_lr_elrsr+0x20/0x28

This is with Qemu from git head, with the following command line:

qemu-system-aarch64 -smp 2 -m 1024 -cpu host -M virt    -kernel
./Image     -append 'root=/dev/vda2 rw rootwait mem=1024M
earlyprintk=pl011,0x9000000 console=ttyAMA0,38400n8'    -netdev
user,id=user0 -device virtio-net-device,netdev=user0 -nographic
-enable-kvm

I tried also with qemu 2.0 frim ubuntu trusty, and was not able to
reproduce it. It must be some recent changes in qemu that trigger the
Oops in kernel.
U-Boot 2013.04-mustang_sw_1.12.06-beta (May 12 2014 - 14:10:31)
...
Linux version 3.17.0-rc6 (voipio@aimless) (gcc version 4.9.1 20140505 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.05 - Linaro GCC 4.9-2014.05) ) #<LAVA_DISPATCHER>2014-09-22 10:59:42 AM DEBUG: expect (150): '['\\(initramfs\\)', 'linaro-test', '/ #', 'root@android', 'root@linaro', 'root@master', 'root@linaro-nano:~#', 'root@linaro-developer:~#', 'root@linaro-server:~#', 'root@genericarmv7a:~#', 'root@genericarmv8:~#']'
1 SMP PREEMPT Mon Sep 22 12:57:34 EEST 2014
CPU: AArch64 Processor [500f0000] revision 0
Detected PIPT I-cache on CPU0
efi: Getting EFI parameters from FDT:
efi: UEFI not found.
cma: Reserved 16 MiB at 40ff000000
On node 0 totalpages: 4194304
  DMA zone: 14336 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 1048576 pages, LIFO batch:31
  Normal zone: 43008 pages used for memmap
  Normal zone: 3145728 pages, LIFO batch:31
PERCPU: Embedded 11 pages/cpu @ffffffc3fff68000 s13248 r8192 d23616 u45056
pcpu-alloc: s13248 r8192 d23616 u45056 alloc=11*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 4136960
Kernel command line: root=/dev/nfs rw nfsroot=10.2.1.1:/var/lib/lava/dispatcher/tmp/tmp6UtZLU/tmpQEcsX6,tcp,hard,intr panic=1 console=ttyS0,115200 earlycon=uart8250-32bit,0x1c020000 earlyprintk=uart8250-32bit,0x1c020000 debug ip=dhcp
log_buf_len individual max cpu contribution: 4096 bytes
log_buf_len total cpu_extra contributions: 28672 bytes
log_buf_len min size: 16384 bytes
log_buf_len: 65536 bytes
early log buf free: 14772(90%)
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Memory: 16499208K/16777216K available (4508K kernel code, 317K rwdata, 1588K rodata, 216K init, 218K bss, 278008K reserved)
Virtual kernel memory layout:
    vmalloc : 0xffffff8000000000 - 0xffffffbdffff0000   (   247 GB)
    vmemmap : 0xffffffbe00000000 - 0xffffffbfc0000000   (     7 GB maximum)
              0xffffffbee0000000 - 0xffffffbeee000000   (   224 MB actual)
    PCI I/O : 0xffffffbffa000000 - 0xffffffbffb000000   (    16 MB)
    fixed   : 0xffffffbffbdfe000 - 0xffffffbffbdff000   (     4 KB)
    modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)
    memory  : 0xffffffc000000000 - 0xffffffc400000000   ( 16384 MB)
      .init : 0xffffffc000676000 - 0xffffffc0006ac3c0   (   217 KB)
      .text : 0xffffffc000080000 - 0xffffffc0006751e4   (  6101 KB)
      .data : 0xffffffc0006ad000 - 0xffffffc0006fc730   (   318 KB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:64 nr_irqs:64 0
Architected cp15 timer(s) running at 50.00MHz (phys).
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 2748779069440ns
Console: colour dummy device 80x25
allocated 67108864 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes)
Initializing cgroup subsys memory
Initializing cgroup subsys hugetlb
hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 5 counters available
EFI services will not be available.
CPU1: Booted secondary processor
Detected PIPT I-cache on CPU1
CPU2: Booted secondary processor
Detected PIPT I-cache on CPU2
CPU3: Booted secondary processor
Detected PIPT I-cache on CPU3
CPU4: Booted secondary processor
Detected PIPT I-cache on CPU4
CPU5: Booted secondary processor
Detected PIPT I-cache on CPU5
CPU6: Booted secondary processor
Detected PIPT I-cache on CPU6
CPU7: Booted secondary processor
Detected PIPT I-cache on CPU7
Brought up 8 CPUs
SMP: Total of 8 processors activated.
devtmpfs: initialized
regulator-dummy: no parameters
NET: Registered protocol family 16
vdso: 2 pages (1 code @ ffffffc0006b5000, 1 data @ ffffffc0006b4000)
hw-breakpoint: found 4 breakpoint and 4 watchpoint registers.
software IO TLB [mem 0x40fec00000-0x40ff000000] (4MB) mapped at [ffffffc0fec00000-ffffffc0feffffff]
Serial: AMBA PL011 UART driver
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP: reno registered
UDP hash table entries: 8192 (order: 6, 262144 bytes)
UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
kvm [1]: Using HYP init bounce page @43ebad9000
kvm [1]: interrupt-controller@78040000 IRQ25
kvm [1]: timer IRQ30
kvm [1]: Hyp mode initialized successfully
futex hash table entries: 2048 (order: 5, 131072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.240:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
fuse init (API version 7.23)
9p: Installing v9fs 9p2000 file system support
msgmni has been set to 32257
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
1c020000.serial: ttyS0 at MMIO 0x1c020000 (irq = 108, base_baud = 3125000) is a 16550A
console [ttyS0] enabled
loop: module loaded
xgene-ahci 1a400000.sata: controller can't do NCQ, turning off CAP_NCQ
xgene-ahci 1a400000.sata: controller can't do PMP, turning off CAP_PMP
xgene-ahci 1a400000.sata: AHCI 0001.0300 32 slots 2 ports 6 Gbps 0x3 impl platform mode
xgene-ahci 1a400000.sata: flags: 64bit sntf pm only fbs pio slum part ccc apst boh 
scsi host0: ahci_platform
scsi host1: ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x1a400000-0x1a400fff] port 0x100 irq 167
ata2: SATA max UDMA/133 mmio [mem 0x1a400000-0x1a400fff] port 0x180 irq 167
xgene-ahci 1a800000.sata: invalid resource
xgene-ahci 1a800000.sata: controller can't do NCQ, turning off CAP_NCQ
xgene-ahci 1a800000.sata: controller can't do PMP, turning off CAP_PMP
xgene-ahci 1a800000.sata: AHCI 0001.0300 32 slots 2 ports 6 Gbps 0x3 impl platform mode
xgene-ahci 1a800000.sata: flags: 64bit sntf pm only fbs pio slum part ccc apst boh 
scsi host2: ahci_platform
scsi host3: ahci_platform
ata3: SATA max UDMA/133 mmio [mem 0x1a800000-0x1a800fff] port 0x100 irq 168
ata4: SATA max UDMA/133 mmio [mem 0x1a800000-0x1a800fff] port 0x180 irq 168
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
libphy: APM X-Gene MDIO bus: probed
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
registered taskstats version 1
Sending DHCP requests .
ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 4300)
ata2: SATA link down (SStatus 0 SControl 4300)
ata1.00: ATA-8: ST500DM002-1BD142, KC45, max UDMA/133
ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      ST500DM002-1BD14 KC45 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
ata3: SATA link down (SStatus 0 SControl 4300)
ata4: SATA link down (SStatus 0 SControl 4300)
xgene-enet 17020000.ethernet eth0: Link is Down
.
xgene-enet 17020000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
., OK
IP-Config: Got DHCP answer from 10.0.0.1, my address is 10.254.30.121
IP-Config: Complete:
     device=eth0, hwaddr=00:01:73:01:ff:fc, ipaddr=10.254.30.121, mask=255.0.0.0, gw=10.0.0.1
     host=10.254.30.121, domain=lavalab, nis-domain=(none)
     bootserver=0.0.0.0, rootserver=10.2.1.1, rootpath=
     nameserver0=10.0.0.1
VFS: Mounted root (nfs filesystem) on device 0:14.
devtmpfs: mounted
Freeing unused kernel memory: 216K (ffffffc000676000 - ffffffc0006ac000)
Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
random: init urandom read with 53 bits of entropy available
...
Hacking session active...
Unhandled fault: alignment fault (0x96000021) at 0xffffffc3e93d08cc
Internal error: : 96000021 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 5707 Comm: qemu-system-aar Not tainted 3.17.0-rc6 #1
task: ffffffc3eb542c00 ti: ffffffc3f03f8000 task.ti: ffffffc3f03f8000
PC is at set_bit+0x14/0x30
LR is at vgic_v2_sync_lr_elrsr+0x20/0x28
pc : [<ffffffc0002ddc64>] lr : [<ffffffc0000a3210>] pstate: 20000145
sp : ffffffc3f03fbc50
x29: ffffffc3f03fbc50 x28: 0000000000000001 
x27: 0000000000000004 x26: 0000000000000000 
x25: 0000000000000021 x24: 0000000000000021 
x23: ffffffc3f03fbcf8 x22: 0000000000000000 
x21: ffffffc0006ff6f8 x20: ffffffc0006ff000 
x19: ffffffc3e93d0000 x18: 0000000000000000 
x17: ffffffc000083000 x16: 000000ff440c0400 
x15: 0000007fa9d67b40 x14: 0000000000000000 
x13: 0000000000000000 x12: 0000000056000000 
x11: 00000033b5193519 x10: 0000004000736000 
x9 : 20da0043eb2d1000 x8 : 0000000000300000 
x7 : 0000000000000000 x6 : ffffffc3f01af9a8 
x5 : 0000000000000000 x4 : 0000000000000000 
x3 : 0000000000000001 x2 : 0000000000000001 
x1 : ffffffc3e93d08cc x0 : 0000000000000000 

Process qemu-system-aar (pid: 5707, stack limit = 0xffffffc3f03f8058)
Stack: (0xffffffc3f03fbc50 to 0xffffffc3f03fc000)
bc40:                                     f03fbc60 ffffffc3 000a2594 ffffffc0
bc60: f03fbd00 ffffffc3 0009a43c ffffffc0 e93d0000 ffffffc3 f03f8000 ffffffc3
bc80: 00000000 00000000 00000001 00000000 006c2000 ffffffc0 ea500000 ffffffc3
bca0: 006ff678 ffffffc0 006ff660 ffffffc0 006ff000 ffffffc0 f03fbd80 ffffffc3
bcc0: 005fac30 ffffffc0 e93d0880 ffffffc3 e93d0888 ffffffc3 fea0a800 ffffffc0
bce0: fea0aa68 ffffffc0 006ff660 00000000 f03fbd00 ffffffc3 00000001 00000000
bd00: f03fbd90 ffffffc3 000977d4 ffffffc0 00000000 00000000 e93d0000 ffffffc3
bd20: 00000000 00000000 00000000 00000000 f03b7f00 ffffffc3 0000ae80 00000000
bd40: 00000118 00000000 0000001d 00000000 006c0000 ffffffc0 f03f8000 ffffffc3
bd60: 7ffbfeff fffffffe e93d0000 ffffffc3 00000000 00000000 f03f8000 ffffffc3
bd80: 006c0000 ffffffc0 00000001 00000000 f03fbe00 ffffffc3 0019b5b4 ffffffc0
bda0: f03b7f00 ffffffc3 00000000 00000000 efc068f8 ffffffc3 00000009 00000000
bdc0: 00000000 00000000 f03f8000 ffffffc3 00000002 00000000 0000ae80 00000000
bde0: 00000118 00000000 00000040 00000000 006c0000 ffffffc0 f03f8000 ffffffc3
be00: f03fbe90 ffffffc3 0019b860 ffffffc0 00000000 00000000 f03b7f01 ffffffc3
be20: f03b7f00 ffffffc3 00000009 00000000 00000000 00000000 000cc414 ffffffc0
be40: f03fbe70 ffffffc3 001a5bc4 ffffffc0 00000000 00000000 eb543150 ffffffc3
be60: 00000009 00000000 f03b7f00 ffffffc3 f03fbe80 ffffffc3 001a5c1c ffffffc0
be80: f03fbe90 ffffffc3 0019b81c ffffffc0 aa568600 0000007f 0008429c ffffffc0
bea0: 00000000 00000000 2c67a580 00000000 ffffffff ffffffff abd85c9c 0000007f
bec0: 60000000 00000000 00000015 00000000 00000009 00000000 0000ae80 00000000
bee0: 00000000 00000000 ffffff80 00000000 aa568700 0000007f 00000001 00000000
bf00: 00000000 00000000 ecfc3300 36d3af1a 0000001d 00000000 008f6000 00000000
bf20: ffffffff 00000000 00000028 00000000 00000000 00000000 00958860 00000000
bf40: 00000000 00000000 abe0a5a0 0000007f 00895208 00000000 abd85c90 0000007f
bf60: aa5680f0 0000007f 008f6000 00000000 2c67a580 00000000 00000000 00000000
bf80: 00000001 00000000 abe33000 0000007f aa569090 0000007f 2c68280c 00000000
bfa0: aad6b6f0 0000007f 00800000 00000000 abe38000 0000007f aa568600 0000007f
bfc0: 00450e1c 00000000 aa568600 0000007f abd85c9c 0000007f 60000000 00000000
bfe0: 00000009 00000000 0000001d 00000000 9e2d76ef 6de726b4 b9debbd5 ff30d446
Call trace:
[<ffffffc0002ddc64>] set_bit+0x14/0x30
[<ffffffc0000a2590>] kvm_vgic_sync_hwstate+0x2d4/0x380
[<ffffffc00009a438>] kvm_arch_vcpu_ioctl_run+0x130/0x370
[<ffffffc0000977d0>] kvm_vcpu_ioctl+0x568/0x680
[<ffffffc00019b5b0>] do_vfs_ioctl+0x350/0x57c
[<ffffffc00019b85c>] SyS_ioctl+0x80/0x98
Code: 4a030000 d2800022 8b400c21 9ac32043 (c85f7c22) 
---[ end trace ce3659b24e373282 ]---
note: qemu-system-aar[5707] exited with preempt_count 1
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux