From patchwork Fri Jul 24 14:50:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 40172 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 65244389365F; Fri, 24 Jul 2020 14:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65244389365F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1595602255; bh=kmmWd5TQOT4g4RiVJLacDzkVA7ocxfJu5z7nHYUOoMs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=F+Is7zqzAPo02oAvuu85kA3cuANjJFIOKd0pDY2nMIPJggmqv2fIasCLl//83048E cSREcc7BnDy4w+Nm/lQn+VrDOYZg047pOehEL3g5VbNI+GN4D/XM5ALYmqmQ7A3Ftv IhrrOgwMFDFMJVQvno13d7q0JmALtS91vfo1c9+4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id AB988385702F for ; Fri, 24 Jul 2020 14:50:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AB988385702F Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-229-g4Zbw5s8OBi_uXX1ZUsDeA-1; Fri, 24 Jul 2020 10:50:50 -0400 X-MC-Unique: g4Zbw5s8OBi_uXX1ZUsDeA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 42D2F1B2C980 for ; Fri, 24 Jul 2020 14:50:49 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-112-154.ams2.redhat.com [10.36.112.154]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCB395D9F1 for ; Fri, 24 Jul 2020 14:50:48 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH] NEWS: Deprecate weak libpthread symbols for single-threaded checks Date: Fri, 24 Jul 2020 16:50:47 +0200 Message-ID: <875zad7yrc.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Recommend the new __libc_single_thread variable instead. Reviewed-by: Carlos O'Donell --- NEWS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 83aed60e19..7fb167e650 100644 --- a/NEWS +++ b/NEWS @@ -134,6 +134,14 @@ Deprecated and removed features, and other changes affecting compatibility: or contents might be overwritten on subsequent calls in the same thread or if the thread is terminated. It makes strerror MT-safe. +* Using weak references to libpthread functions such as pthread_create + or pthread_key_create to detect the singled-threaded nature of a + program is an obsolescent feature. Future versions of glibc will + define pthread_create within libc.so.6 itself, so such checks will + always flag the program as multi-threaded. Applications should check + the __libc_single_threaded variable declared in + instead. + * The "files" NSS module no longer supports the "key" database (used for secure RPC). The contents of the /etc/publickey file will be ignored, regardless of the settings in /etc/nsswitch.conf. (This method of