🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2321

Re: [PATCH net] net: usb: cdc_ncm: reject short GET_NTB_PARAMETERS responses

#2321
From: Andrew Lunn
Date: Mon, 12 Oct 2026 12:58
11 lines
6231 bytes
> Fixes: 36c35416a94f ("cdc_ncm: fix endianness problem.")

What has endinesses got to do with message length? A truncated wrong
endian message is just as bad as a truncated correct endian message.

If you want a fixes tag, please make sure it is actually correct, go
back in the history and find the real place the issue was introduced,
not the last time the code was touched.

    Andrew
Technical Details
Message-ID: <f84dc8e1-8dd3-4850-b87a-b526e66943b5@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344967-linux-kernel-netdev=dewy.ru
References: <20261005041525.49111-1-xinsheng.zhu.ny@gmail.com> <179134657946.434549.14071341559835135672@kernel.org> <CAFGKm+zjOtU8WGpcqqb6_XnFd3vmPw2RszPig9PJzbq3Uqh_Lw@mail.gmail.com>

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-344967-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: usb: cdc_ncm: reject short GET_NTB_PARAMETERS
 responses
Date: Mon, 12 Oct 2026 14:58:53 +0200
Organization: Usenet Network
Message-ID: <f84dc8e1-8dd3-4850-b87a-b526e66943b5@lunn.ch>
References: <20261005041525.49111-1-xinsheng.zhu.ny@gmail.com>
 <179134657946.434549.14071341559835135672@kernel.org>
 <CAFGKm+zjOtU8WGpcqqb6_XnFd3vmPw2RszPig9PJzbq3Uqh_Lw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1780016"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kSMP0Xbg54C/eQvtgKSoC6Ede/I= sha256:29uDnOtMrMcXxUp96n/1nugSlO6wrZ1F09Mfb9d649k=
	sha1:yENXLnROf2Yf5vfRpY/rij5IMOY= sha256:lElkJHO1rM97YDCbf0EWFFP4fZRi+vuB4NMsqkflECs=
Content-Disposition: inline
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 AB22C10FBDC; Mon, 12 Oct 2026 16:04:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 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.249,
	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 (1024-bit key)
	header.d=lunn.ch
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 S5yxo-GuLTch;
	Mon, 12 Oct 2026 16:04:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344967-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 24AC410FBDA; Mon, 12 Oct 2026 16:04:02 +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 2DF3D2801D; Mon, 12 Oct 2026 12:58:59 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EB39463B95;
	Mon, 12 Oct 2026 12:58:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="tj/M0iIh"
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(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 0A93A404BE3;
	Mon, 12 Oct 2026 12:58:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791809938; cv=none; b=etN5V+5SQ1cyXh9IRWBOSIG4F64ENB5USjH1N3eYscLU/cm12P5MgT6Yx2EoH2f1IfO3wa0fCozVpJ96mOf1mhTdtiSplGvDE/Ssa5tOtEEB9GxxmtQdzkeRYoo+xmFDiQ4kQGV5jZtdsMxoS5vwLCyfhbYB2tRuwywMYkJI3i8=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791809938; c=relaxed/simple;
	bh=qin85BibcWwdgs+nY2xiaiEYJ2+uws3+DNC5ZdVJOAE=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=sY25MIuc3uOsbz2V0S2GWuVztDrI4oyzz/VtfKV3AbK7Km2h2uBvqc0LipassVv+OT7fY4x0mS8j8B+qlPMSFw6nsqijrbzEn8tVzc3lBDWVNPEi6ZhA1jZlp/XbXbs3Y0aL4N9m+mAOVmEHUY/a7L5CAqmp0qyjP6o0JPpUhF8=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=tj/M0iIh; arc=none smtp.client-ip=156.67.10.101
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=WSN36eYvKDf/95wB4rGwHHwtlLBvopUuhPlbum0P/zw=; b=tj/M0iIh/Xruqt1qxZJofswqCq
	g25G17pzS1uod+kg4wJ3Lt7rXcLMl7Xb+LXPNUQi2f1AJ6yfQxmhJPPZTeysvIU/cRtG6h7JH7eeX
	ocOa1PPNLSTaBeVCLppFHXVpCPKdKt1xwJEDn16vGVS2j2RSLrT/oQQkgr7qI+yBHmjk=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xGFcD-00AKE2-Ho; Mon, 12 Oct 2026 14:58:53 +0200
X-Cc: netdev-bot+sashiko@kernel.org, netdev@vger.kernel.org,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	oliver@neukum.org, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com
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>
X-In-Reply-To: <CAFGKm+zjOtU8WGpcqqb6_XnFd3vmPw2RszPig9PJzbq3Uqh_Lw@mail.gmail.com>