Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp104804lqj; Thu, 11 Apr 2024 11:04:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJzSuENhtf5XyaBD+Wwf4dQl1LDBP51/r6i0ZesU/Rg+Fhz1Z5IANn1iARnVBEW+6ECXzkiYrxKsZxAV9bxL+1KJx0seteUp6cawrU4w== X-Google-Smtp-Source: AGHT+IGPv+g6GGDS0QlCbiRmlSsdfD8F7LnrHUK5qu97ZwAPJTjXoWxnr3YEC1QG3xQ67a4CeadX X-Received: by 2002:a17:906:f148:b0:a52:14b3:480c with SMTP id gw8-20020a170906f14800b00a5214b3480cmr302772ejb.76.1712858669417; Thu, 11 Apr 2024 11:04:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712858669; cv=pass; d=google.com; s=arc-20160816; b=Bb07qXvXNnLa2xAh5Ie88TyFEkbz5mSOpuIQ7Qf5do41WO2fsdbDkENtDo+/7/zBJ5 QRrubBZdhlasdj0Qmythr3aM33MaFKRYFX5d1S2sy+ywEuzYtrv3rmQBKS3dEkHP4+PS SS13Z2piwPbF+fxXO6uA5xWpXOmAZ8wkgD1hbMtcQxtcOpZsacCatlDO8OihPvntK2pQ YAAwk5hR02f+Wr/VIhaGKFRS+bIqZkm0bqrMfC7dnhoOIh30fA5z+pZdhRD4pV1yBZIe DdDGckkcdDFgK2jJxpv7pta7MeJAJLHJ22qDB+NjjDLrvmVcsLpnuKd9BXwqx/H9nxok BznA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=xrjovwBwNyyhxn3d/dhEWtzN0SpB5cyVTelk64Ywn1g=; fh=sxorC0j7DMlOzBbPy8wTgiTTHmeRULP/kNU/8DH2ZWg=; b=GkYNx0CUSG1/WxTDVoK0/Gvb71Fa6rHeduphwNNULJC7xb/UvtmI+c5897OAHPBLDI Smg8q/oEFJfsesPZzxsVXixq3E+iahHUplj8cvldpJSt9Vfc4DHQjyKBZ7V5Tcvu9Xtv lsSEBeO44gUBWXWiBeVEJx/0GtCaqAZxVLcL7zcNruC6mAkb6xJU4NZIxQS4epHNlaoJ 7yhLR3UYWCN5/M9BtuCzz/aQwiJ8u9ylLsa0kAE6oVoAbrD6acGu1rw65vybt8XCEKl2 L3aK0Do6cPf8aTkgZ8iu9hrA/sAuif0EaNLRBDmU9vQX2wEUYp6/ECn2jiXbDK04RLrG zsHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-141353-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141353-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 b23-20020a170906491700b00a51a9939c95si926166ejq.1010.2024.04.11.11.04.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 11:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141353-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 spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-141353-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141353-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 2875D1F241A7 for ; Thu, 11 Apr 2024 18:04:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 249D447F59; Thu, 11 Apr 2024 16:50:34 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EF6847A40; Thu, 11 Apr 2024 16:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712854233; cv=none; b=JqxAfIEPJAsSXTnSBLJdAMbtpHbI8DpPtSZWloIKrSFDScgdY5on+BVCbivnxdXX5BSCDymhC0iaxkyN9daDNsgFDJrwS1fOGfYOqvBhFiJ2XK2/ssPLsxbWcciOdGe3ONhSwKqkW7bDZdmKHHgJZpHuqwPWXtdXC/rUIIne01M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712854233; c=relaxed/simple; bh=nrMuPIFuCVO7sj/iecEjqXTHll+3KKDW+NZvU4wMcGU=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=UxdPmQkGQvL49U2vvzpqcv+nOgSLsaIzOb+5KFew2Mkd7HJOJwFHiOXTGr3L+12j/nlk6xdzxIsh4RR4/Pgq1ErQ8YriZ5SL6kSPh7mPos6X1H9q9fti87SLPHzchiBFDoyrmsPD/G3ii5TMDQQY26dnSJ94QeIzS988G2IRS5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (178.176.74.224) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Thu, 11 Apr 2024 19:50:25 +0300 Subject: Re: [PATCH net 3/4] net: ravb: Fix GbEth jumbo packet RX checksum handling To: Paul Barker , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Geert Uytterhoeven CC: , , References: <20240411114434.26186-1-paul.barker.ct@bp.renesas.com> <20240411114434.26186-4-paul.barker.ct@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Thu, 11 Apr 2024 19:50:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240411114434.26186-4-paul.barker.ct@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 04/11/2024 16:32:17 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 184677 [Apr 11 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.4 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 16 0.3.16 6e64c33514fcbd07e515710c86ba61de7f56194e X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: omp.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.74.224 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/11/2024 16:36:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 4/11/2024 10:51:00 AM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 4/11/24 2:44 PM, Paul Barker wrote: > Sending a 7kB ping packet to the RZ/G2L in Linux v6.9-rc2 causes the > following backtrace: > > WARNING: CPU: 0 PID: 0 at include/linux/skbuff.h:3127 skb_trim+0x30/0x38 > Modules linked in: > CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.9.0-rc1-00222-gde11614025b1 #3 > Hardware name: Renesas SMARC EVK based on r9a07g044l2 (DT) > pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) > pc : skb_trim+0x30/0x38 > lr : ravb_rx_csum_gbeth+0x40/0x90 > sp : ffff800080003d40 > x29: ffff800080003d40 x28: 0000000000000400 x27: ffff00000d0f0000 > x26: 0000000000000001 x25: ffff800080003e84 x24: 0000000000000e52 > x23: 0000000000000000 x22: ffff00000d0f0960 x21: 000000000000ffff > x20: 000000000000f6ff x19: ffff00000cf4cb00 x18: 0000000000000000 > x17: ffff7ffffdd4f000 x16: ffff800080000000 x15: e7e6e5e4e3e2e1e0 > x14: dfdedddcdbdad9d8 x13: 0000131211100f0e x12: 0d0c0b0a09080706 > x11: 0000000013121110 x10: 0000000000000000 x9 : 0000000000000001 > x8 : ffff800080003cf0 x7 : 0000000000000000 x6 : ffff00007faf4590 > x5 : 000000000010000b x4 : a1a8362deecb53ea x3 : 0000000000000080 > x2 : 00000000ffff0000 x1 : 000000000cf4ccfc x0 : ffff00000cf4cb00 > Call trace: > skb_trim+0x30/0x38 > ravb_rx_gbeth+0x56c/0x5cc > ravb_poll+0xa0/0x204 > __napi_poll+0x38/0x17c > net_rx_action+0x124/0x268 > __do_softirq+0x100/0x26c > ____do_softirq+0x10/0x1c > call_on_irq_stack+0x24/0x4c > do_softirq_own_stack+0x1c/0x2c > irq_exit_rcu+0xbc/0xd8 > el1_interrupt+0x38/0x68 > el1h_64_irq_handler+0x18/0x24 > el1h_64_irq+0x64/0x68 > default_idle_call+0x28/0x3c > do_idle+0x204/0x25c > cpu_startup_entry+0x38/0x3c > kernel_init+0x0/0x1d8 > start_kernel+0x504/0x5f0 > __primary_switched+0x80/0x88 > ---[ end trace 0000000000000000 ]--- > > This is caused by ravb_rx_gbeth() calling ravb_rx_csum_gbeth() with the > wrong skb for a packet which spans multiple descriptors. To fix this, > use the correct skb. > > Fixes: c2da9408579d ("ravb: Add Rx checksum offload support for GbEth") > Signed-off-by: Paul Barker Reviewed-by: Sergey Shtylyov [...] MBR, Sergey