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/20 21:18:58 UTC

[jira] [Assigned] (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 reassigned KUDU-403:
--------------------------------

    Assignee: Andrew Wong  (was: Mike Percy)

> 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
>
> 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)