You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Andrew Wong (JIRA)" <ji...@apache.org> on 2016/06/23 21:17:16 UTC

[jira] [Resolved] (KUDU-403) static buffer for SASL options is racy

     [ https://issues.apache.org/jira/browse/KUDU-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Wong resolved KUDU-403.
------------------------------
          Resolution: Fixed
       Fix Version/s: 0.5.0
    Target Version/s:   (was: GA)

See commit 60b05eff34010cccbb0f58dab79258ff67d93ab6

> static buffer for SASL options is racy
> --------------------------------------
>
>                 Key: KUDU-403
>                 URL: https://issues.apache.org/jira/browse/KUDU-403
>             Project: Kudu
>          Issue Type: Bug
>          Components: rpc
>    Affects Versions: M4.5
>            Reporter: Todd Lipcon
>            Assignee: Andrew Wong
>              Labels: newbie
>             Fix For: 0.5.0
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)