Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Discussions related to using VirtualBox on Linux hosts.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by fth0 »

Perfect. I'll write a detailed explanation in your bug ticket in the coming days, so that the VirtualBox developers know what to consider when developing a bug fix.

Edit:
Done. See 20180#comment:8.
Last edited by fth0 on 25. May 2021, 18:41, edited 1 time in total.
thomasb
Posts: 10
Joined: 20. Nov 2008, 05:33

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by thomasb »

I am having the exact same issue on my HP Pavilion laptop with a i5-1135G7 cpu. I am not sure, but I think this started happening when I upgraded from Ubuntu 20.10 to 21.04 (unfortunately 20.04 is not supporting the hardware well enough).
thomasb
Posts: 10
Joined: 20. Nov 2008, 05:33

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by thomasb »

hottobar wrote:
fth0 wrote:@hottobar (et al.): I think I found something ... :D

Please boot your host OS with the Linux kernel parameter split_lock_detect=off and try to reproduce the problem.
Yes! That was apparently it!
You've probably found a good workaround! :D
Appears to solve the problem for me as well! Thanks!
hackerbecker
Posts: 2
Joined: 21. May 2021, 08:59

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by hackerbecker »

fth0 wrote:@hottobar (et al.): I think I found something ... :D

Please boot your host OS with the Linux kernel parameter split_lock_detect=off and try to reproduce the problem.
Hi is there any tutorial link to explain how can I do that change, I couldn't find anywhere
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by fth0 »

There are lots of tutorials and explanations in the Internet. I'd suggest to google for "Linux kernel parameters <insert-your-favorite-Linux-distribution-here>". ;)
hottobar
Posts: 28
Joined: 4. Feb 2021, 11:56

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by hottobar »

hackerbecker wrote:
fth0 wrote:@hottobar (et al.): I think I found something ... :D

Please boot your host OS with the Linux kernel parameter split_lock_detect=off and try to reproduce the problem.
Hi is there any tutorial link to explain how can I do that change, I couldn't find anywhere
If you're using Ubuntu: https://wiki.ubuntu.com/Kernel/KernelBootParameters
hackerbecker
Posts: 2
Joined: 21. May 2021, 08:59

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by hackerbecker »

hottobar wrote:
hackerbecker wrote:
fth0 wrote:@hottobar (et al.): I think I found something ... :D

Please boot your host OS with the Linux kernel parameter split_lock_detect=off and try to reproduce the problem.
Hi is there any tutorial link to explain how can I do that change, I couldn't find anywhere
If you're using Ubuntu:
Thanks for help
fantic10
Posts: 11
Joined: 21. Feb 2021, 23:00

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by fantic10 »

I solved it too, 4 hours without rebooting.

of course KVM doesn't work

Thank you
sxc731
Posts: 9
Joined: 27. Mar 2021, 18:45

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by sxc731 »

For the record the workaround seems to work for me too.

It should be noted that the cause of this issue still sounds like a bug in VB, which - unless fixed - will at a minimum end up causing issues for many users (at least the increasing population on recent Intel hardware) unless the non-standard command-line option is enabled.

Here's a really good write-up on the semantics of the `split_lock_detect` flag.

I am not entirely clear about the implications of setting it to `off` but the documentation suggests that the behaviour may not be worse off than on older hardware (without support for `split_locka_detect`). However, I may be wrong but it does sound like race conditions on supposedly atomic code could occur, which could result in bad outcomes...
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by fth0 »

sxc731 wrote:It should be noted that the cause of this issue still sounds like a bug in VB
Agreed, and it's a tricky one indeed. For some further details, see 20180#comment:1 and 20180#comment:8.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by fth0 »

@hottobar (et al.): Please try one of the VirtualBox test builds 6.1.23r145550 or later, which should solve the issue, and report back. TIA.
bird
Oracle Corporation
Posts: 127
Joined: 10. May 2007, 10:27

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by bird »

Next 6.1 testbuild & release should include a fix/workaround for this. For good performance etc, it's currently recommended to disable split lock detection in the kernel.

Cheers,
bird.
Knut St. Osmundsen
Oracle Corporation
klaus
Oracle Corporation
Posts: 1115
Joined: 10. May 2007, 14:57

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by klaus »

To be clear, "Next" in bird's post actually refers to the build which fth0 recommended testing. No need to wait for anything, it's there already.
hottobar
Posts: 28
Joined: 4. Feb 2021, 11:56

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by hottobar »

fth0 wrote:@hottobar (et al.): Please try one of the VirtualBox test builds 6.1.23r145550 or later, which should solve the issue, and report back. TIA.
I've tested VBox build 6.1.23 r145681 and it works for me!
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 20.04 host, Win 10 guest constant reboot (STATUS_DATATYPE_MISALIGNMENT)

Post by fth0 »

hottobar wrote:I've tested VBox build 6.1.23 r145681 and it works for me!
Thanks for reporting back! :)
Post Reply