Version
7.2.12
Host OS Type
Linux
Host OS name + version
Fedora rawhide
Host Architecture
ARM
Guest OS Type
macOS
Guest Architecture
ARM
Guest OS name + version
No response
Component
Unspecified
What happened?
Linux 7.2 finally removes strncpy() after six years and more than 360 patches.
How should we replace strncpy() in the kmod sources?
Here is my proposal; it seems straightforward for VirtualBox. For NUL-terminated strings, this uses strscpy(), matching the kernel's recommended replacement.
https://github.com/rpmfusion/VirtualBox-kmod/blob/75e958119a51b0f2f5754ce164d88b94e3c397f9/strncpy.patch
Some background:
How can we reproduce this?
build kmods with Linux kernel 7.2-rc2
Did you upload all of your necessary log files, screenshots, etc.?
Version
7.2.12
Host OS Type
Linux
Host OS name + version
Fedora rawhide
Host Architecture
ARM
Guest OS Type
macOS
Guest Architecture
ARM
Guest OS name + version
No response
Component
Unspecified
What happened?
Linux 7.2 finally removes
strncpy()after six years and more than 360 patches.How should we replace
strncpy()in the kmod sources?Here is my proposal; it seems straightforward for VirtualBox. For NUL-terminated strings, this uses
strscpy(), matching the kernel's recommended replacement.https://github.com/rpmfusion/VirtualBox-kmod/blob/75e958119a51b0f2f5754ce164d88b94e3c397f9/strncpy.patch
Some background:
How can we reproduce this?
build kmods with Linux kernel 7.2-rc2
Did you upload all of your necessary log files, screenshots, etc.?