Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp45958pxb; Fri, 14 Jan 2022 00:19:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz46/yree5WAwa6SwCfrSClobtHUvSGjv1GOVCXV0hshZADvaT2Ryg7zWcvplbqIOujJvFH X-Received: by 2002:a17:902:710f:b0:149:c39d:d1b7 with SMTP id a15-20020a170902710f00b00149c39dd1b7mr8648918pll.132.1642148363545; Fri, 14 Jan 2022 00:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642148363; cv=none; d=google.com; s=arc-20160816; b=xV1+sd/STSwFxXhxTOL1nCqQSLDGPLix1FpyUb29IA28u79U6KICWK3A0MzIaPvIZS GdqkEspwFJjgieUHbtLYbSEFCSK67Ax/NL5XflrWSGTrlc2Vu8gvz8Booap0CNufRenh 2stSpqwdMuRQzeZldti/1jGjSeEHY2Zb+tCDtHUoRs42DfbFz5723oJMr21xr8+VQjT6 byxizz9wx/Cz1xjMbTXiAuvpFVtau+wdi+A+IWjomEckLGmqOkC9wrzN0yWaNt7tKs6H naz9ViyyB6oGZiSBIZKaCXzsAo3xeuWMnGau82qRadLN65+KlnYnZnkee0xmTtxJLV+E K7Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=rPJWr6cb42BQx4OyAGEBkVhIKv/PvzrBY7aOUT/bT0U=; b=H0aVBMugruLjczgbUtPDFFG5ohzNnL1kUAMCpBBwfARtSFrVlpS+V0A4OPNlUG+OIo 6+yciO02d3vKhCNFKTgMEly9ip4GqH5eKLrbejhlTA+iZuwaYusgwcLOzxvdoib9nnW0 BpV52lduFHETsm+YHK7HLoYh9ffRYF6m3k0JVwX7KWycYtDKJTdhLZrqQUUGqWuKzrkM uSVxS97BUluATxHF7kwVikEI3jE/U8RVt6RXTUQzq5Dypp4XJdrgiHjo2u9ARzivLuIh I9YN64SW1DQznMts9INArmWDSDv9Wdfe+cYPT+2q1CMP8zD6Mzrm6iMDUUZIDphsyb+6 KNHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si5120868pla.182.2022.01.14.00.18.45; Fri, 14 Jan 2022 00:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232856AbiAMRYF (ORCPT + 99 others); Thu, 13 Jan 2022 12:24:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbiAMRYF (ORCPT ); Thu, 13 Jan 2022 12:24:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD97C061574; Thu, 13 Jan 2022 09:24:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2CED661913; Thu, 13 Jan 2022 17:24:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D8B5C36AEB; Thu, 13 Jan 2022 17:24:04 +0000 (UTC) Date: Thu, 13 Jan 2022 12:24:02 -0500 From: Steven Rostedt To: Chuck Lever Cc: linux-trace-devel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH RFC 1/2] trace: Introduce helpers to safely handle dynamic-sized sockaddrs Message-ID: <20220113122402.74f73553@gandalf.local.home> In-Reply-To: <164192756765.1149.13872546013201834510.stgit@klimt.1015granger.net> References: <164192738510.1149.7614903005271825552.stgit@klimt.1015granger.net> <164192756765.1149.13872546013201834510.stgit@klimt.1015granger.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, 11 Jan 2022 13:59:27 -0500 Chuck Lever wrote: > Enable a struct sockaddr to be stored in a trace record as a > dynamically-sized field. The common cases are AF_INET and AF_INET6 > which are different sizes, and are vastly smaller than a struct > sockaddr_storage. > > These are safer because, when used properly, the size of the > sockaddr destination field in each trace record is now guaranteed > to be the same as the source address that is being copied into it. > > Link: https://lore.kernel.org/all/164182978641.8391.8277203495236105391.stgit@bazille.1015granger.net/ > Signed-off-by: Chuck Lever > --- This looks fine to me. The only comment I have is that the subject should be "tracing: ..." not "trace: ..." as "tracing" is what we use for the tracing subsystem. I'll test this out if I get time. -- Steve