From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16A5A4908DA for ; Tue, 1 Sep 2026 17:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788285557; cv=none; b=D3EEUyVP1V+rjACUkgLX3QRcLVkRs+otcjUY2Spzbq1CWOcWEQB4AY2AdZl1HskIGLxwTTI3ntXsnB1JHARpGHceDjx6s/R+YgsRJ2YX4f/aruUyHp++Cq5U5WsmwC2STz0aEzPgM/B7qj5s11TFb9q0Oa9PJpMespPneA0OtOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788285557; c=relaxed/simple; bh=upOZfp7nr+JUKjA+9XgwYeougAECpv2MBCBLML5bTbA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SvI5efRbnmsCPHxjIAJU00fcBJXyH21UkIUa4RSmG9skTpY8knrz1KhKYkncbzOJlEKMQC3U/+pynvFhCuek/RV9Py5fprkltJHD9Kpygp6RP3BLcXocZWzQG3y4+qyJIlORe8La7s+tvAP6gCYTMprNYQSkA3XBt8ur/UJSVV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to; spf=none smtp.mailfrom=dama.to; dkim=pass (2048-bit key) header.d=dama-to.20251104.gappssmtp.com header.i=@dama-to.20251104.gappssmtp.com header.b=megAzG5+; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dama-to.20251104.gappssmtp.com header.i=@dama-to.20251104.gappssmtp.com header.b="megAzG5+" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2d9db539a54so831095ad.0 for ; Tue, 01 Sep 2026 10:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dama-to.20251104.gappssmtp.com; s=20251104; t=1788285555; x=1788890355; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:mail-followup-to:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=iQGQ/jT41D7XhkwOcvrUM6Q+rqlIuyJ98icVtqutpDY=; b=megAzG5+XJ3TWhRtqpQVVLrsWuMF6Hgo6qrrNkCiZzt5Z3dI40Cds0QAMZtoE9SKTM JKtu5rsBifMmMvWFB5CkGbO6vcf4cb6Lu5aKpQQzm/iobNI3rN/EVfMNQVhVtTL4TfNw pDr7ICtcdlzQrjNfXa/qMu+jS0F+VyxoeEpoqIs85SmaBAwEHiHv5zKbEiBl/PH1lhFW /DHkOwiu2065z4fH7nnYYgQKAlnZMsGFKfobpKS3gYeu5xSVLfiWkW33KcQUKE6jwscV GfkNZHBvcUwmg4UQzCXsJli5AY4FnqBmtkbVsQGd6E/02xbQCGnVrSBfr+Zka8ssTpag AXnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788285555; x=1788890355; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:mail-followup-to:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=iQGQ/jT41D7XhkwOcvrUM6Q+rqlIuyJ98icVtqutpDY=; b=b2vQf++muRvWvM/L/SXvz5zH9M36fJ6qT6nnz3OfYhr+safM2BhO+j3Y74ENHqzBqL LhANMFPsK+WuPmvX5vX6tW3qVjEja1lGVw/+OF1Q6DzwgRASxY6LCAL/NkXfaOhCyl41 XiLLO1c3wJzpxZpJNOWCVG5qfxSme0R10kU9p2GJT5wV632rTioERpsrwOKS7iD+g7AB oio+fWcbmYglrp04A9L8rTBVkKJbhEDFdXC5IZJ+cP8Wn/S51ec2eN/kq0uBxJg1xn+y dM0ljJVSTjO3AUTCkoGfdnQ24uNXbaqXU3XRaqwhbE/dnc4VbfGXZEzywMYJu5FFK9JG NSSQ== X-Gm-Message-State: AFuF++lA4csuYN4wWeybIs9JQUJ73xPxIUZMG4PbFBiuNofPimBDjFNx 2dAez89FzscHJLuLPBqUCg/O67NM00JsreWxpV7oYZaXAe0oNASDsLub7Cir7JcTgG0= X-Gm-Gg: AYBFou1PUTt47/Hs3PpiwWfhfkQVgDUPQhYclvFoKSXBsMFZsFsOYeVVBhYqPpwDt/y m4m5FK9ewIGRAE2zYBLB31yJ5Z3ZYjkbmulHHCP+Xm7HHdhMo3BiDlL+3BSmo0Voyxx90RQo+Cq TT9iOj+YCvb0twkOtN8RzdsyO4gUlyBloKWa698tKIPb2wg1mSNeeh1n1rvMSnE7EFkvx5ISmJS L3/nxIIpraAO9c+eRstOnfAXCgk+137U7ZrF87H0reIvpI2SnTSlgxhF1DWs0GrqGyff/4vHoHN p+h58GNYT/JDJE6f7Mo7SnR7+dDnMbCS7I9EJVowX2QsHlu8mBFz9Ca9e0S8fxBOmAhqKeGtssb Rv5PQ/lW6AiXG8g+wxrn23YjA26JQd9tVVGnYzy0/DuvFHq07PKmg45GYDSTYgGPsu+PaNS/MKS h55Awtn5eSs1eD4oE5NCT5MBWuyYPRD0diDKzfhTRFkg== X-Received: by 2002:a17:90b:39a3:b0:38e:bbf1:de3f with SMTP id 98e67ed59e1d1-39907d659e6mr14262544a91.12.1788285555109; Tue, 01 Sep 2026 10:59:15 -0700 (PDT) Received: from localhost ([2a03:2880:2ff:71::]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39ae3c1d85bsm768983a91.13.2026.09.01.10.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 10:59:14 -0700 (PDT) Date: Tue, 1 Sep 2026 10:59:13 -0700 From: Joe Damato To: Michael Chan Cc: netdev@vger.kernel.org, Pavan Chebbi , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Kalesh AP , Rukhsana Ansari , horms@kernel.org, colin.winegarden@broadcom.com, linux-kernel@vger.kernel.org, raphaelcf@meta.com, stable@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH net v4] bnxt_en: Bound SW TPA IDs to prevent crashes Message-ID: Mail-Followup-To: Joe Damato , Michael Chan , netdev@vger.kernel.org, Pavan Chebbi , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Kalesh AP , Rukhsana Ansari , horms@kernel.org, colin.winegarden@broadcom.com, linux-kernel@vger.kernel.org, raphaelcf@meta.com, stable@vger.kernel.org, llvm@lists.linux.dev References: <20260828190900.1767611-1-joe@dama.to> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Aug 29, 2026 at 12:20:26AM -0700, Michael Chan wrote: > On Fri, Aug 28, 2026 at 12:09 PM Joe Damato wrote: > > v4: > > - Moved bp->max_tpa_roundup_size init out of the early return path and > > documented that TPA is unsupported there, as suggested by Michael. > > > Thanks. > Reviewed-by: Michael Chan idk what you wanna do modulo paolo's comment on this thread. i have a v5 locally that expands this to 5 patches which should address most of what sashiko is upset about: bnxt_en: Bound SW TPA IDs to prevent crashes bnxt_en: Handle buffer allocation failure in bnxt_rx_ring_reset() bnxt_en: Propagate TPA buffer allocation failures in bnxt_queue_mem_alloc() bnxt_en: Don't free the live ring's TPA state on queue restart failure bnxt_en: Only restore LRO if the device supports TPA but ofc, who knows what other stuff sashiko is gonna find if i submit this and how much furhter we'll push out fixing the original crash. lmk if you wanna stick with the v4 you reviewed as-is (and i'll send the other 4 patches as a series) or if you'd rather i submit the above 5 as the v5 and get them all in at once ?