Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-403

static buffer for SASL options is racy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • M4.5
    • 0.5.0
    • rpc

    Description

      From trunk TSAN build: the snprintf to a static buf in SaslGetOption is racy, since that can be called in parallel from multiple threads without synchronization:
      #2 kudu::rpc::SaslGetOption(void*, char const*, char const*, char const*, unsigned int) /home/todd/git/kudu/src/rpc/sasl_common.cc:90 (libkrpc.so+0x0000000c02a8)
      #3 sasl_client_plugin_info <null>:0 (libsasl2.so.2+0x00000000866c)
      #4 kudu::rpc::Connection::InitSaslServer() /home/todd/git/kudu/src/rpc/connection.cc:525 (libkrpc.so+0x00000009649e)

      Attachments

        Activity

          People

            awong Andrew Wong
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: