| Summary: | app-emulation/virtualbox: Wrong IPC socket being deleted when VirtualBox is run via su on Linux, leading to possible disk corruption in VMs | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Johan Hedlin <Busan15> |
| Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | chris, gentoo, sam |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Patch to replace the use of whoami with $LOGNAME/$USER
Result of "emerge --info" |
||
|
Description
Johan Hedlin
2022-05-11 11:18:04 UTC
Created attachment 778118 [details]
Result of "emerge --info"
This is pretty serious and it's a Gentoo-specific regression. The patch seems reasonable enough. Hello, I don't know if this is related, but I ran into a bug today that might be related. My server hadn't been stopped for 6 months, and it had gone from version 6.1.28-r2 to version 6.1.32-r1 without virtualbox being restarted. After an unfortunate power outage, I had to restart my server, and then I couldn't launch a virtual machine anymore because of the error described here https://forums.virtualbox.org/viewtopic.php?f=7&t =105337 And I was able to circumvent the problem by manually launching /usr/lib64/virtualbox/VBoxXPCOMIPCD and /usr/lib64/virtualbox/VBoxSVC beforehand. And indeed, I run my virtual machine using su. I don't know if the problem is solved by the unstable version 6.1.34 I'll commit the fix for this in 3 days (16th) if no response. (In reply to Christophe PEREZ from comment #3) > My server hadn't been stopped for 6 months, and it had gone from version > 6.1.28-r2 to version 6.1.32-r1 without virtualbox being restarted. > After an unfortunate power outage, I had to restart my server, and then I > couldn't launch a virtual machine anymore because of the error described > here https://forums.virtualbox.org/viewtopic.php?f=7&t=105337 > [...] > And indeed, I run my virtual machine using su. I haven't seen the NS_ERROR_SOCKET_FAIL message, but it does sound like that problem could be related to this bug. Gentoo switched to a different implementation of su (which will trigger this bug) in December, so that could be what caused your system to break: https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/util-linux?id=c550eb53b108fcf6d4e2a38778230bc9a7d078e8 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32e104524f206f4c02aa95f739995ad084c57201 commit 32e104524f206f4c02aa95f739995ad084c57201 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2022-06-15 12:36:35 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2022-06-15 12:37:52 +0000 app-emulation/virtualbox: Revbumps to remove uage of whoami Thanks-to: Johan Hedlin <Busan15@protonmail.com> Closes: https://bugs.gentoo.org/843776 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> app-emulation/virtualbox/files/virtualbox-ose-6-wrapper | 2 +- .../{virtualbox-6.1.32-r1.ebuild => virtualbox-6.1.32-r2.ebuild} | 0 .../{virtualbox-6.1.34.ebuild => virtualbox-6.1.34-r1.ebuild} | 0 3 files changed, 1 insertion(+), 1 deletion(-) |