kmq_setattr wrote open->nonblocking outside queue.lock while WaitFor reads it
under the lock, racing concurrent mq_setattr with send and receive; the write
and the old-attribute snapshot now share the readers' lock.
kmq_timedreceive copied into buffer after dequeuing the message, so a null
buffer crashed the host and lost the message; it is now rejected with EFAULT
before the queue is touched, matching kmq_timedsend.
Deadline converted tv_sec to int64 nanoseconds, overflowing for a tv_sec near
INT64_MAX ("forever") and wrapping to an immediate timeout; it now saturates
to the clock's representable range.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>