From nobody Wed Feb 01 15:38:08 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P6Qzj0bYwz3cW4d for ; Wed, 1 Feb 2023 15:38:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P6Qzh6MbBz4NkH for ; Wed, 1 Feb 2023 15:38:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675265888; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5c2xE1WytEpEVM0q94j49D+kST3HoYaCfWZ+X4u2Bi0=; b=BhbPSZ35jIf3nU7FV3d4z6bWBwQy/c0Rg1a4mOqyfcCSSbH4f87vDJDvAmco8jXi6/25m7 CX7EmkrP8cA30RCF9kNqLzft3OZrbIDGifIPy7iFmH45M0J+Vz4X/FDcFZdDabUlNDU2gD H2nWHWE9BwQw6rwhAH5Kw/BNeFOMjtx+142oNY3SpVpazaDFhUn/qgH58EowDzp1msleNC oF6GzevS1cB6vhDY7+d0LZoeKS48u6zCFrKsk/8ATVxLZ75Leqk96Js+7T6YRnNkIwy9sD tzVu0Cv55xlRKBJeHS6CR5bFLNqcD6/+/G/HI7IWdnIArpqVSgjA4YLwFiNPxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675265888; a=rsa-sha256; cv=none; b=r4LgFB3bMIwGfjBSLpo5Fl3D27MNr9Aad+721SIqth1xnFzYjJcBNdQJjYevdS72JGrkSx rWHOlkr9wPe1J0s7jqsIiG+GHc7x00l2L5ee0+XKDwquZkcrS5nLmulXnepvqJBCPjuYv5 /JkBE4/nfbul034DMO3yFA391ccI5yPbNun7j+0984U4mC4EgqEmwh1VUJ/6jVz9l9QTt/ hdg4zLCFgPPYI7Srm+18gTGHpTT6PfkYeQobCSuXc9cVMkPa9cFonA5EWCykRkM1ejo20b QDw6OLx3+3odps+BzU0MJ6YAk7STbqSkFO5fH8XkyRpMe4geQLjYs/6mWJpVJw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P6Qzh5PQ8zJfk for ; Wed, 1 Feb 2023 15:38:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 311Fc85Y038950 for ; Wed, 1 Feb 2023 15:38:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 311Fc8av038949 for bugs@FreeBSD.org; Wed, 1 Feb 2023 15:38:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269277] On 12.3, process-shared mutex may fail locking operations after usage of ANOTHER process-shared mutex. Date: Wed, 01 Feb 2023 15:38:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rau8344@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269277 Bug ID: 269277 Summary: On 12.3, process-shared mutex may fail locking operations after usage of ANOTHER process-shared mutex. Product: Base System Version: 12.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rau8344@gmail.com Created attachment 239841 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D239841&action= =3Dedit Minimal code to recreate issue On FreeBSD 12.3 amd64, a process-shared mutex may fail locking operations a= fter usage of ANOTHER process-shared mutex. Original issue was seen running a particular sequence of unit tests against a complex codebase; sometimes saw= two threads lock the same mutex at the same time, or fail on lock with EINVAL. Issue recreated=20 Recreated the EINVAL issue with a minimal example on a single thread (see attached), both with gtest and without. Tested on two physical quad-core machines (a Beckhoff 2040 and a Beckhoff 2042). --=20 You are receiving this mail because: You are the assignee for the bug.=