Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2226510pxb; Fri, 25 Mar 2022 13:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSFKjC2xvuhFynGCdA4Eunyjuoays9CXgvE7PHYGADY6QSkSVKk1OyihTBqCkDJ1ewfNBn X-Received: by 2002:a63:4463:0:b0:381:3c1e:7299 with SMTP id t35-20020a634463000000b003813c1e7299mr1009183pgk.490.1648239927260; Fri, 25 Mar 2022 13:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239927; cv=none; d=google.com; s=arc-20160816; b=OVpprbSUF7y5QvqCXyy7K1K26pDPtCyLvDbpITmfs+dBoUn7XzYvDg1Z5YEeAK0gog 9N+6Y2G52G7/u1NkjqzU8zyAbQxyFp8uigOnTVsHxM3cpDrzrj/QxKmXrVwbcG32L0Vx jNJBNq9sGD1Meszo3HKUNqB/zrX5I0+h5oDMluXAg1pGMmrbTKo2lIiZEaz4HIPNO6oz fxZ+juLAdnnYlDiSO2bd1f0fRk8UiJWlIFEUV3m6i95QZPnrLqGL2Qbn/OLws19rrLsO P6Fv7UqM5pX74eunQlNVkdiZE/fUceyuTLspaerjrqqiByUz+mlnReA8cJQ1bYGakqYv zNMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-topic:thread-index :content-transfer-encoding:mime-version:subject:message-id:cc:to :from:date:dkim-signature:dkim-filter; bh=WR3Gmf/g+LB/7o/or7cSc4Y88IAWlkjH9PpLE8VVLaQ=; b=kgwozNW2wQSUu+5r/6PcbwgTju75aguvFgwyYcVhC/0Cp19AnAbL/2PGUokWrWfJTY GFRyZgAUDMBf5BrLNP3q4azVylhKSlUglD3WQZTmWOC9rWLrM6gHuXjLPwMzmDl6jkDM WbdyL5ZDlWr/5OBCaiyp8K3It58Uv0RSBoPE7lFQc3BgLu/EU+H2co5RWZ7ScuvzIJ+6 aQypLJxhio2QLnOcnQ9kttTHl5lvqnfTA4AKMAEXihQj3nH4yi/G7AGgRFqwVzK+8Em3 7dd/BmoxOoU7884qvPCLBAfk+OS45+mNjbcWlD4KEkSUYXIGvVLKNGN63DY4zCuSurSk kXwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b="WQ/bewDe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i126-20020a636d84000000b003816043f13bsi3073940pgc.816.2022.03.25.13.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b="WQ/bewDe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D46C220831B; Fri, 25 Mar 2022 12:40:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbiCYTka (ORCPT + 99 others); Fri, 25 Mar 2022 15:40:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231565AbiCYTiK (ORCPT ); Fri, 25 Mar 2022 15:38:10 -0400 Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F692706F5; Fri, 25 Mar 2022 12:21:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 02BF73F93FE; Fri, 25 Mar 2022 15:21:01 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Di5e2I5kUZyI; Fri, 25 Mar 2022 15:21:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 6E1EF3F92E5; Fri, 25 Mar 2022 15:21:00 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 6E1EF3F92E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1648236060; bh=WR3Gmf/g+LB/7o/or7cSc4Y88IAWlkjH9PpLE8VVLaQ=; h=Date:From:To:Message-ID:MIME-Version; b=WQ/bewDeVF0QbGYWBAcb47YoEj34JqimRhogL3W5LhkDNBi4q2vuU/6JG8RSKwBKU Pj5jQ3Yz06F+XfXlDaR+Dpfwvn+m+WIkea3ma5GAj3bGbTvCPZSEje2pllv+K3okLf BqEX9zQcU5wgxehR7SanQ+9qSlWS/L2yV85pBXukEr+UEI8t+qlRw7rl/Ca6wikFhy jyQDHeidd9UZM3zX4MAuNZ6kpbr50xViOv4nT/YmSpoI/OZwyw0CLYnBQyMvMaDptT U1gzOQSSM7mhK9iPY3bURdO/v/dVscm6j7xECJiuPmCW67wVgN2bbBSMGwNxFJTbkv pudVSMJ5BAkqQ== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SN81cawGgHhn; Fri, 25 Mar 2022 15:21:00 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 49FFA3F962D; Fri, 25 Mar 2022 15:21:00 -0400 (EDT) Date: Fri, 25 Mar 2022 15:21:00 -0400 (EDT) From: Mathieu Desnoyers To: lttng-dev@lists.lttng.org, diamon-discuss@lists.linuxfoundation.org, linux-trace-users@vger.kernel.org, linux-kernel Cc: lwn Message-ID: <298059821.194836.1648236060140.JavaMail.zimbra@efficios.com> Subject: [RELEASE] LTTng-UST 2.13.2 and 2.12.4 (Linux user-space tracer) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4203 (ZimbraWebClient - FF98 (Linux)/8.8.15_GA_4232) Thread-Index: /XuRM8m30UNxv1/uEfXFqpcCoOViXw== Thread-Topic: LTTng-UST 2.13.2 and 2.12.4 (Linux user-space tracer) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is a stable release announcement for the LTTng-UST project. LTTng-UST is a tracer for Linux user-space applications. The respective versions are 2.13.2 and 2.12.4. The most important change introduced in these releases is the implementation of a LTTng-UST Log4j 2.x log appender. Note that in the context of CVE-2021-45046 [2], LTTng-UST per-se is not affected because it does not use Log4j for its own logging, but rather implements a log appender (a log "sink"). Here are the noteworthy changes: In both 2.13.2 and 2.12.4: * Add a Log4j 2.x Java agent Before those releases, LTTng-UST only implemented a Log4j 1.x appender. Considering that Log4j 1.x has been unmaintained since 2015 [1], and that a range of Log4j 2.x versions are affected by the critical vulnerability CVE-2021-45046, allowing Log4j users which use LTTng-UST as a log appender to upgrade from Log4j 1.x to an up-to-date 2.x is very much relevant, thus explaining why this new feature is introduced in LTTng-UST stable releases. This adds a new agent to the LTTng-UST Java agents suite supporting the Log4j 2.x logging backend. This backport differs from the master branch for the '--enable-java-agent-all' option won't select this new agent since we wanted to avoid introducing a new dependency in existing configurations. The name of the new agent jar file is "lttng-ust-agent-log4j2.jar". It will be installed in the arch-agnostic "$prefix/share/java" path e.g: "/usr/share/java". It uses the same jni library "liblttng-ust-log4j-jni.so" as the Log4j 1.x agent. The agent was designed as a mostly drop-in replacement for applications upgrading from Log4j 1.x to 2.x. It requires no modification to the tracing configuration as it uses the same domain "-l / LOG4J" and the loglevels integer representations are converted to the Log4j 1.x values (excluding custom loglevels). * Fix: concurrent exec(2) file descriptor leak If exec(2) is executed by the application concurrently with LTTng-UST listener threads between the creation of a file descriptor with socket(2), recvmsg(2), or pipe(2) and call to fcntl(3) FD_CLOEXEC, those file descriptors will stay open after the exec, which is not intended. As a consequence, shared memory files for ring buffers can stay present on the file system for long-running traced processes. Rather than fcntl(2) FD_CLOEXEC to make sure the file descriptors are closed on exec immediately upon their creation. Noteworthy specifically in 2.13.2: * Fix: sample discarded events count before reserve Sampling the discarded events count in the buffer_end callback is done out of order, and may therefore include increments performed by following events (in following packets) if the thread doing the end-of-packet event write is preempted for a long time. Sampling the event discarded counts before reserving space for the last event in a packet, and keeping this as part of the private ring buffer context, should fix this race. This fix is only part of the 2.13 stable branch and not backported to 2.12 because the lib ring buffer code used to implement this fix did not exist in 2.12. Given that the impact of this bug is only imprecision of discarded event reporting in corner-case scenarios (small impact, rare occurrence), the complexity of implementing this fix in 2.12 is not justified. The effect of this issue is that the lttng-tools tests/regression/tools/streaming/test_high_throughput_limits test is flaky. Feedback is welcome! Thanks, Mathieu [1] https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces [2] https://www.cve.org/CVERecord?id=CVE-2021-45046 Project website: https://lttng.org Documentation: https://lttng.org/docs Download link: https://lttng.org/download -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com