🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6252

Re: [PATCH] net: wwan: iosm: validate msg_head before indexing msg_ring

#6252
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 00:40
28 lines
8825 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 20 Oct 2026 17:42:49 +0800 you wrote:
> From: Liu Chao <liuc63@xiaopeng.com>
> 
> ipc_protocol_free_msg_get() reads msg_head from shared memory and
> uses it directly as an index into msg_ring[]. If the head is out
> of range, the subsequent memset() writes beyond the message ring.
> 
> Validate head against IPC_MEM_MSG_ENTRIES before using it as an
> index. The ring is a circular buffer, so a value outside the valid
> range indicates a corrupted head pointer; report the error and fail
> the allocation instead of writing out of bounds.
> 
> [...]

Here is the summary with links:
  - net: wwan: iosm: validate msg_head before indexing msg_ring
    https://git.kernel.org/netdev/net-next/c/46cbf85155e5

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179262960577.1381785.17602246093034540225.git-patchwork-notify@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-350328-linux-kernel-netdev=dewy.ru
References: <20261020094254.4017726-1-liuc63@xiaopeng.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-350328-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: wwan: iosm: validate msg_head before indexing
 msg_ring
Date: Thu, 22 Oct 2026 00:40:05 +0000
Organization: Usenet Network
Message-ID: <179262960577.1381785.17602246093034540225.git-patchwork-notify@kernel.org>
References: <20261020094254.4017726-1-liuc63@xiaopeng.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="97310"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fmTUmaD8TLT/OgTn9LNUTj1WgIM= sha256:faKsl1jB+RhJJieLooEOvGcvjyWzQYMtVWwIqZu+7Fw=
	sha1:Y6y7lWcaj1LXmgyhFQld6wRhETg= sha256:ni+wWp+IyYk5N6PqlOShfjrnmplOGRNhM3agfnQks8U=
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 02E1D11116D; Thu, 22 Oct 2026 03:41:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 bAiXvXSnDbDu;
	Thu, 22 Oct 2026 03:41: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-350328-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 E9E2211116C; Thu, 22 Oct 2026 03:40:58 +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 EDAAE38B47; Thu, 22 Oct 2026 00:40: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=1792629613;
	b=buTXy1haKo3ZwYmOsHiqbBw2JX32k36MW3ffH0ymX3x22hco+Z06OW4y+eYppcABCuGV
	 bSmb2fln4xnqXjV24UI14/OX/7lsVwETerdL+03EdX4JAstSmON+8hnbZ7W8aszWrcnPi
	 yqJI4uYa1z8JPGngEV47A5/iYNPcuwUxwZJaKb8BiMBog1yJZSOJJLkDHzV5HVb1ILZtE
	 CdFrbeENQWhj359XFngKwodIQ3/AtoMaP+sFwpmRxSQe6Vv710ZN8GBFfB+B4Rs6SXag6
	 +Xtv0olpMjEPM/786RR1FZVNHav/WTJOiiyJSdKTA7OPGrZQCcjgAbfTXbBf4ciqOUQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792629613;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=klp9h556s2dmmsj3dIxpAq/gnwvQTRBEk3BCnmqimjQ=;
	b=O/5VNLHh0cRoaUwX1OIkplff0sMPrktLVR8HzMLEt0P4SvbLJ16IdHngn5egnr97Z8Gu
	 zGMogwTjghygu5mWIYSt7t5aB7dxCy48mWLlgO2bUxITw/1fM48TX+kgSBZFw2e5i+Mku
	 wyuBGJqYFEnD+SdBiZNyBRVrWmEffQ47zNS2bdvH9I0jF4rKwHopctxe0gd6o8MkAnE4I
	 RERddeE3TKhyPkvfE68HSxBxORiHMMuTPCI5j8aN3FYA1jc0maMBB/yROy75TNN1xOigq
	 hHb0bpM1k6CJ4LSal7s8NESUhyZqs3IHWNsL6uRm6olBIEHzAPN4Qb9kK/jIRQVIlMQ==
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=dJFzU+j+;
	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 AF20C606A32D;
	Thu, 22 Oct 2026 00:40:13 +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=dJFzU+j+
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=1792629607;
	b=dAQknozzccIZ0leXfh52PpCnlpTfxkqmeI2fG1f5T4LTRR4acYku9FRu5Vwe7fvs140W
	 R6lDFe5jxQ7vxrlkI5JVBlMFJFEqEhyaKzXiW85UwXGL0SEf/CQqz2x4eZE2fqkJrLkae
	 WRQZWO62SPj01NWdl73En9TR0/8OZwxgnss4TiPpLxBt1ECGujt19iG4Y5tGMy5VIYZKW
	 w5bP4JjILL7xTSCHSvxZeq0WfnCViIeW03ktuipLb0F3dCUseDcgP02gi5UO6BfyXBtBf
	 LazYoW1XPtIIlI86By1riatI2wxQCnQFUrPfWZat04G6HJL+RukEtNrGcBggjPTLq7w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792629607;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=klp9h556s2dmmsj3dIxpAq/gnwvQTRBEk3BCnmqimjQ=;
	b=2Az4PCP+z1rcomQWG+gjaBHVCMDepp+Zd/MWHKyp6l26cBBdVrLI38o+F+uxXDqcayXg
	 vUFxSp3eMvEMZdGR825JsrJF5w8HGG4aqJSfHKzhyGddp6q0tQu18yocOCBeTqx02Usfz
	 8xAnbV/VWvX2ZfXj+LiIUZWqth4AI5FhIsPLqhRrKEkM6RdqhmOtIYDpZvE/ZHfwde5T9
	 1a1tNFNmnMlpW++jtO7kdVJHko5Z2Up0pgFUpifsIZFamdT/SmLoMFTTImUH/Frd/6Hp7
	 aBDBuQW+/E9FSXUqzX6YNXlcf30yBy6AyipOFm2NN44UXS4Wty3HuNMz/GMtPxkjZ4w==
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=dJFzU+j+;
	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 8E3CE606A329;
	Thu, 22 Oct 2026 00:40:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 454691F000C3;
	Thu, 22 Oct 2026 00:40:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792629607;
	bh=klp9h556s2dmmsj3dIxpAq/gnwvQTRBEk3BCnmqimjQ=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=dJFzU+j+Ojm+kqvGzgUK2upk7XOosNqQ94rKuHbC/83jXPCXYbs+NQ0lBxzU7ASNG
	 d4Q0DdTUoMcOHtaij9+d5vomwQziECmWzWbfV9VYCuFSuOfdqAfFpYPyM23ilptOgQ
	 KRgAjZSgisgLW7NOlaOdFENjJh8MXkU6ReR0NpSgcW2RbnXzrK4LfMyOXj5LLsHnFn
	 yJov5jaerk7Itxzb/GK379iEtVoOT+P2EtHpVFfnGQCyD0r7zBGOmTGpV7tt8/a3BF
	 zcAgiDX24lSCek+kgZNMzif9M2o9h8QTaFtd7QgKYaO5wU1F1lTsryHwmd1buNOh/U
	 r3SdULZQdCUgw==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 3A385380A963;
	Thu, 22 Oct 2026 00:40:07 +0000 (UTC)
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: <20261020094254.4017726-1-liuc63@xiaopeng.com>
X-Cc: m.chetan.kumar@intel.com, loic.poulain@oss.qualcomm.com,
 ryazanov.s.a@gmail.com, johannes@sipsolutions.net, fangxy@xiaopeng.com,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org