From nobody Sun Jan 09 05:36:20 2022 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 3FD851939A98 for ; Sun, 9 Jan 2022 05:36:21 +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 4JWm0N5F3cz4rSt for ; Sun, 9 Jan 2022 05:36:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4FCD64873 for ; Sun, 9 Jan 2022 05:36:20 +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 2095aKog042486 for ; Sun, 9 Jan 2022 05:36:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2095aK1I042485 for bugs@FreeBSD.org; Sun, 9 Jan 2022 05:36:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261051] Double unlocking in rpc_soc.c Date: Sun, 09 Jan 2022 05:36:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641706580; 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: in-reply-to:in-reply-to:references:references; bh=E07MqslRlpCiSQGJfCfWOK0fLo0mchekytExsxWT7c0=; b=vuvdEPWLqo98SnY42wuZLkT8/n8eq03GER1EyHOq0cXvyRvAqNOGtBgacRqLJ0ZqBnkM3I 8HiZlcM30d9+Az6xV0r5ULvunI0NVCoPOGcFORZJFKQwSgTrvQ1StW3C6oKVJOd+7lv+0B XhNwjgB1iYbinHIXn5WD+l7MFsKFqOfOTjm5hHa8jKqOsCFXF5XUa5e1SyM+3RFCzSK5g0 5N8NbdGpIWKyM6K9Bj0dOt3p0K9SYiQT+gDWVM8/tB9mVsIN/mlR7fP6IUuzOuVaFaFkYU /KioTOYWSwUTxVRLvXa/EsU8J/Gk/WKvjyHVSs6n6rh4ETno50rTKn73oWE+kA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641706580; a=rsa-sha256; cv=none; b=mN5kJo5FZSye9IN7OATinneoghVYzjVMciPbYQsyGrBcfffoNM/RaBP9LNXm5U4MUGEJ2u AKT8fZnQOLsQ1fB6Knr4lwYOsMiounb14MKz9NFdMzo7n9Gk963jHDxnSuwj08F7XocAzp WWeqBLcrsJQqPJhV7baJYL/Ky+88edVdJvZz3dV9h+ajFS+oqCqCnb06l3j4Rwf9ZI2rPM 0edJAvHOZ908SSzmsZQo/2vm4vE31s7G1CxkHc+ZNNaxIurZakLeCeM0hhEP1rQ6jU9Da8 A8cw7TIhhxAgCfzuI6iyVv6P2qHlkekPwYARoh62GFxIPI8dwQyG6meNcI25Qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261051 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6d06bc688eb5a9f9e389b69c388d591a4= 0edc422 commit 6d06bc688eb5a9f9e389b69c388d591a40edc422 Author: Konstantin Belousov AuthorDate: 2022-01-09 05:09:22 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-09 05:36:06 +0000 libc clnt_com_create: relock rpcsoc_lock earlier when port is obtained = from portmapper Otherwise on mapper failure we goto error handler which expect rpscoc_lock owned, but we do not. PR: 261051 Reported by: RyanCai Sponsored by: The FreeBSD Foundation MFC after: 1 week lib/libc/rpc/rpc_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=