Skip to content
  • Mark Andrews's avatar
    Only copy the name data after we know its actual length · 4ef755ff
    Mark Andrews authored and Ondřej Surý's avatar Ondřej Surý committed
    This prevents TSAN errors with the ncache code where the trust byte
    access needs to be protected by a lock.  The old code copied the
    entire region before determining where the name ended.  We now
    determine where the name ends then copy just that data and in doing
    so avoid reading the trust byte.
    4ef755ff