7b673a2c73
The API says that CMSG_SPACE should be used for msg_controllen, but in practice the native ABI allows you to only use CMSG_LEN for the final (typically only) control message, and real-world software does this, including Wayland. For freebsd32, this is in practice mostly harmless, since control messages are generally used to carry file descriptors, which are already 4 bytes in size and thus no padding is needed, but they can carry other quantities that may not result in an aligned length. This was discovered after CheriBSD's freebsd64 equivalent was updated to match the freebsd32 implementation, as that uses 8 byte alignment which does break the file descriptor use case, and thus Wayland. This used to be addressed by aligning buflen before the first iteration, but that allowed unwanted invalid inputs and was lost in |
||
---|---|---|
.. | ||
freebsd32_abort2.c | ||
freebsd32_capability.c | ||
freebsd32_ioctl.c | ||
freebsd32_ioctl.h | ||
freebsd32_ipc.h | ||
freebsd32_misc.c | ||
freebsd32_misc.h | ||
freebsd32_proto.h | ||
freebsd32_signal.h | ||
freebsd32_syscall.h | ||
freebsd32_syscalls.c | ||
freebsd32_sysent.c | ||
freebsd32_systrace_args.c | ||
freebsd32_util.h | ||
freebsd32.h | ||
Makefile | ||
syscalls.conf |