Article View: linux.kernel.netdev
Article #5196Re: [PATCH net v3 0/5] eth: fbnic: harden Rx and Tx completion handling
From: Jakub Kicinski
Date: Mon, 19 Oct 2026 23:47
Date: Mon, 19 Oct 2026 23:47
16 lines
8585 bytes
8585 bytes
On Mon, 12 Oct 2026 13:15:55 +0900 Yehyeong Lee wrote: > The Rx and Tx completion descriptors carry buffer ids, offsets and > lengths that the device writes and the driver consumes without > validating. v2 bounded the Rx buffer index against the array only, which > the review found insufficient: an in-range id naming an unposted slot > still reaches a NULL page, a bare META completion still builds an skb from > a NULL buffer, and the offset, length and the Tx completion head are not > checked at all. AFAIU we are not required to add silly safety checks to fast path of PCIe and SoC drivers. They can be assumed non-malicious. Please don't waste our time. -- pw-bot: reject
Technical Details
Message-ID:
<20261019164706.5c4e9335@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348905-linux-kernel-netdev=dewy.ruReferences:
<cover.1791775409.git.yhlee@isslab.korea.ac.kr>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348905-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 0/5] eth: fbnic: harden Rx and Tx completion handling Date: Mon, 19 Oct 2026 16:47:06 -0700 Organization: Usenet Network Message-ID: <20261019164706.5c4e9335@kernel.org> References: <cover.1791775409.git.yhlee@isslab.korea.ac.kr> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3742334"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:734D7zhhvzoihS7EifOxH3sLrs0= sha256:oNDlRZ2q2FNWNsPcZHV4Vus0vfcEpJfRImwjDELDDsg= sha1:QdBcqd1P481wVsO65vr3YkoBWSo= sha256:UqJjX+qL8XA7/YiwjpFA6w2Kx3R8bE5RkFJ4NJaCJkk= 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 3F6F1110B7E; Tue, 20 Oct 2026 02:51:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.729 X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 2VB-f397l6qm; Tue, 20 Oct 2026 02:51:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348905-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 91973110B7A; Tue, 20 Oct 2026 02:50:54 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 76B6826EBE; Mon, 19 Oct 2026 23:47:14 +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=1792453634; b=Vh2jw9MY0RG8zq1SODiAV9Zg/ZP7uk6HtsLy703zE0l3QJu5y0xCxfgEdkIyYN2iUnDf 8nx3enfx+/y0dZ9SmBnf5ysVdGkcgGUkeiTGMvawdLh0fhPe4jIcWBSQY5cFCKXv8ag4g ImCjG2Ou9c9bNVa074qzkCmw7nqZrJEYHCUwShjZdxyCrJqnSIagAf+axf28YscHqII/Y xTfU753NLceV8JlJUXJyaHDJzyTkaAKyW6+8MMMyJg9UjDGGFw0yn3Egz/iwfkjUhpM1V 7VLiiaWsq8BAqLQriTLWxnMbX94XsgUHNQf/3vg7GqZvWYA6J4qnWM7OpUohZaGLzlQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792453634; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=EFL7RVpbg7eriH3AqFHCOPDeyuNL9tU0pmOU4dQ3GNo=; b=JRRye5N2wuX2LOyEZsjrOS5a3T08jSDhIAqwy6dghufVFM7KmujoIOnUKiifxbeRld6+ Q6WUWAgBCVGWD83Nr2Q0X2pRYqpxjdcI5X5dBtR9MADPgSSDLluEpgQA7DbN8GcjAyd64 KhiZGTnpygtPHo2nlZm7tCw8MtjiRyneQxoJ9ogdZo8WbDjZmq5hGaIXZrVzoEZ30/YiG RKCwKiqLp3PeOesgsdn0mAyYWe6f+ZqY149I2wIys2e9u8jqPYf0OkBVC9EvVmy35ONvw kEAtclVplcpBa+M1nm/vv78/NQB/yfHkzP/LjWcPxUikqwml9Lh+h2Z3uDVnXPuI8RQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HkNO5Vms; 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 20243606A31D; Mon, 19 Oct 2026 23:47:14 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HkNO5Vms X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792453628; b=UDDsaJKVdAgvbIrtku9ec5gy/TotjR1BTw8/3vY/Kombcu/KKC22+EwkmffvGkP4tD/k ieWI1Tzhe7lXtDl2WsHW46VPuobn9Y42AF6pmcH9GP6zxfZEn/JVbCvHJFg8pkTlZH6Sh dG+/NtwObhx9qlOjzRFfo2qL4xfrjE9x39UFocw3mr0okFeEm2v9JZ3IL+w5rvXyU+QrZ Ixa8WpHcaP60YqQys8o2Zjniz+S3CK9Na1jqhjOqlZAsSog07RJk4Sv9+RSAJKv5P0BxU 4thhEprGfOF48es5D665o10NevJCMgEp5Br43IJhF+04KWFA0QFDVoqVcTqRwr0fn4w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792453628; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=EFL7RVpbg7eriH3AqFHCOPDeyuNL9tU0pmOU4dQ3GNo=; b=xYbXo3oQdg0BFqND7EiBuqStJz5GpDguis6WL3RzNwft3efYAsNqcCo4MFkigC0kSHN3 Oeb2gpGVODqC6m9G9pHyLk8kRyn8FhCwL546IM2HubTG7+ggvwEpDVMNWbiBmFt8qg7/a I+ZadWLOZaCAz9Izp9T43eVMlDcpkCiqzKLIOMGRte0muDqGx9tfM+JEm6J8u6/cT63W2 fGXYxZ/LWO029uaZ0Q40HP8CRG64VUHp3NO6uIikhtcjrkX1EXrEks7l2BZrXL/NVqfp+ hr3+5ZnxM6dwLssHD+RadwkS8E66s578jwxcMhCEKiTAjfYid8jDkDEQkx9OgXrH93g== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HkNO5Vms; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 059BE606A319; Mon, 19 Oct 2026 23:47:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 105D01F000CA; Mon, 19 Oct 2026 23:47:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792453627; bh=EFL7RVpbg7eriH3AqFHCOPDeyuNL9tU0pmOU4dQ3GNo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=HkNO5VmsfqpvG/7vRrBgfU91eqwkT1MX3sTjDgM8GKYkx0ViU8U7t0SJvD09DTS3t Q2EXPQn8H0K09q7ETipsFThUXltWdeOtAr2mxBknhJb63F1pUc81xDLqkIEwRnA6Gk pWjPRYZ7babLd4jmQKpAU62p80/xRq18B20D+yB/ADhnzUKPLepzriDfF2FrY+c09J 1gdCEEIUFtPEZvRKO5KbFYhGtpwaCO2g71+zTYNzD3Iq+TpEAR5Ozbe24xBUw43KUv 28GNFop3mPASUcEG1IgRjTxWMVdwU0uYJ6+uNhrCxml00Zf9ctyI0pdqLuHxCMMlR/ lQ0hkLE2WlBfA== X-Cc: Alexander Duyck <alexanderduyck@fb.com>, netdev@vger.kernel.org, kernel-team@meta.com, Andrew Lunn <andrew+netdev@lunn.ch>, davem@davemloft.net, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Dimitri Daskalakis <daskald@meta.com>, Mohsin Bashir <mohsin.bashr@gmail.com>, Bobby Eshleman <bobbyeshleman@meta.com>, Daniel Zahka <daniel.zahka@gmail.com>, stable@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <cover.1791775409.git.yhlee@isslab.korea.ac.kr> 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