From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4589 invoked from network); 29 Sep 2020 18:35:40 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2020 18:35:40 -0000 Received: (qmail 22035 invoked by uid 550); 29 Sep 2020 18:35:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 21998 invoked from network); 29 Sep 2020 18:35:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yIklx/ulKoij11uz651lTlZThQ83OTKip8ujwrcQ8rU=; b=neYLeqtaTkzMWZmDCBjihgUH55/WhrKVNjJQPE4Iy1lNbH30HlqMVYeV8OXYfRfE9a lzdWKrnR/3zcEqBD5xPCVQ32r/KvEWQSMNwgV6iOBIFcvoLwWBxcf3PFSHMxDw80zwmC 9pBlLtuBRcYjpFbfQgX9vbnkhEhu07IXhYfxrPgbaBFrx0woGw5ivKZhcvv7DEPSjPgr LMHCmsMpcptjw7vze4P52MdmJNL13QYsL6ymcJRIModtE4/ERHuD2zmZOEZ0uQhpRL0M CJAoGMz29cxTfIlgr9MN10agrgQEK7uCVZrjB9fehlD0LZ98PkA065dhgHh8/c/EEm3B j9ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yIklx/ulKoij11uz651lTlZThQ83OTKip8ujwrcQ8rU=; b=lEozdjybGcCJIVB94yU+BYDZgn+SNsvj5TIrXgigEW4PEYbE+5zShURcOKZSsclbgw ZoompvfA7iVGC15gf56FXs5/KhNVGE6TyvBkypJ8WIHEppQiXdxjrNG9agxfhOftQtJG gqU4S80WJQhEVddpnl0EVm0tNmmwNkKPjNwW2LwxZ31G+WkF0O+TuKhCOBIeXc52kKvz EJwHlIZeXYTd939PEAyA4chyD0sqBSURICa0oCBqU08oIBI7IdPYAdVhsuD8RIi3RE9Y gZSktZLe2Xgalr0wE8KfjbBMGMCMP/4FmbpfWB5ONdJ5rBKkUC93yNrBAx5eW8gvenP6 4IQA== X-Gm-Message-State: AOAM533uIqkERMx9iJMzpy2qi0iEmKE8WLPq1A9mSjIwH4buSDr/mftM qe3gxgLHlBt8MwC2yWb8GDSW5et1BKY7jgORvaes6wZiMxKy3g== X-Google-Smtp-Source: ABdhPJxAdeKTMO8g8FDCXuWT3GyDLxZh7tqXHy9YAVKjq9KdzjkV3sMUOq4qZalWeWsS2GqI3yrXMQ9g3OYjy82gWLc= X-Received: by 2002:a17:906:4902:: with SMTP id b2mr4672649ejq.208.1601397082756; Tue, 29 Sep 2020 09:31:22 -0700 (PDT) MIME-Version: 1.0 From: Leonid Shamis Date: Tue, 29 Sep 2020 09:31:12 -0700 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000431e6505b07650ff" Subject: [musl] Robust mutex returning ESRCH --000000000000431e6505b07650ff Content-Type: text/plain; charset="UTF-8" We had a bug in our code where a dying process released shared memory (munmap) prior to exit. The process held ownership of a robust mutex within the shared memory, and because the address was unmapped, the robust_list wasn't able to set the appropriate flags. The next attempt to lock the mutex, in another process, returned ESRCH. Should ESRCH be caughtand converted to either a recoverable EOWNERDEAD or ENOTRECOVERABLE? --000000000000431e6505b07650ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We had a bug in our code where a dying process released sh= ared memory (munmap) prior to exit. The process held ownership of a robust = mutex within the shared memory, and because the address was unmapped, the r= obust_list wasn't able to set the appropriate flags.

The next at= tempt to lock the mutex, in another process, returned ESRCH.

Should= ESRCH be caughtand converted to either a recoverable EOWNERDEAD or ENOTREC= OVERABLE?
--000000000000431e6505b07650ff--