Skip to content

[Bug]: Support Linux kernel 7.2 (strncpy removal) #769

Description

@sergiomb2

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.?

  • Yes, I've uploaded all pertinent files to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions