Skip to content

sysvipc handling is time64-incompatible #116

@richfelker

Description

@richfelker

(Apologies if this is a duplicate of something already reported here or elsewhere. I could have sworn I already reported and had communication about it, but I can't find record of that anywhere.)

strace gets the structure definitions and command macro values from sys/ipc.h, sys/sem.h, etc. only falling back to the kernel uapi headers if these are missing. However, for moving 32-bit archs to 64-bit time_t, the application-facing/libc types for semid_ds, etc. must necessarily mismatch the kernel types since the existing time fields lack correct alignment (and on some archs, even lack padding) to be expanded/used in-place.

Since strace wants to be working with the structures and command numbers present in the tracee's interface with the kernel, not its own interface with libc, it should be including the kernel uapi headers for these definitions.

Original report and analysis was on the musl libc list in regards to time64 conversion: https://www.openwall.com/lists/musl/2019/10/29/7

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