Article View: linux.kernel.netdev
Article #17329Re: [PATCH net] net: qed: fix dead NULL check on the MPA buffer list
From: Ziheng Wei
Date: Mon, 16 Nov 2026 16:31
Date: Mon, 16 Nov 2026 16:31
26 lines
9617 bytes
9617 bytes
On Mon, 16 Nov 2026 16:21:12 +0000, netdev-bot+sashiko@kernel.org wrote: > rx_num_desc sizes both pools. Doesn't that make the "No free mpa buf" > path unreachable, whatever the traffic or the value of rx_num_desc? Yes, I agree. Every mpa_buf held on the pending list still owns an RX buffer that has not been reposted, so a new completion can never find mpa_buf_list empty. The "depends on traffic" sentence in the changelog is wrong, and the only evidence was a test module that empties the list by hand. > If that path ever ran, it would repost the RX buffer and drop a TCP > segment that firmware already sent to the unaligned MPA path. Agreed as well, so making the error path reachable is not even an obviously better behaviour than the current code. > Is this an accurate description of fbb8bc408027? No, it only touched qed_ooo.c. Sorry for the inaccurate description. Please drop this patch. The Fixes: and stable tags do not fit, and I don't think a hardening-only respin is worth it for an unreachable path. pw-bot: cr
Technical Details
Message-ID:
<20261116163124.1684517-1-zihengw03@163.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364554-linux-kernel-netdev=dewy.ruReferences:
<20261115161815.941090-1-zihengw03@163.com> <179484607270.3136.35330548202236483@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364554-linux-kernel-netdev=dewy.ru From: zihengw03@163.com (Ziheng Wei) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: qed: fix dead NULL check on the MPA buffer list Date: Tue, 17 Nov 2026 00:31:24 +0800 Organization: Usenet Network Message-ID: <20261116163124.1684517-1-zihengw03@163.com> References: <20261115161815.941090-1-zihengw03@163.com> <179484607270.3136.35330548202236483@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2111370"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3DJ0Zq67ZoORCEW7+8vbXrYyPzc= sha256:qCvbg6kaonVZh199Covbz09SDJDLZBOCSEpOnDFDv40= sha1:TVrOGG6Ppd0lc7vLr0+rCQRo7Sg= sha256:ZyT7dhhazIN23MTc6gFTXA8moE4QfIJtrvbedR5Ng9c= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id CAB0D114CE2; Mon, 16 Nov 2026 19:32:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.048 X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=163.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tYKIe7thHQWd; Mon, 16 Nov 2026 19:32:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-364554-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=163.com X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 03DA4114CDF; Mon, 16 Nov 2026 19:32:15 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 6D14B22158; Mon, 16 Nov 2026 16:32:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794846732; b=K4Dsp5vNgGqf+f6eJelrHA9n1PXcbd7rgtb3yHyAMaSpGFHxVziYFO1b0M5VJuCwBd60 DgOKyoLYdKAk829b9q5CvyUy1DaW4nptIN3sKQ4EslbH2NxcVTn3O22cCGgLtEQNBK3JN mbuIZshMgcSNmLr3QkhURAOV5cQ7aYzcKSepFp/XjjdUNpfG8+q55upZp/VeFHaHx2iFG hW3t6wWuaeJQw9aUq3T0mThpFYYAjWU1Kun3K/2NfUVgWf7Cy0B7EwVmu6Bk4bX0eqJ51 TH4wrtuQjn7Yu/0S3nXfYzk+SYn5Hm2Bbq1Y9TUc0ujUJpqhYnIYxBGE78U4OHe+PFA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794846732; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=iLvTJCtYC83RMfQVto512FgaIcx5aJLsN+8MNc0ys8k=; b=KFtwOqvVBV4OxnaPpnVQgpQYyus3en0lXWpMkNOAYYCD2D/OQc9PmRMM70hpaW7hAtDf G11jjD2pL4iE1mQjUMB1mqY2k3NeIbZOluTkD2dUmUqg4ldAsXy7FJKLHWhn4tJDvNcwC ssJRkf3GC86UW6zS5ym/VzHS1jBiF+MWTdQ3FfMy8wnv5sZqUPGFwaf6VhEpdJn0w4L1C fEhaLK2FMin+5+DRcSvTmJ+rzMhireqhoC6JbLiVAw5gPYIeRyXZD9sQhj/W19QAibNou LO3nc56JSkY7l7YEGUHwqU26y+buE7XTb/LYg65ihRa5ikF7O8OPvyyHMG6WNuPUlsw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=eyHJSWU3; dmarc=pass header.from=163.com; spf=pass smtp.mailfrom=163.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E3FB606A338; Mon, 16 Nov 2026 16:32:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=eyHJSWU3 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.2 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794846731; b=luDMci3aRng9i+qqrHkkxLq/tvmr8W5eUfI1KlEhZLhwgsm5wdxFrEoezlih7a6sWZVh +7ISnEnSzhNJDm2Kn1DaBNjqRYrtDT+T7D/KQUO7IY7vt5lhG1VflAjTJStCvGLCGs+jM wOJB+F+b19pf3H8BqgtVJM8leNQhI53iR5dzdle65sjsehNrhmJwodqlPpGXhvng7IcX6 oAc3s9vA8b4I6Uqu3J9SZUmJAT2QDM4I5c92QGXZ2b8vSU4DNkcgChMHmD8elLbJhkbAi DdZE2omPjxSkE9Kb4rn4TvwjlsbjT72bnl3Q1JbuZJuP2f6ID5FpvrcfXCqoEAD6G3A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794846731; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=iLvTJCtYC83RMfQVto512FgaIcx5aJLsN+8MNc0ys8k=; b=kC7IJLz8ll88ixzU4jOfweiRUbcfh8IT4MihNn70qvwDtK4+rlI97zO06SCQidzdfNpm dp67mu6VJxq1fpb1A98pvD7s4yb0jGw2k6EM2Bpr2c3ag2q5CcYsY29N62kjkExX9VeAP /zz7NbjMiMDSsjxW84F98jL//26oZygz+WZVbeukxLnxRrXSm5DfLX783N8UeikEf3/2O /z0V/wemr0MqBchulxTB8dh/dVI66PsuIj75ALV1J3LrZePAonIkzoePSqGiRHZKVE5IH MHrpm5zzJ7+0k+ZtlkQAQddAG2KlzhcrN4R6mYPw4QroUzCYdCP4i3O3EEjcHzdE05A== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=eyHJSWU3; arc=none smtp.remote-ip=117.135.210.2 X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C80A3606A31C; Mon, 16 Nov 2026 16:32:07 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C80A3606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=iL vTJCtYC83RMfQVto512FgaIcx5aJLsN+8MNc0ys8k=; b=eyHJSWU3ehgF9umXuD kFZtl3Ghjkk9u2Vy78f5mrdINjylH6w2Ml435X1Vf24RAyOnnQI0Z9MSHfSVhEar 5MJfSmCKx4DhTBpaHphdVD1FM2MtbE9msNMGcszsuEyYLjPr0CecGz5qqX7kgcuE 63j/nK6RtmgyhQU3N4c7nryDM= X-Received: from user-VMware-Virtual-Platform.localdomain (unknown []) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wDX_7zcL_tq2SpqHg--.31791S2; Tue, 17 Nov 2026 00:31:25 +0800 (CST) X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <179484607270.3136.35330548202236483@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-CM-TRANSID: _____wDX_7zcL_tq2SpqHg--.31791S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1UGr4DCw4DXFyrJFyrJFb_yoWDCrcE9r Z5Z397G3s0yan7tr17tr4ktrZFgw4kJr18Wr93KrW7ZryrtayrZa9akr9aya47C3ZxW3ZF yr93Wryrtr12qjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8x-BtUUUUU== X-CM-SenderInfo: p2lkv0ljzqjqqrwthudrp/xtbC7h2c7Gr7L93sfwAA3z