Skip to content

Audit all cmsg code #1013

Closed
Closed
@asomers

Description

@asomers

control messages used by sendmsg and recvmsg are one of the hardest Unix APIs. Some of Nix's cmsg-related tests currently fail on OpenBSD (see #1001), and others rely on a hard-coded os-dependent value that is not defined anywhere in libc (align_of_cmsg_data). Both of these things hint at underlying bugs in our cmsg implementation. We should audit the entire thing for correctness, and possibly rewrite it to be more C-like. libc already exports versions of the CMSG_DATA family of macros. Nix should use those rather than reinvent their logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions