From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 45B0B490BFA for ; Tue, 1 Sep 2026 17:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788285557; cv=none; b=de/PPreUTM5fkTKm7y5EhUA5MG+qAguMuYDIw+7CDp896sP/C584ehXIHWoaV15ua5IMZhJWdAJN9o/jnQyypFFCW1i/OefeshJ8i27GiwegnoKKW8BVOukaBqfMIDnEVTVwrmD6bM5KN3jCGvCsAwO5BnllIHg3RSefOZ+S364= 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.216.50 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-pj1-f50.google.com with SMTP id 98e67ed59e1d1-38e041ea211so134111a91.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=dd/+3JLZr+xzQibaioKi8S81mEtngSmHvxwAfF+UMuG+ecsTRXV1exuybAfSfYVKN5 vNJvUQoaQjkv4gHvcRADGOxlmhNspi8Wl/lORg/NmAhSmebYBIEgn85Gk3j9pTVspfP5 PXgLB80k8xom8+TjbiesbaJJWvKoCViImP/WDSchbDc+xXXVPRNgGwm+c9rz3D0WIAqa PFOemgHAz/XlnhFOBZcOTtdmLE0telp0bAqwNKw0Ko0QrVhd5DFTsXb7jpGW239RwjwE r7RS/MFUwqz2gGbQhx0mEsjsq0Ty1SdvWsMFICK8bnDskQLckLY8jE57ZCX43n74+Dvt kBzg== X-Forwarded-Encrypted: i=1; AKwUvBzw0LnYx8GQsfqg5sqg2QcHpaneHp+su6OESh1kmqWbugsSbRR0r7ix9QH2LT44nvtrpNwvDqBNd7LqfRQ=@vger.kernel.org X-Gm-Message-State: AFuF++kXlEoKOKMP/SqsJaTDkmQDwG9sCm1DOFWrr+Ur5U6XSOfg40p3 0ayVmMsVDgCmoySlU8QE4resM6s69Pq6NL6B13BV9MyCsQCZ/yViP3cMfA9+qug8RPI= X-Gm-Gg: AYBFou1q3txolezCn2eAD5PpnBL3bpKeUkYu/HwED04eyIRJkRwDMi+zfbwGOVGJ1SZ voi33Nhhyy8pmjYnoA5ZHRoZlXenL/IgYWay/iB51L3bNXAKPwIvEJhkzdqPmmAo+e3jGdX5JvO Rb8EltOyjuB27dzNMZ+4jBdFjsEfQzDvbf2AG7YvzYPui6PCejvuWWOmqXgfd5dfna128r1ooCX bqTZYk7q+8jxyYuicI5YUiX7cuy9qRstAXHLZHUYcGSRqN72QYEgfevIEn4dwNKKwm3uYi5XEx9 hl8odFu/7Z6hSzdv+2VkiC+Wwyl2881o95WRpOqPtLK9DHsgIVD7ySQDjMbm+ECO/yih15UuQOm W+7jodzQ3xxheAR7Uxf0JePWvdZQREjNGN14B25qmsYW4IIPtgkxv9xMXKAInWG8aNz+VPSq5zM flDMl5ptWngYWiZQNdF88CUQmST2RhaPOG7HHQWnHtKw== 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: linux-kernel@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 ?