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

Re: Cpu on/offlining crash with core scheduling

On 27.04.20 15:49, Sergey Dyasli wrote:
Hi Juergen,

When I'm testing vcpu pinning with something like:

      # xl vcpu-pin 0 0 2
      # xen-hptool cpu-offline 3

      (offline / online CPUs {2,3} if the above is successful)

I'm reliably seeing the following crash on the latest staging:

(XEN) Watchdog timer detects that CPU1 is stuck!
(XEN) ----[ Xen-4.14-unstable  x86_64  debug=y   Not tainted ]----
(XEN) CPU:    1
(XEN) RIP:    e008:[<ffff82d08025266d>] 
(XEN) RFLAGS: 0000000000000002   CONTEXT: hypervisor
(XEN) rax: 000000000000f001   rbx: ffff82d0805c9118   rcx: ffff83085e750301
(XEN) rdx: 0000000000000001   rsi: ffff83086499b972   rdi: ffff83085e7503a6
(XEN) rbp: ffff83085e7dfe28   rsp: ffff83085e7dfdd8   r8:  ffff830864985440
(XEN) r9:  ffff83085e714068   r10: 0000000000000014   r11: 00000056b6a1aab2
(XEN) r12: ffff83086499e490   r13: ffff82d0805f26e0   r14: ffff83085e7503a0
(XEN) r15: 0000000000000001   cr0: 0000000080050033   cr4: 0000000000362660
(XEN) cr3: 0000000823a8e000   cr2: 00006026000f6fc0
(XEN) fsb: 0000000000000000   gsb: ffff888138dc0000   gss: 0000000000000000
(XEN) ds: 002b   es: 002b   fs: 0000   gs: 0000   ss: e010   cs: e008
(XEN) Xen code around <ffff82d08025266d> 
(XEN)  4c 89 f7 e8 dc a5 fd ff <4b> 8b 44 fd 00 48 8b 04 18 4c 3b 70 10 0f 85 3f
(XEN) Xen stack trace from rsp=ffff83085e7dfdd8:
(XEN)    00000056b42128a6 ffff83086499ff30 ffff83086498a000 ffff83085e7dfe48
(XEN)    0000000100000001 00000056b42128a6 ffff83086499e490 0000000000000000
(XEN)    0000000000000001 0000000000000001 ffff83085e7dfe78 ffff82d080252ae8
(XEN)    ffff83086498a000 0000000180230434 ffff83085e7503a0 ffff82d0805ceb00
(XEN)    ffffffffffffffff ffff82d0805cea80 0000000000000000 ffff82d0805dea80
(XEN)    ffff83085e7dfeb0 ffff82d08022c232 0000000000000001 ffff82d0805ceb00
(XEN)    0000000000000001 0000000000000001 0000000000000001 ffff83085e7dfec0
(XEN)    ffff82d08022c2cd ffff83085e7dfef0 ffff82d08031cae9 ffff83086498a000
(XEN)    ffff83086498a000 0000000000000001 0000000000000001 ffff83085e7dfde8
(XEN)    ffff88813021d700 ffff88813021d700 0000000000000000 0000000000000000
(XEN)    0000000000000007 ffff88813021d700 0000000000000246 0000000000007ff0
(XEN)    0000000000000000 000000000001ca00 0000000000000000 ffffffff810013aa
(XEN)    ffffffff8203d210 deadbeefdeadf00d deadbeefdeadf00d 0000010000000000
(XEN)    ffffffff810013aa 000000000000e033 0000000000000246 ffffc900400dfeb0
(XEN)    000000000000e02b 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000e01000000001 ffff83086498a000 00000037e43bd000
(XEN)    0000000000362660 0000000000000000 8000000864980002 0000060100000000
(XEN)    0000000000000000
(XEN) Xen call trace:
(XEN)    [<ffff82d08025266d>] R 
(XEN)    [<ffff82d080252ae8>] F common/sched/core.c#sched_slave+0x262/0x31e
(XEN)    [<ffff82d08022c232>] F common/softirq.c#__do_softirq+0x8a/0xbc
(XEN)    [<ffff82d08022c2cd>] F do_softirq+0x13/0x15
(XEN)    [<ffff82d08031cae9>] F arch/x86/domain.c#idle_loop+0x57/0xa7
(XEN) CPU0 @ e008:ffff82d08022c2b7 (process_pending_softirqs+0x53/0x56)
(XEN) CPU4 @ e008:ffff82d08022bc40 
(XEN) CPU2 @ e008:ffff82d08022c26f (process_pending_softirqs+0xb/0x56)
(XEN) CPU7 @ e008:ffff82d08022bc40 
(XEN) CPU3 @ e008:ffff82d08022bc40 
(XEN) CPU5 @ e008:ffff82d08022cc34 (_spin_lock+0x4d/0x62)
(XEN) CPU6 @ e008:ffff82d08022c264 (process_pending_softirqs+0/0x56)
(XEN) ****************************************
(XEN) Panic on CPU 1:
(XEN) FATAL TRAP: vector = 2 (nmi)
(XEN) [error_code=0000] , IN INTERRUPT CONTEXT
(XEN) ****************************************
(XEN) Reboot in five seconds...
(XEN) Executing kexec image on cpu1
(XEN) Shot down all CPUs

Is this something you can reproduce?

Yes, I was able to hit this.

Attached patch is fixing it for me. Could you give it a try?


Attachment: 0001-xen-sched-allow-rcu-work-to-happen-when-syncing-cpus.patch
Description: Text Data



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.