From patchwork Sun Mar 8 00:05:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 131272 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id BE2FE4BA2E3D for ; Sun, 8 Mar 2026 00:06:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE2FE4BA2E3D X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 4E7764BA2E14 for ; Sun, 8 Mar 2026 00:05:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E7764BA2E14 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4E7764BA2E14 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772928336; cv=none; b=bzXXQyufOAGf2lpQH6youk3MwGegXZvYbMUtF4ToQfeY25RTa2vc+7rDg9OgDIT8npGqLLA2oHF+WWHjHO/cFA17XIMxiMr5raX/YJ502PSm5fXPBhFQomuQcEEqUKzpYfMTwusoXcNxiQma75TkwcJRPvtlKYkfqGyOKaKiNJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772928336; c=relaxed/simple; bh=w3wV9AxxofdOb9lP0RKnmG+sF88G2e+nsgyRyf5OQvA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=HUHjfFhqwklspEEMQ55l5W0aslFcVNYFHruHrTGrNxyAqGHYYGVRTMFpyreXahmQiXx4UnYOkNrJRrMR8aAIElA+BuRR4923buEo/a63hedBGlMGPuY6Bymwg4cl0lpfjnKxzs8KhW63dpjwG58ylIOcKGJw5QLwDMj0BGAiRIo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E7764BA2E14 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 355C8A039C; Sun, 8 Mar 2026 01:05:35 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OJ6Mh7f3Dq7s; Sun, 8 Mar 2026 01:05:35 +0100 (CET) Received: from end (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 10B29A02C8; Sun, 8 Mar 2026 01:05:35 +0100 (CET) Received: from samy by end with local (Exim 4.99.1) (envelope-from ) id 1vz1eI-0000000EXGR-29Kp; Sun, 08 Mar 2026 01:05:34 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org, Brent Baccala Subject: [hurd,commited] htl: Fix checking for mutex not being recoverable Date: Sun, 8 Mar 2026 01:05:34 +0100 Message-ID: <20260308000534.3464452-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org pthread_mutex_unlock sets __owner_id to NOTRECOVERABLE_ID Reported-by: Brent Baccala 's Claude assistant --- sysdeps/mach/hurd/htl/pt-mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mach/hurd/htl/pt-mutex.h b/sysdeps/mach/hurd/htl/pt-mutex.h index d26f527968..270a415a0c 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex.h +++ b/sysdeps/mach/hurd/htl/pt-mutex.h @@ -45,7 +45,7 @@ ret = cb (mtxp->__lock, ##__VA_ARGS__); \ if (ret == 0 || ret == EOWNERDEAD) \ { \ - if (mtxp->__owner_id == ENOTRECOVERABLE) \ + if (mtxp->__owner_id == NOTRECOVERABLE_ID) \ ret = ENOTRECOVERABLE; \ else \ { \