From patchwork Thu Feb 15 21:39:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 20459 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp137353dyb; Thu, 15 Feb 2024 13:38:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEaU9+K5VmAwRzJj9MrHntS7Rhd/Fe1a/NXYY3R9lcGfvnvslBKPk76fmP+p61XrVNCaSZPxJcco1WZ8pn2Hu12ZX45A== X-Google-Smtp-Source: AGHT+IF/HbehEfZiIj4Uj4kaihurASHBv+HEpcQUSdI41p0RgGUcd8j3stUzN5v65ZMLb2CAlrDg X-Received: by 2002:a05:6a20:c78d:b0:19c:7560:e7d6 with SMTP id hk13-20020a056a20c78d00b0019c7560e7d6mr4211689pzb.1.1708033136420; Thu, 15 Feb 2024 13:38:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708033136; cv=pass; d=google.com; s=arc-20160816; b=h93eeCY7tNC9I5aRCcT61Rpc5snLYLGcd/0zrj3yiXVoQ/KsZkLpfCpHGJ6VeDtdck PNOALV/W1tJU+HAXvuNQ0ujlIUIcb65LZH6eaVxABjAs3eeRb7q4rwAiiPLDj/xyjK+a UtTh8J+S2Is1YI8nYAhiGBaKWDJGPzwhe0pZsxQElgyrU9yxmrE5qF1+oyvvUEH2wD2M GiufdfBriFkuKK05SpXHQzaON1oVloFw7q1qcrJEgq3XZvcXAwRVMBnPnuvpf/TzN3OD m9iRCbJTeaKonU/lQk1QHe05L6EtCevn/vmBluSYmYFHwclyOs4gMybWNB4r6T1Cz45j Npkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :from:date:user-agent:message-id; bh=YuPiX8k2vlGYJfxkDeoqVskB6ilwCIERvUfwqGah2jM=; fh=mTYg3JJ8i2GBNLFt8qb4bgYwOyk0kmrOzICLbi6qJ1c=; b=r15T1IXcS4So29Xht5IrOI1WT5vRZLJBS0fDuaEcq9+sXUd2gkxG5cWrgcj6Z++NOm rI9ybPSPt9+l9tY2H+3w3zM+/RKmOkeVY3sV1Qf+oxZadTf9J9fzZorBDC4T5jkWGR8M vXFL7RbKZNqfwrBODApAONKIFkurP3sDDXLGLNlIEf2nSDr1tf5XtsdMbcPTwKPKWsSS RALcXFJQ8UgMM1FRjtrxQw9F5H7A8tzLVgQE/xwe/vsSp39D1Hs0B+RQZc1HfTAhjL/Y 56MJX/FnPPdo48qUqmhCeXFEckK40+S6S5LviG/nH/gR00G+fNs24vPQicb2EbxdCaS7 MqQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67703-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67703-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n26-20020a63721a000000b005ce7efd2eb5si1679547pgc.266.2024.02.15.13.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:38:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67703-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67703-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67703-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3DBB5286F6F for ; Thu, 15 Feb 2024 21:38:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8856145B09; Thu, 15 Feb 2024 21:38:11 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42D4913B7A7 for ; Thu, 15 Feb 2024 21:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033090; cv=none; b=fbm+bvW+VRr5BKNkxhRSpc4OM+78E6ExOKDVKBXE8ODj/xYXFQLyU3O425sCqEXIj8mUZz4lQvyLkn0C9n5yPOn1IoR03pb8fY9UMQ9AGv0tHSI1umR5K6r3q/qUuhUhEK780w++HiYCzHy8AdCKFP7apVQnw1GEW6NO1rGdDJY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033090; c=relaxed/simple; bh=Lu+zE6BZH2MGtMtz/F2jcDo3QUDZOZuxm34lAIQAMHI=; h=Message-ID:Date:From:To:Cc:Subject; b=E+1wB4Hvrfa9Zmy8b4LAWQ2AoVlpjVYzb1mGEaStzLlidoE+KWVJhCOmZGzHJHo0DjMlVjdDl7Kqxx6/kXOsCRKD9WP1IQfqvYGHQVdKzxikNAcbeEhbyjpS588Vs14Te+5/lFp2gZosSAr2I96sPCntQa2Df8spV79+6Oxqe1k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BABCCC433F1; Thu, 15 Feb 2024 21:38:09 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rajSK-00000000ed2-21Gv; Thu, 15 Feb 2024 16:39:44 -0500 Message-ID: <20240215213916.385127578@goodmis.org> User-Agent: quilt/0.67 Date: Thu, 15 Feb 2024 16:39:16 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-linus][PATCH 0/4] tracing: More fixes for v6.8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791002554019308010 X-GMAIL-MSGID: 1791002554019308010 More fixes for 6.8 - Fix a false positive kmemleak on saved cmdlines Now that the saved_cmdlines structure is allocated via alloc_page() and not via kmalloc() it has become invisible to kmemleak. The allocation done to one of its pointers was flagged as a dangling allocation leak. Make kmemleak aware of this allocation and free. - Fix synthetic event dynamic strings. A update that cleaned up the synthetic event code removed the return value of trace_string(), and had it return zero instead of the length, causing dynamic strings in the synthetic event to always have zero size. - Clean up documentation and header files for seq_buf git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace/urgent Head SHA1: 6efe4d18796934b8ada66c1c446510e7f2d9b972 Andy Shevchenko (2): seq_buf: Don't use "proxy" headers seq_buf: Fix kernel documentation Steven Rostedt (Google) (1): tracing: Inform kmemleak of saved_cmdlines allocation Thorsten Blum (1): tracing/synthetic: Fix trace_string() return value ---- include/linux/seq_buf.h | 17 ++++++++------ kernel/trace/trace.c | 3 +++ kernel/trace/trace_events_synth.c | 3 ++- lib/seq_buf.c | 49 ++++++++++++++++++++++++--------------- 4 files changed, 45 insertions(+), 27 deletions(-)