From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8234FC61D85 for ; Tue, 21 Nov 2023 20:36:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbjKUUgd (ORCPT ); Tue, 21 Nov 2023 15:36:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjKUUga (ORCPT ); Tue, 21 Nov 2023 15:36:30 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B50D1A2; Tue, 21 Nov 2023 12:36:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=n8r2YqwbMhKNr3zlZBjNkqkvBYIoxIi/cLEUD7ZrfpY=; b=Je 820PRYE5x9xa1o3S3OwSouTO6IrOYeBsmC0/5QgogyteWoaB2iBC72/UoneRMqEXqhc17vPoMXuIw YJ3kqZUd6rBSL//QQ1Xxgq3l8+rRYhnaOdYeZ7ToVSUvjEEckN9WU5Tqy/jfg4GZb87Ymz5Z1n8m3 heOg3FKx2mS3r+8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5XTh-000nIi-Ha; Tue, 21 Nov 2023 21:36:13 +0100 Date: Tue, 21 Nov 2023 21:36:13 +0100 From: Andrew Lunn To: Ray Zhang Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: stmmac: fix out-of-bounds read via memcpy detected by KASAN Message-ID: References: <20231121184543.3433940-1-sgzhang@google.com> <84be10f3-0880-4ccd-b6d3-b5feecea75ef@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >      q0_tx_irq_n: 4 > >      q0_rx_pkt_n: 64 > >      q0_rx_irq_n: 58 > > What useful information does this list of statistics bring in the > commit message? > > Each output line of "ethtool -S" is from the modified code: It shows the > command still yields normal output results as expected. Does it? Can you actually say that looking at it? > No, since strscpy does the job already. Also I could not find ethtool_puts: > where is it defined? Or do you mean ethtool_put_stat, which is inappropriate to > use here since it requires a skb parameter? https://patchwork.kernel.org/project/netdevbpf/patch/20231102-ethtool_puts_impl-v4-3-14e1e9278496@google.com/ Maybe check with Justin when we will resend that patch. Andrew