Article View: linux.kernel.netdev
Article #3057Re: [PATCH net-next v2 2/7] net: mctp: usblib: Add test for splits inside headers
From: James Lee
Date: Wed, 14 Oct 2026 04:38
Date: Wed, 14 Oct 2026 04:38
30 lines
6955 bytes
6955 bytes
> [Severity: Low] > > Should the return value of mctp_usblib_test_rx_complete() be checked > here, > as the other call sites in this file do? Yes, good catch. > [Severity: High] > > Does this leak the skb data buffer? kfree() releases only the struct > sk_buff itself and skips skb_release_all()/skb_free_head(), so skb->head is > never freed. Yes it does, will fix. > [Severity: Low] > > This isn't a bug, but i is never used once the invocations are unrolled, so > this emits a -Wunused-variable warning and fails the build under > CONFIG_WERROR with CONFIG_MCTP_TRANSPORT_USBLIB_TEST enabled. The > declaration is removed again by the next patch in the series, "net: mctp: > usblib: Add tests of invalid headers", so the final state of the series is > clean; could it be dropped in this patch instead to keep the series > bisectable? Will remove.
Technical Details
Message-ID:
<286884581dfff68a20b6439ca1cbf55fe1ccd6e4.camel@codeconstruct.com.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346016-linux-kernel-netdev=dewy.ruReferences:
<20260903-dev-mctp-usb-lib-test-v2-2-313cf15e0b56@codeconstruct.com.au> <178893260008.219967.13546498074867789571@kernel.org>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-346016-linux-kernel-netdev=dewy.ru From: james@codeconstruct.com.au (James Lee) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 2/7] net: mctp: usblib: Add test for splits inside headers Date: Wed, 14 Oct 2026 12:38:52 +0800 Organization: Usenet Network Message-ID: <286884581dfff68a20b6439ca1cbf55fe1ccd6e4.camel@codeconstruct.com.au> References: <20260903-dev-mctp-usb-lib-test-v2-2-313cf15e0b56@codeconstruct.com.au> <178893260008.219967.13546498074867789571@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2217725"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:lbcIJv5J5Oo2COCqCc6LhTSMRBM= sha256:FdnvlakhFnFl6ZOpsEuk2b4HvJ8320rvaIJgWf3EoL4= sha1:cuDbdQVCVhUqrdGzLEoc69xW14I= sha256:qg8Wli0qRlnmA8J3hT+pjktDp1Fp2Nd2y8dSZAD8sE0= 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 0276910FFE0; Wed, 14 Oct 2026 07:40:12 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.749 X-Spam-Status: No, score=-0.749 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=codeconstruct.com.au 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 3JK7KKNPpJ43; Wed, 14 Oct 2026 07:40:04 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346016-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=codeconstruct.com.au X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 5B70010FFC4; Wed, 14 Oct 2026 07:39:53 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 3654D37330; Wed, 14 Oct 2026 04:38:59 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8675412264; Wed, 14 Oct 2026 04:38:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="NMSbZI/v" X-Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A5BB40B38C; Wed, 14 Oct 2026 04:38:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791952737; cv=none; b=br4fO9FptBpD7rs9/GdezEfODFL+2EqQM7RopN/OP25ezNGpHm1mzol90GYx1OmRKsiRJHNgZCH5rYihTniug3zvIuRR9iRHGVX0UuwtYOJElT7N25coXogCwx5fqn1XKlcwcwXKkmgcOVcVYswgxdJwKntW8rWGrTPMTlRuBBw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791952737; c=relaxed/simple; bh=y/yVXEmjQCij2Kicb9rujVTrHhXqXNotpFnToGjCZvc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=WvBI5lttISrDINea13a+7Kyj0xwJkaNZDMVMpH0gxSn3Dix8Reu64+B6RiD9w9n5bPZm2E95BjH0m9ZBpC92a5+IrFgr3W3KOjy7V5jAVxzF/z12Ugf4IZ5kWFx+5mn0n/fYN0gIrY6PIK6JiQb1RKx3hBTly8S7JPpt7kELLTY= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=NMSbZI/v; arc=none smtp.client-ip=203.29.241.158 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1791952733; bh=y/yVXEmjQCij2Kicb9rujVTrHhXqXNotpFnToGjCZvc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=NMSbZI/v+Ca4MsPs3bGtvHPQBQmdRDNyb12qBSAdWVI8xMeQujeFJ6PYVyvaiDatH Ely60pYFe1196e9MNOR2ZpukiGKZIUkMrKbj9kXN9EHdQNqf1Jor0YxPkt5TmQidGa WJdQ/QJ8pTJmLP6nykkxTK/054qpjNAYFNnhqp5RQ4sltscz60NFb2wrC9Ut8Ul1Ta 3kLVpB219PIhMJlNvlbWXGn2zJSDbWjt44jz2saF8g1Df+jnmrWzWlGvA496rhG0SV O/JapWMlpEQnpJmWONi5oVfpkk7sjCsirew51TLy+DkDHDz9bSHwY1MzbSSBkHQ2ic ceoxmqoQ0vdUQ== X-Received: from [10.157.79.237] (49-255-141-98.sta.ip.vocus.au [49.255.141.98]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id EADD06CEE0; Wed, 14 Oct 2026 12:38:52 +0800 (AWST) X-Cc: jk@codeconstruct.com.au, matt@codeconstruct.com.au, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, kees@kernel.org, gustavoars@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org X-In-Reply-To: <178893260008.219967.13546498074867789571@kernel.org> X-User-Agent: Evolution 3.56.2-0+deb13u1 X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>