Kernel error for VirtualBox shared folders
Takashi, It seems that the memcpy error in vboxsf found at commit a8f014ec6a214c94ed6a9ff5ba8904a5cadd42a6 Author: Kees Cook <keescook@chromium.org> Date: Thu Jul 20 08:15:06 2023 -0700 vboxsf: Use flexible arrays for trailing string member has not been included in the openSUSE 6.5 kernels. The symptom is an inability to load shared folders in VirtualBox. The dmesg log reports [ 48.379016] memcpy: detected field-spanning write (size 1652) of single field "pLoggerInt->afGroups" at /home/abuild/rpmbuild/BUILD/VirtualBox-7.0.10/modules_build_dir/default/vboxdrv/common/log/log.c:2934 (size 4) Thanks for looking into this. BTW, my hone-build kernels for mainline HEAD work just fine as they have this fix. Larry
On 9/20/23 18:40, Larry Finger wrote:
Takashi,
It seems that the memcpy error in vboxsf found at commit a8f014ec6a214c94ed6a9ff5ba8904a5cadd42a6 Author: Kees Cook <keescook@chromium.org> Date: Thu Jul 20 08:15:06 2023 -0700
vboxsf: Use flexible arrays for trailing string member
has not been included in the openSUSE 6.5 kernels. The symptom is an inability to load shared folders in VirtualBox. The dmesg log reports
[ 48.379016] memcpy: detected field-spanning write (size 1652) of single field "pLoggerInt->afGroups" at /home/abuild/rpmbuild/BUILD/VirtualBox-7.0.10/modules_build_dir/default/vboxdrv/common/log/log.c:2934 (size 4)
Thanks for looking into this. BTW, my hone-build kernels for mainline HEAD work just fine as they have this fix.
Larry
Even if mounting may work, there's also reports that read()ing files from vboxsf fails and the calling tool gets "Killed": https://bugzilla.suse.com/show_bug.cgi?id=1215463 This also sees to happen since kernel 6.5. Have a nice day, Berny
On 9/20/23 18:07, Bernhard Voelker wrote:
On 9/20/23 18:40, Larry Finger wrote:
Takashi,
Even if mounting may work, there's also reports that read()ing files from vboxsf fails and the calling tool gets "Killed":
https://bugzilla.suse.com/show_bug.cgi?id=1215463
This also sees to happen since kernel 6.5.
The other Larry and I solved both problems today. A fix will be pushed later today. Larry
On 9/21/23 02:02, Larry Finger wrote:
On 9/20/23 18:07, Bernhard Voelker wrote:
On 9/20/23 18:40, Larry Finger wrote:
Takashi,
Even if mounting may work, there's also reports that read()ing files from vboxsf fails and the calling tool gets "Killed":
https://bugzilla.suse.com/show_bug.cgi?id=1215463
This also sees to happen since kernel 6.5.
The other Larry and I solved both problems today. A fix will be pushed later today.
wow, that was fast! :-) Great, thanks! Have a nice day, Berny
On Thu, 21 Sep 2023 02:02:53 +0200, Larry Finger wrote:
On 9/20/23 18:07, Bernhard Voelker wrote:
On 9/20/23 18:40, Larry Finger wrote:
Takashi,
Even if mounting may work, there's also reports that read()ing files from vboxsf fails and the calling tool gets "Killed":
https://bugzilla.suse.com/show_bug.cgi?id=1215463
This also sees to happen since kernel 6.5.
The other Larry and I solved both problems today. A fix will be pushed later today.
So don't we need to change anything in kernel side? thanks, Takashi
On 9/21/23 09:25, Takashi Iwai wrote:
On Thu, 21 Sep 2023 02:02:53 +0200, Larry Finger wrote:
On 9/20/23 18:07, Bernhard Voelker wrote:
On 9/20/23 18:40, Larry Finger wrote:
Takashi,
Even if mounting may work, there's also reports that read()ing files from vboxsf fails and the calling tool gets "Killed":
https://bugzilla.suse.com/show_bug.cgi?id=1215463
This also sees to happen since kernel 6.5.
The other Larry and I solved both problems today. A fix will be pushed later today.
So don't we need to change anything in kernel side?
Takashi, No, your kernel is fine. Apparently, some configuration difference between my home-rolled mainline kernel and the official openSUSE releases managed to let my system run vboxsf, but there was still a problem in the Oracle code that has now been patched. Thanks for your attention, and sorry for the noise. :) Larry
On Thu, 21 Sep 2023 16:34:18 +0200, Larry Finger wrote:
On 9/21/23 09:25, Takashi Iwai wrote:
On Thu, 21 Sep 2023 02:02:53 +0200, Larry Finger wrote:
On 9/20/23 18:07, Bernhard Voelker wrote:
On 9/20/23 18:40, Larry Finger wrote:
Takashi,
Even if mounting may work, there's also reports that read()ing files from vboxsf fails and the calling tool gets "Killed":
https://bugzilla.suse.com/show_bug.cgi?id=1215463
This also sees to happen since kernel 6.5.
The other Larry and I solved both problems today. A fix will be pushed later today.
So don't we need to change anything in kernel side?
Takashi,
No, your kernel is fine. Apparently, some configuration difference between my home-rolled mainline kernel and the official openSUSE releases managed to let my system run vboxsf, but there was still a problem in the Oracle code that has now been patched.
Thanks for your attention, and sorry for the noise. :)
OK, thanks for confirmation! Takashi
participants (4)
-
Bernhard Voelker
-
Larry Finger
-
Larry Len Rainey
-
Takashi Iwai