Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp854909imw; Thu, 14 Jul 2022 12:06:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1utIACA73GY3nxh0kzm2ESFqP8PrR9r4FMnIHQgVqauu2eeiar20B2dgCBTyLxgAAAuQ7kh X-Received: by 2002:aa7:dcd5:0:b0:43a:70f7:8e4d with SMTP id w21-20020aa7dcd5000000b0043a70f78e4dmr13910363edu.85.1657825560890; Thu, 14 Jul 2022 12:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657825560; cv=none; d=google.com; s=arc-20160816; b=jR8HmcZDzAiTcQRgBphR40ldIlWyogzb/rRoi/vVeJn0jOIGVeuxeQ6zHi+qbkqAoL CXCoOk0AVDI8TeAl3jSgy370hn1CUNTl6zWZOAUjMoWTIU8GG7tTglmy8HsUB0J1IZH9 bEjBfI5libIg/M83+YLX7GNnpVs/Q/KLOkYY5KvpK1xBXhejhHIod4hn56vRxpO9bq8Q Zlq1sDBTqmya6UTKKI2/TdBumlbn7qaRFKEgeS9cNLrjTuVKMPAfxVG31jyFS1QVNEah 9lSIRWpPU2m+d4y3fAQsuPYYFfO9PB/WMNPKDkOQgplAjBNmiEohlKRUZDcyKOcUnK9a 6IyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature; bh=cfh5Vbt0d0CpHZj8hmg30dluCeWXm83Q5tUEhlXXfjA=; b=Dwtvo4NwuqQyNZUGiT9iK5jWpEnCmta8niExdREzUlnl/W+kgrgMCXxCZ/TjPEu1dc ztx9L6seTiJbaE0cJQRmE44LbqWZ6Ge6dvpb5UFP4bolmAlZPwI9pLmb+RKH65vsxLVO euz8Dx2cg6Dn5bl7ztGPWvG03iSd0+I/1krmxz1sxbLV4eAOfWR2v+I/lSpUyuSuLz2W 7fLxzu+Ir+IYNl1nzaQVxOjhHdLgPvyfXY/n4xN9mNLJ7DGofu0rb43YLa+bQvXxEaVp DmUOV25eeq3E83YR/xHo+feoqqFQ+I53WAqFy0CPnTX6uHOlhw/2I/XtXLI4IjbB0UV5 ZXkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=NIsJT87T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a17090606d500b0072b978aed19si2781727ejb.375.2022.07.14.12.05.36; Thu, 14 Jul 2022 12:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=NIsJT87T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240211AbiGNSks (ORCPT + 99 others); Thu, 14 Jul 2022 14:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232538AbiGNSkr (ORCPT ); Thu, 14 Jul 2022 14:40:47 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C7D357E15; Thu, 14 Jul 2022 11:40:47 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9667F320091E; Thu, 14 Jul 2022 14:40:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 14 Jul 2022 14:40:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657824045; x=1657910445; bh=cfh5Vbt0d0CpHZj8hmg30dluCeWX m83Q5tUEhlXXfjA=; b=NIsJT87TzT6dcAX1hLo/v8joJpm9ycU1GQ7wSl/SPX2F m5PZVjpsK/l6hwc8KWiD2K5G9lnyau33Q8LGi5WPsrKgzVfz6QdLZQEbtnT9fNmY zkE6iIGyWJFIbz7qFOh+znWQ8pamekNw/c30wCISsEuhJMG4BGIL8XpwSCuD6lwj lZpQD1+s0QwaWHZJeBWCBiHkCaq/5k8Mt3n8xUfsIPFtxQ1nF8pZBUDsM2S/odt9 +1PSDSLS9Vz7YCf0e2e+gbMM1dVcPxSez4FnGzysk6Kn/dfll5IV/R7T1mYj5B/a VhLzO9jZtlCgt/gZgY/kzAZGmzprpPrGaNb9LE6hVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejledgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkugho ucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrg htthgvrhhnpeehhfdtjedviefffeduuddvffegteeiieeguefgudffvdfftdefheeijedt hfejkeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhr gh X-ME-Proxy: Feedback-ID: i494840e7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Jul 2022 14:40:43 -0400 (EDT) Date: Thu, 14 Jul 2022 21:40:40 +0300 From: Ido Schimmel To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Leon Romanovsky , Jiri Pirko , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, Jakub Kicinski Subject: Re: [for-next][PATCH 03/23] tracing: devlink: Use static array for string in devlink_trap_report even Message-ID: References: <20220714164256.403842845@goodmis.org> <20220714164328.461963902@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220714164328.461963902@goodmis.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Jul 14, 2022 at 12:42:59PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The trace event devlink_trap_report uses the __dynamic_array() macro to > determine the size of the input_dev_name field. This is because it needs > to test the dev field for NULL, and will use "NULL" if it is. But it also > has the size of the dynamic array as a fixed IFNAMSIZ bytes. This defeats > the purpose of the dynamic array, as this will reserve that amount of > bytes on the ring buffer, and to make matters worse, it will even save > that size in the event as the event expects it to be dynamic (for which it > is not). > > Since IFNAMSIZ is just 16 bytes, just make it a static array and this will > remove the meta data from the event that records the size. > > Link: https://lkml.kernel.org/r/20220712185820.002d9fb5@gandalf.local.home > > Cc: Leon Romanovsky > Cc: Jiri Pirko > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Paolo Abeni > Cc: netdev@vger.kernel.org > Acked-by: Jakub Kicinski > Signed-off-by: Steven Rostedt (Google) On the off chance that my tags weren't omitted on purpose: Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel s/even/event/ in subject