Cover Letter Detail
Show a cover letter.
GET /api/covers/2195606/?format=api
{ "id": 2195606, "url": "http://patchwork.ozlabs.org/api/covers/2195606/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/cover/20260211135944.2066869-1-fberat@redhat.com/", "project": { "id": 41, "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api", "name": "GNU C Library", "link_name": "glibc", "list_id": "libc-alpha.sourceware.org", "list_email": "libc-alpha@sourceware.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260211135944.2066869-1-fberat@redhat.com>", "list_archive_url": null, "date": "2026-02-11T13:59:42", "name": "[v4,0/2] Enhancing LD_DEBUG with TLS logging and category exclusion support", "submitter": { "id": 84672, "url": "http://patchwork.ozlabs.org/api/people/84672/?format=api", "name": "Frédéric Bérat", "email": "fberat@redhat.com" }, "mbox": "http://patchwork.ozlabs.org/project/glibc/cover/20260211135944.2066869-1-fberat@redhat.com/mbox/", "series": [ { "id": 491846, "url": "http://patchwork.ozlabs.org/api/series/491846/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=491846", "date": "2026-02-11T13:59:44", "name": "Enhancing LD_DEBUG with TLS logging and category exclusion support", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/491846/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2195606/comments/", "headers": { "Return-Path": "<libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "libc-alpha@sourceware.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "libc-alpha@sourceware.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=AJYt6jkq;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=AJYt6jkq", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "sourceware.org; spf=pass smtp.mailfrom=redhat.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fB0T628QGz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 12 Feb 2026 01:00:58 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 275844BA23EF\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 14:00:56 +0000 (GMT)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 1890F4BA23C7\n for <libc-alpha@sourceware.org>; Wed, 11 Feb 2026 13:59:57 +0000 (GMT)", "from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-543-lXWkT2wfNpSjNC6mQiNGOQ-1; Wed,\n 11 Feb 2026 08:59:52 -0500", "from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id C08E518005BC; Wed, 11 Feb 2026 13:59:51 +0000 (UTC)", "from Nymeria-redhat.redhat.com (unknown [10.44.33.163])\n by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 75269180066A; Wed, 11 Feb 2026 13:59:49 +0000 (UTC)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 275844BA23EF", "OpenDKIM Filter v2.11.0 sourceware.org 1890F4BA23C7" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 1890F4BA23C7", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 1890F4BA23C7", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770818397; cv=none;\n b=dPKyW4k03TEfdnCjj4Lsoyt+voPBtlPXwcOTK53RnR7n6t8cn9Kf6TpXlhJESCIlkMbpE7hxt3qIeoAFCvbbb6Fhq40JTUACPpMTROcFhlwEcIXxvqqFcUnsP3aG8lg1C8HMWFkpJ9HcBs+4Pfbm5m+LqAYJiwMsbiw7nfuYlAg=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1770818397; c=relaxed/simple;\n bh=mgm0Zo/0TfKwGU5py1xiq+4X/cNSD1S83CiqfmeKnFw=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=fW8WIYLfl3TA/f6uWDjvikNqyZswOi9k9YiHFwQwswMY2+8Scr8y3M2Nm4Bxw7OmTAP6gHfxgddZKpVnynDdxB/kY59XPPGwRfOCSdTKrmS+jNk0BDGqBsWG+dHcCSQjxie3jfMI1U1irnKanczpnxDCYOXGe1yTsjxMSC5f9Go=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770818396;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=n/ta4Wpcv1+PHSyTqmzq+Zwqf6p+wFeQ3lLYmShh7Mo=;\n b=AJYt6jkqQvHRNUuTSuZ7MOjuu5400cASSZctma6K34QtRC7z2XkyNVEkkrGJs4p1YnlQH8\n cXMWsNbCSmJ61xgStg5pyGwa8VwPvmUDMfLhf8gwz85MzObdGDvq0pxnuh01lu4JXggAYg\n r2mUejBfM1gm2KZ7lNCgLTxrj5tdxl8=", "X-MC-Unique": "lXWkT2wfNpSjNC6mQiNGOQ-1", "X-Mimecast-MFC-AGG-ID": "lXWkT2wfNpSjNC6mQiNGOQ_1770818391", "From": "=?utf-8?b?RnLDqWTDqXJpYyBCw6lyYXQ=?= <fberat@redhat.com>", "To": "libc-alpha@sourceware.org, fweimer@redhat.com,\n adhemerval.zanella@linaro.org", "Subject": "[PATCH v4 0/2] Enhancing LD_DEBUG with TLS logging and category\n exclusion support", "Date": "Wed, 11 Feb 2026 14:59:42 +0100", "Message-ID": "<20260211135944.2066869-1-fberat@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.93", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "qY3egLpm9346Lt1EOT-n_ns5YdmALcIBVnVJdLn6cvQ_1770818391", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "libc-alpha@sourceware.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Libc-alpha mailing list <libc-alpha.sourceware.org>", "List-Unsubscribe": "<https://sourceware.org/mailman/options/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe>", "List-Archive": "<https://sourceware.org/pipermail/libc-alpha/>", "List-Post": "<mailto:libc-alpha@sourceware.org>", "List-Help": "<mailto:libc-alpha-request@sourceware.org?subject=help>", "List-Subscribe": "<https://sourceware.org/mailman/listinfo/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=subscribe>", "Errors-To": "libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org" }, "content": "Hi,\n\nThis patch series improves the debugging capabilities of the dynamic\nlinker by introducing detailed logging for Thread-Local Storage (TLS)\noperations and providing a mechanism to exclude specific categories from\nthe LD_DEBUG output.\n\nThe first patch adds comprehensive logging for TLS events, which are\noften difficult to trace in multithreaded environments. This includes\nmodule ID assignments, DTV resizing, and lazy allocation events. To aid\nin identifying the context of these operations, logs include the TCB\naddress where applicable.\n\nThe second patch introduces the ability to prefix LD_DEBUG categories\nwith a dash (-) to exclude them. This is particularly useful when\ncombined with the all category, allowing users to suppress verbose\noutput from specific subsystems that are not relevant to their current\ndebugging task (e.g., LD_DEBUG=all,-tls).\n\nTested on x86_64-linux-gnu.\n\nBest regards,\n\nFred\n\n---\nChanges since v3:\n- Standardized TLS debug logs to use a \"tls: \" prefix and improved\n message clarity (e.g., \"TLS initialized\").\n- Restricted TCB address logging to thread-specific events, removing it\n from global events (module assignment/release).\n- Corrected Lmid_t (namespace ID) printing to use %ld (signed long).\n- Added missing glibc headers and detailed intent descriptions to new\n test scripts.\n- Refactored LD_DEBUG parsing to a single-pass sequential loop to ensure\n proper handling of option ordering (e.g., 'all,-tls,tls' now leaves\n tls enabled).\n- Expanded verification tests to cover sequential processing and\n ordering.\n\nFrédéric Bérat (2):\n elf(tls): Add debug logging for TLS operations\n feat(rtld): Allow LD_DEBUG category exclusion\n\n elf/Makefile | 26 ++++++++++\n elf/dl-close.c | 5 ++\n elf/dl-tls.c | 83 +++++++++++++++++++++++++++-----\n elf/rtld.c | 21 ++++++--\n elf/tst-dl-debug-exclude.sh | 87 ++++++++++++++++++++++++++++++++++\n elf/tst-tls-debug-recursive.sh | 83 ++++++++++++++++++++++++++++++++\n nptl/Makefile | 5 +-\n nptl/allocatestack.c | 10 ++--\n nptl/nptl-stack.c | 6 +--\n nptl/pthread_create.c | 2 +-\n nptl/tst-dl-debug-tid.c | 13 +++++\n nptl/tst-dl-debug-tid.sh | 33 ++++++++++---\n nptl/tst-tls-debug-mod.c | 26 ++++++++++\n sysdeps/x86_64/dl-tls.c | 33 +++++++++++--\n 14 files changed, 398 insertions(+), 35 deletions(-)\n create mode 100644 elf/tst-dl-debug-exclude.sh\n create mode 100755 elf/tst-tls-debug-recursive.sh\n create mode 100644 nptl/tst-tls-debug-mod.c" }