Linux 6.6.64 crashes when booting as PVH domU
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0 x86_64 debug=n Tainted: M ]----
(XEN) CPU: 4
(XEN) RIP: 0008:[<ffffffff82b64050>]
(XEN) RFLAGS: 0000000000010086 CONTEXT: hvm guest (d5v0)
(XEN) rax: ffffffff82b64050 rbx: ffffffffffe00000 rcx: 00000000c0000101 (XEN) rdx: 0000000000000000 rsi: 0000000003a00038 rdi: 0000000002a9bc98 (XEN) rbp: 0000000000000000 rsp: 0000000002aa0ce8 r8: 0000000000000000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 (XEN) r15: 0000000000000000 cr0: 0000000080000011 cr4: 0000000000000020 (XEN) cr3: 0000000002022000 cr2: 0000000000000000 (XEN) fsb: 0000000000000000 gsb: 0000000002a9ccc0 gss: 0000000000000000
(XEN) ds: 0010 es: 0010 fs: 0000 gs: 0000 ss: 0010 cs: 0008
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623 x86/pvh: Call C code via the kernel virtual mapping f662b4a69e1d x86/pvh: Set phys_base when calling xen_prepare_pvh()
But I haven't tested this hypothesis yet.
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 29 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----
(XEN) CPU: 4
(XEN) RIP: 0008:[<ffffffff82b64050>]
(XEN) RFLAGS: 0000000000010086 CONTEXT: hvm guest (d5v0)(XEN) rax: ffffffff82b64050 rbx: ffffffffffe00000 rcx: 00000000c0000101 (XEN) rdx: 0000000000000000 rsi: 0000000003a00038 rdi: 0000000002a9bc98 (XEN) rbp: 0000000000000000 rsp: 0000000002aa0ce8 r8: 0000000000000000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 (XEN) r15: 0000000000000000 cr0: 0000000080000011 cr4: 0000000000000020 (XEN) cr3: 0000000002022000 cr2: 0000000000000000 (XEN) fsb: 0000000000000000 gsb: 0000000002a9ccc0 gss: 0000000000000000(XEN) ds: 0010 es: 0010 fs: 0000 gs: 0000 ss: 0010 cs: 0008
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()But I haven't tested this hypothesis yet.
Quoted 36 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 27 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----
(XEN) CPU: 4
(XEN) RIP: 0008:[<ffffffff82b64050>]
(XEN) RFLAGS: 0000000000010086 CONTEXT: hvm guest (d5v0)(XEN) rax: ffffffff82b64050 rbx: ffffffffffe00000 rcx: 00000000c0000101 (XEN) rdx: 0000000000000000 rsi: 0000000003a00038 rdi: 0000000002a9bc98 (XEN) rbp: 0000000000000000 rsp: 0000000002aa0ce8 r8: 0000000000000000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 (XEN) r15: 0000000000000000 cr0: 0000000080000011 cr4: 0000000000000020 (XEN) cr3: 0000000002022000 cr2: 0000000000000000 (XEN) fsb: 0000000000000000 gsb: 0000000002a9ccc0 gss: 0000000000000000(XEN) ds: 0010 es: 0010 fs: 0000 gs: 0000 ss: 0010 cs: 0008
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
Quoted 34 lines · Ard Biesheuvel
Quoted 33 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 24 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----
(XEN) CPU: 4
(XEN) RIP: 0008:[<ffffffff82b64050>]
(XEN) RFLAGS: 0000000000010086 CONTEXT: hvm guest (d5v0)(XEN) rax: ffffffff82b64050 rbx: ffffffffffe00000 rcx: 00000000c0000101 (XEN) rdx: 0000000000000000 rsi: 0000000003a00038 rdi: 0000000002a9bc98 (XEN) rbp: 0000000000000000 rsp: 0000000002aa0ce8 r8: 0000000000000000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 (XEN) r15: 0000000000000000 cr0: 0000000080000011 cr4: 0000000000000020 (XEN) cr3: 0000000002022000 cr2: 0000000000000000 (XEN) fsb: 0000000000000000 gsb: 0000000002a9ccc0 gss: 0000000000000000(XEN) ds: 0010 es: 0010 fs: 0000 gs: 0000 ss: 0010 cs: 0008
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of: e8fbc0d9cab6 ("x86/pvh: Call C code via the kernel virtual mapping")
Does it mean neither of them should be backported?
But then, the e8fbc0d9cab6 has "Fixes:" tag (pointing at very old commit).
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
(cc Greg)
Quoted 19 lines · Marek Marczykowski-Górecki
Quoted 17 lines · Ard Biesheuvel
Quoted 16 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 7 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----
...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()
Quoted 9 lines
Quoted 4 lines
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of:
e8fbc0d9cab6("x86/pvh: Call C code via the kernel virtual mapping")
That was added by the stable maintainers - someone grabbed a patch from the middle of an unrelated series to make e8fbc0d9cab6 apply without lexical conflicts.
Quoted 5 lines
Does it mean neither of them should be backported?
But then, the
e8fbc0d9cab6has "Fixes:" tag (pointing at very old commit).
If someone thinks e8fbc0d9cab6 should be backported, they should rebase it onto v6.6.y, not backport random other patches until git-apply stops complaining. And ideally, someone would build and boot the result to check whether it works.
For now, it would be better to revert both.
Quoted 53 lines · Ard Biesheuvel
(cc Greg)
Quoted 19 lines · Marek Marczykowski-Górecki
Quoted 17 lines · Ard Biesheuvel
Quoted 16 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 7 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()Quoted 9 lines
Quoted 4 lines
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of:
e8fbc0d9cab6("x86/pvh: Call C code via the kernel virtual mapping")That was added by the stable maintainers - someone grabbed a patch from the middle of an unrelated series to make
e8fbc0d9cab6apply without lexical conflicts.Quoted 5 lines
Does it mean neither of them should be backported?
But then, the
e8fbc0d9cab6has "Fixes:" tag (pointing at very old commit).
Quoted 6 lines
If someone thinks
e8fbc0d9cab6should be backported, they should rebase it onto v6.6.y, not backport random other patches until git-apply stops complaining. And ideally, someone would build and boot the result to check whether it works.For now, it would be better to revert both.
I can confirm that reverting both commits fixes the issue.
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
Quoted 54 lines · Marek Marczykowski-Górecki
Quoted 53 lines · Ard Biesheuvel
(cc Greg)
Quoted 19 lines · Marek Marczykowski-Górecki
Quoted 17 lines · Ard Biesheuvel
Quoted 16 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 7 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()Quoted 9 lines
Quoted 4 lines
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of:
e8fbc0d9cab6("x86/pvh: Call C code via the kernel virtual mapping")That was added by the stable maintainers - someone grabbed a patch from the middle of an unrelated series to make
e8fbc0d9cab6apply without lexical conflicts.Quoted 5 lines
Does it mean neither of them should be backported?
But then, the
e8fbc0d9cab6has "Fixes:" tag (pointing at very old commit).
Quoted 8 lines
Quoted 6 lines
If someone thinks
e8fbc0d9cab6should be backported, they should rebase it onto v6.6.y, not backport random other patches until git-apply stops complaining. And ideally, someone would build and boot the result to check whether it works.For now, it would be better to revert both.
I can confirm that reverting both commits fixes the issue.
Ok, thanks, let me go rip all of these out and do a new release now to fix the issue. Sorry about that, and thanks so much for the testing and letting us know!
greg k-h
Quoted 61 lines · Greg Kroah-Hartman
Quoted 59 lines · Marek Marczykowski-Górecki
Quoted 58 lines · Ard Biesheuvel
(cc Greg)
Quoted 19 lines · Marek Marczykowski-Górecki
Quoted 17 lines · Ard Biesheuvel
Quoted 16 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 7 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()Quoted 9 lines
Quoted 4 lines
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of:
e8fbc0d9cab6("x86/pvh: Call C code via the kernel virtual mapping")That was added by the stable maintainers - someone grabbed a patch from the middle of an unrelated series to make
e8fbc0d9cab6apply without lexical conflicts.Quoted 5 lines
Does it mean neither of them should be backported?
But then, the
e8fbc0d9cab6has "Fixes:" tag (pointing at very old commit).If someone thinks
e8fbc0d9cab6should be backported, they should rebase it onto v6.6.y, not backport random other patches until git-apply stops complaining. And ideally, someone would build and boot the result to check whether it works.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
For now, it would be better to revert both.
I can confirm that reverting both commits fixes the issue.
Ok, thanks, let me go rip all of these out and do a new release now to fix the issue. Sorry about that, and thanks so much for the testing and letting us know!
I guess 6.11 is beyond repair?
Quoted 65 lines · Ard Biesheuvel
Quoted 63 lines · Greg Kroah-Hartman
Quoted 61 lines · Marek Marczykowski-Górecki
Quoted 59 lines · Ard Biesheuvel
(cc Greg)
Quoted 19 lines · Marek Marczykowski-Górecki
Quoted 17 lines · Ard Biesheuvel
Quoted 16 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 7 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()Quoted 9 lines
Quoted 4 lines
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of:
e8fbc0d9cab6("x86/pvh: Call C code via the kernel virtual mapping")That was added by the stable maintainers - someone grabbed a patch from the middle of an unrelated series to make
e8fbc0d9cab6apply without lexical conflicts.Quoted 5 lines
Does it mean neither of them should be backported?
But then, the
e8fbc0d9cab6has "Fixes:" tag (pointing at very old commit).If someone thinks
e8fbc0d9cab6should be backported, they should rebase it onto v6.6.y, not backport random other patches until git-apply stops complaining. And ideally, someone would build and boot the result to check whether it works.For now, it would be better to revert both.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
I can confirm that reverting both commits fixes the issue.
Ok, thanks, let me go rip all of these out and do a new release now to fix the issue. Sorry about that, and thanks so much for the testing and letting us know!
I guess 6.11 is beyond repair?
6.11.y is end-of-life for a week or so now, sorry. Hopefully no one is still using it (I did hear that Fedora is using it, so I don't know...)
greg k-h
Quoted 65 lines · Ard Biesheuvel
Quoted 63 lines · Greg Kroah-Hartman
Quoted 61 lines · Marek Marczykowski-Górecki
Quoted 59 lines · Ard Biesheuvel
(cc Greg)
Quoted 19 lines · Marek Marczykowski-Górecki
Quoted 17 lines · Ard Biesheuvel
Quoted 16 lines · Jürgen Groß
Jason, Ard,
I guess there are some prereq patches missing in stable 6.6.y branch?
Juergen
Quoted 7 lines · Marek Marczykowski-Górecki
Hi,
With Linux 6.6.64 I get the following crash on domU boot:
(XEN) d5v0 Triple fault - invoking HVM shutdown action 1 (XEN) *** Dumping Dom5 vcpu#0 state: ***
(XEN) ----[ Xen-4.19.0x86_64debug=n Tainted: M ]----...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Linux 6.6.63 works fine.
Looking at the changes, I suspect one of those:
83d123e27623x86/pvh: Call C code via the kernel virtual mappingf662b4a69e1dx86/pvh: Setphys_basewhen callingxen_prepare_pvh()Quoted 9 lines
Quoted 4 lines
The second patch shouldn't have been backported. It is unnecessary, given that in the old situation, the kernel image needs to be loaded at a fixed address. And it assumes that %rbp is set to the physical load offset, but those patches were not backported.
It has this tag:
Stable-dep-of:
e8fbc0d9cab6("x86/pvh: Call C code via the kernel virtual mapping")That was added by the stable maintainers - someone grabbed a patch from the middle of an unrelated series to make
e8fbc0d9cab6apply without lexical conflicts.Quoted 5 lines
Does it mean neither of them should be backported?
But then, the
e8fbc0d9cab6has "Fixes:" tag (pointing at very old commit).If someone thinks
e8fbc0d9cab6should be backported, they should rebase it onto v6.6.y, not backport random other patches until git-apply stops complaining. And ideally, someone would build and boot the result to check whether it works.For now, it would be better to revert both.
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
I can confirm that reverting both commits fixes the issue.
Ok, thanks, let me go rip all of these out and do a new release now to fix the issue. Sorry about that, and thanks so much for the testing and letting us know!
I guess 6.11 is beyond repair?
Yes 6.11 is not a supported stable series anymore.
$ curl -s https://kernel.org/releases.json | \ jq '.releases[] | select(.version=="6.11.11") .iseol' -> true
Cheers,
Chris