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 E3982C43334 for ; Thu, 7 Jul 2022 02:11:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234813AbiGGCLp (ORCPT ); Wed, 6 Jul 2022 22:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234769AbiGGCLp (ORCPT ); Wed, 6 Jul 2022 22:11:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6025D2F010; Wed, 6 Jul 2022 19:11:44 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 1EFA0B81E36; Thu, 7 Jul 2022 02:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 574AAC3411C; Thu, 7 Jul 2022 02:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657159901; bh=kOCETT7X+Ot81gE2Ux5v0OFAHfBAM381Dzl449jbMrM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EV2Qt+b4Y+DEdvTQu0uKzI42xaldieHgJAHDucPttkkV9oZqguyEM4Yvtm0+FmZXH MGWKFNcWsncSPv2pwrVHxGJitqnZ5NSdCE0UUwkfbgxtamccHws/71UqSlU358Ktf1 hS/eWLuzDj1Qyt4VoPiqde4QUoHhEJkab7xZHw/YclOjBYxv3wx/oR8nlgH7Q9gOjp IeBcwwFssTlB0aqACdVLvie/+UP9kzp8s7CgxgknWq5A4cj+uROPwLOZzopir2eceP Di2+ift2M2dlD7V5Dtt/TAkIjqJu4LmmVReCPhz1+19TWZaWr/VPWTpR6f0kX1SXsT IiY/vVaDUCGiw== Date: Wed, 6 Jul 2022 19:11:40 -0700 From: Jakub Kicinski To: Jon Hunter Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Paolo Abeni , , , Subject: Re: [PATCH] net: stmmac: dwc-qos: Disable split header for Tegra194 Message-ID: <20220706191140.5a0f4337@kernel.org> In-Reply-To: <20220706083913.13750-1-jonathanh@nvidia.com> References: <20220706083913.13750-1-jonathanh@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 6 Jul 2022 09:39:13 +0100 Jon Hunter wrote: > There is a long-standing issue with the Synopsys DWC Ethernet driver > for Tegra194 where random system crashes have been observed [0]. The > problem occurs when the split header feature is enabled in the stmmac > driver. In the bad case, a larger than expected buffer length is > received and causes the calculation of the total buffer length to > overflow. This results in a very large buffer length that causes the > kernel to crash. Why this larger buffer length is received is not clear, > however, the feedback from the NVIDIA design team is that the split > header feature is not supported for Tegra194. Therefore, disable split > header support for Tegra194 to prevent these random crashes from > occurring. > > [0] https://lore.kernel.org/linux-tegra/b0b17697-f23e-8fa5-3757-604a86f3a095@nvidia.com/ > > Signed-off-by: Jon Hunter Fixes: 67afd6d1cfdf ("net: stmmac: Add Split Header support and enable it in XGMAC cores") correct?