🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24331

Re: [PATCH net 09/14] net: phy: as21xxx: Reject odd IPC payload lengths

#24331
From: Andrew Lunn
Date: Mon, 30 Nov 2026 02:55
17 lines
8879 bytes
On Mon, Nov 30, 2026 at 02:55:16AM +0200, Cristian Ciocaltea wrote:
> The IPC payload is transferred through 16-bit data registers, but
> aeon_ipc_send_msg() advertises data_len bytes to the firmware while
> writing only data_len / 2 registers.  For an odd length the last byte is
> silently dropped, and the firmware reads whatever was left in the next
> register.
> 
> Reject payload lengths that are not a multiple of the register width.

Are there currently can callers which get this wrong?

Seems like net-next.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <af5350f6-c872-4fb6-8bbd-fee62061425b@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373792-linux-kernel-netdev=dewy.ru
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-9-1bd2eae6ccbc@collabora.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373792-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 09/14] net: phy: as21xxx: Reject odd IPC payload
 lengths
Date: Mon, 30 Nov 2026 03:55:24 +0100
Organization: Usenet Network
Message-ID: <af5350f6-c872-4fb6-8bbd-fee62061425b@lunn.ch>
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com>
 <20261130-as21xxx-fixes-v1-9-1bd2eae6ccbc@collabora.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1315947"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:x6Fka+X49/0zwIh7X9yR47Dvz58= sha256:+GnSdpdWL3Z0ylHojrtuce6CUr3fqutSTHPadMnNbdo=
	sha1:FSIXD1NcPb0l4GAEMqn3epK5RlA= sha256:UGWCE96SoQs63icQZmxNclH17G9Xo13D8vBV7TV64ww=
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 B4C72125FB8; Mon, 30 Nov 2026 05:55:53 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	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]
	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 JTKt3lpRqwaG;
	Mon, 30 Nov 2026 05:55:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-373792-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 2FD43125F08; Mon, 30 Nov 2026 05:55:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id C163B6007FF; Mon, 30 Nov 2026 02:55:41 +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=1796007336;
	b=Le4XY7HgBCOwtWgRUeZfJbxaEiNU8kEN6RMsQwLl3riJYHTe/XKZpO1fWyyHIDzoiThY
	 6Gh6ns5TT+BMYC2Kf6W2YdgFzG+9lGpCKsfxYsiYvhshggmwxAwBgvMd5ttMLUd8KWwDC
	 Eda9FeYIqxqPE6dzUEyNIaATBwaAe4ZQj7v46wimukDvFsqWJ6AfXQEcVrfXhhI3nmHx8
	 fjQYu9qgLTquLGYy+3M+RRZ7jLbl9xDrvWjHv6nxpwQ9jGdn/mDSpynTdQF+oJGj8OkY+
	 ytrmJXD9cHawqXpyNkkU59Z+WKIiO1WX+hfX/rizaUYDCE/aBir8pTU800OylCOQEiA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796007336;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FtL58swYMqii8EMPy2iB8O6rgXrIudtRrMzrORB3eug=;
	b=Um7jCvgv+940EBo0A3JJPVMdtfksEsISMGpVM99Q+p7TaZ/F4gZ1WycXmhasM2YJDr5S
	 3sS2fi7Gk28cp/1nc+1C4wpihF5FGe2HfJ78Nbe+g1KbNas5cdpHqDx0psXhCuabC3vVY
	 l3kkdTiWJJGTLZjm9ii1ObMpjoRTA6vSvCKoUL4J21ZiQVfPukSJ8D9d0lGHLz0Spz+KE
	 7m5Vh3AHVJ+FZrqYX4yMdD7H85LLB9TX+qh1A1bWT6umP7P4Z+npjXl0pYcvoIM4iKycv
	 rJuByA3sVivmcvIN2x12V2fgtec6761B3gfmcAnnevY9lVaelpOGoVKGi1p2OkWJ9pw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=u8QcFExF;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 8A86C606A688;
	Mon, 30 Nov 2026 02:55:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=u8QcFExF
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796007335;
	b=qlYFv2KDOo/EmiD5okACLoWNl4zzXwSbcvNklvPyV6owdGPpvuaWpfSPELWiWSE37u0o
	 NaFs1Nf9EWM9ReKV78CKXXB4ZPGMIY0ig7UDT6MVBoOthBTQpnQ8Amg9Uv44HYfcQagt8
	 zp1Smk4Nyx9fXxommorEsMPWWwT91cxGgR+8BAuJypQ+QBtNYMayrzqUYhnhPuLD6s3tB
	 By0TT14mi7Vqc/82cOKo3wNDxhKTjXvLRYBp1Zi+2E6mc2NHP0N8gUMSehBrhvJO4YLak
	 roBEtIkbCua34ObqpriVQb6hWdT7ti8fo2p/VW5jaemuS4XWJo/4QoNIDFTMvWygRBA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796007335;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=FtL58swYMqii8EMPy2iB8O6rgXrIudtRrMzrORB3eug=;
	b=14GvwTS9F6plpKzEYFKcO0tWvDLRn/qtHPtq2jorQi2YRCu28JUtufvQKdcPF9uU8LQu
	 VgyTm4zebPLN/DzOb1Vn+mfEfEY4C6XpaCdBbrVvYx8aK16o0zaYS6zmxZmsXBxwuCRg7
	 aDxI8mID8J3rsWS4Y6I9AEGg4JSVUhI952Vs2gssjKPtO0eAl4MvQz8g39Rhu08c8vlbY
	 L7onBDIKERvhqwn4dhgj3kLis5Jmw6DyUTPoww211ul464SuM2AZ8zoLbX5dOqV8P02/1
	 iW/GuYRXY3luqR3H+HUCuj6xif7g4NqZbfnE2R6UhRe6eNeyWi+J5dDUiQdW1fmRNHw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=u8QcFExF;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64907606A685
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 02:55:35 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 64907606A685
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=FtL58swYMqii8EMPy2iB8O6rgXrIudtRrMzrORB3eug=; b=u8QcFExFnS7CHmWVpeQSvKELyc
	27xuyhrReSz8kxy6ujFS2IxDa9OVYdTq1LEOwgdcb4dttRKkfFKQFEB4lTQjc+0/gKFZ5FG1ljuUe
	0qDTrHgPe02hTgNJixkyeCCK3qbo1XW2mREO/U83iazqeWWpBBHRnY7iaxlJNyaYFynM=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXrY4-002GVu-9a; Mon, 30 Nov 2026 03:55:24 +0100
X-Cc: Christian Marangi <ansuelsmth@gmail.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	kernel@collabora.com, netdev@vger.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-In-Reply-To: <20261130-as21xxx-fixes-v1-9-1bd2eae6ccbc@collabora.com>