Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp278300lqj; Wed, 10 Apr 2024 10:05:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpB+YhrZgvGCck0Xh+tZOL7W+qMER67AfuPTulEzWK48sP1EHXtH4zLeBKiH6EbV1/RbnOURA6g9XqcJptMcccrTkdooQGnB6b/0lq7Q== X-Google-Smtp-Source: AGHT+IHsMDUWHZtphH0K9Do01P+h3oizSSnRhX24bk5G+T3dGhi05LXQOa7xDkYxdvhis84sef66 X-Received: by 2002:a50:8ac6:0:b0:568:cdd8:cf60 with SMTP id k6-20020a508ac6000000b00568cdd8cf60mr2287806edk.8.1712768734209; Wed, 10 Apr 2024 10:05:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768734; cv=pass; d=google.com; s=arc-20160816; b=XkTyDo70gGBHQLS+oiVVLrPSs0BTpmgBXzRXH+OQrDs9RhxsCM0Z6IRo+QqCc5NZR6 SeCPo9HCbNyvbCb4d2kPHvAJJ/h60mkaKoCKmNWO6dCdMvsdOY7VGZ3y46YssjJXgImY gajfix5eaeHMQ0Awg9S2GcKar96gfC55AOmH49a1RCe000QWNvxZgVge3A48Wwbo2S43 JqRTWy+gW9mcxPoLEWJrKeMtno1rJ+PRj1F4/1EFFC1SRBnyVZ1aPWXRUVfBTcla1mhF u7KO7OhP4xeWQtfQ+nBXLgl6vjo383HMIZjiiTQE6dKuCEf5QxTCPTa6WbqZLwrvWd4x BiGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=3dWFnrI8er5bEPUZnNGiFpDtrHKrXDg3mGbVDgMJDyM=; fh=qtmBOGmDEKR8AjLzKiFG8GCIQJN4NRzv2Ivf5lQzTY8=; b=o/h4mNhd5cMxcdjs8iuKznyb6hS4CwMa1PsjePhxLdewARvi8iYaJafPwmodQJ5Hcu tOaDTPwtPwfr7VQnS4S7lS99EDXXuUxaUok/vVmwR5HfmJny79UCREJOnMGS0C2lHUCK FJq8/COH/2LFw8azjxv9EgJ/k34XOCVFkW1jqlNwpqE0iR6CcA3nSQdYfPcGmlFulSQc vz6T1SlFDBCOfor3jsjTFzqOuwIBIPyXG1jmOq2Wj690nTaZv9U08nNBPxRhxU9uFdH2 jb86zuW6BIdb21YRnFmJOsuoGew3aAK+Fh/wlHAPEVnWTv2XVFf5DpruFt2NMBKpXg8F MLVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-139036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139036-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x3-20020a50d603000000b0056e44eb06eesi4893012edi.159.2024.04.10.10.05.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-139036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139036-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id E7ED21F21D2F for ; Wed, 10 Apr 2024 17:05:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D15E717BB26; Wed, 10 Apr 2024 17:05:05 +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 42C0317B4EB; Wed, 10 Apr 2024 17:05:05 +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=1712768705; cv=none; b=VVUk9d2Zbv6EAwpVFmh27MZDULNs9dXyGgini1zVdO27l9qJjk/6v+5U6BIg+sDhUM1SPucZpwUSdoW7/3kVxBupcnvB2GEOQxpGGMblcmw0nr0k+LK5N+d/JU04CrX8zTS3VjTQyLP3bNrDDppGiFVj4mvE+Ho4mpxGpk1QFAs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768705; c=relaxed/simple; bh=uRbYkqygWX+qn1hlquG6FXFaBwSgfF2EWdt5hJTpGgI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=P0zQNQ3bDwlz9fRejo6lpggXrcWL6XEgNr9msXVBCYQRZHj8Egtx/Ow577Ykl73a0yVI/8ME4YWnygHAQTiTskpxCWur+lXpfg9D11CY0pDqK6Q+5jtc9w2hEO6fOVxTSTb+pbjz+0zLXVSBr+OsW6Lvh7KmUc5n4xAIQIJ29wk= 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 29294C433C7; Wed, 10 Apr 2024 17:05:04 +0000 (UTC) Date: Wed, 10 Apr 2024 13:07:41 -0400 From: Steven Rostedt To: Chuck Lever Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mathieu Desnoyers , Jeff Layton , Anna Schumaker , linux-nfs@vger.kernel.org Subject: Re: [PATCH] SUNRPC: Fix rpcgss_context trace event acceptor field Message-ID: <20240410130741.40ebeda4@gandalf.local.home> In-Reply-To: References: <20240410123813.2b109227@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 10 Apr 2024 12:38:53 -0400 Chuck Lever wrote: > On Wed, Apr 10, 2024 at 12:38:13PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > The rpcgss_context trace event acceptor field is a dynamically sized > > string that records the "data" parameter. But this parameter is also > > dependent on the "len" field to determine the size of the data. > > > > It needs to use __string_len() helper macro where the length can be passed > > in. It also incorrectly uses strncpy() to save it instead of > > __assign_str(). As these macros can change, it is not wise to open code > > them in trace events. > > > > As of commit c759e609030c ("tracing: Remove __assign_str_len()"), > > __assign_str() can be used for both __string() and __string_len() fields. > > Before that commit, __assign_str_len() is required to be used. This needs > > to be noted for backporting. (In actuality, commit c1fa617caeb0 ("tracing: > > Rework __assign_str() and __string() to not duplicate getting the string") > > is the commit that makes __string_str_len() obsolete). > > > > Cc: stable@vger.kernel.org > > Fixes: 0c77668ddb4e7 ("SUNRPC: Introduce trace points in rpc_auth_gss.ko") > > Signed-off-by: Steven Rostedt (Google) > > Acked-by: Chuck Lever > Thanks, but feel free to take it if you want. Unless you rather have me take it through my tree? -- Steve