-
Notifications
You must be signed in to change notification settings - Fork 460
Description
(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