| Message ID | 20261107160815352Q4eO0zXOX0KF5AwEbOJ6f@zte.com.cn (mailing list archive) |
|---|---|
| Headers |
Return-Path: <linux-sunxi+bounces-27310-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mxe881.netcup.net (Postfix) with ESMTPS id 6CC601C6EDD
for <noreply@patchwork.local>; Sat, 7 Nov 2026 09:08:50 +0100 (CET)
Authentication-Results: mxe881;
spf=pass (sender IP is 172.232.135.74)
smtp.mailfrom=linux-sunxi+bounces-27310-noreply=patchwork.local@lists.linux.dev
smtp.helo=sto.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.232.135.74 as permitted sender) client-ip=172.232.135.74;
envelope-from=linux-sunxi+bounces-27310-noreply=patchwork.local@lists.linux.dev;
helo=sto.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 9D7E460C466
for <noreply@patchwork.local>; Sat, 7 Nov 2026 08:08:23 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794038901;
b=jhdT9IrFRejSfEF4C9TbV7WtTxES99sSspEIpLcPLslQI0k0sbfIai3ZcQTuHBo/n/8c
KXAlnE1j2VqWyEYSUQuyTF06GSjWlDeZ1QheLuJxekOOZZ/b/ZSouldtcmsG9mbK5cpCq
rlgMB4wcwmTM/JTB6A3IGZzYdpeOuDnEFp2zEq1mpPEf4/knu3GfmwJ6/zEVFy3ZKFHgz
1Fo3C3lIlqR3c5yAL9frDsKkF8Ziy6IHMeSBpKAUJljZUo2lC88Q09KDn8oSKkdeaUNpw
pkIcutKtQZpoLaFwnkyUD3hQuWnUkwlz4jH5O2QXwUCBQ9pDxyVMqBYUSM/Di3C8B8Q==
ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794038901;
h=X-Original-To:Received:DMARC-Filter:Received:Received:Received:
X-Zmail-TransId:X-Mailer:Message-ID:Date:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:Mime-Version:From:To:Cc:Subject:Content-Type:X-MAIL:X-TLS:
X-ENVELOPE-SENDER:X-SOURCE-IP:X-CLEAN:X-Fangmail-Anti-Spam-Filtered:
X-Fangmail-MID-QID;
bh=e/rFmgN3Z5KxfWW+Rzz0lvQ+GFMHmAzHgZaIrh0Ft3U=;
b=3s0u+nJwFguNNQ2XDA8fyL27/Ptl5LXJrxa653hr4PcTwJcByCGbGIIM2tRe8EYTONan
pn4ppt7SlIXGhjzvw90QJcRD13f27FjkXnQlmL6hqMilVORJKOrFCN2yim7G3DvCs/3ed
4LLCuz+qhcivFMiIc7bKQUU4CCaAVo6J6+doCgv60hAexeoAi16qkkknoDL64v5l1IXbS
Rx2pb6inMF9XF8KJ621agV8eYL54SlfuizS5cIRGtDNWkh2F/bE/T1H/X/OUjRubdu3kc
iJ+bG6TnGJ8h4XaJKdAPMJ9RYWYxj1gXS1l0D6xrh7vPULsVjyMugvxz30iKY8ugPyw==
ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=zte.com.cn;
spf=pass smtp.mailfrom=zte.com.cn;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 08E7E606D806;
Sat, 7 Nov 2026 08:08:21 +0000 (UTC)
X-Original-To: linux-sunxi@lists.linux.dev
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.remote-ip=160.30.148.35
ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794038900;
b=gPZvKUCVsQ3/m5QDOoghwtvt053AJNACRSOzqajmuFZFDEHh2MCDOhWIQQ1oKh+VcoDA
oMLDa7tagsIEXBC61Bkq9xBI+9W2dbnphvfO8/ImVgxULBVPtawfVGV/Kdj9YBidpCm/C
SnoOeu8R8/PCn53VbJRCf1kc1MxYUGwoLBqUtRiVDOa2EIRQLxxm4P7opViMAG+r6mXa5
VQAKtUEV7/eplHJdut0NX8AVSStO8L6l1P3L0siezhQBSr6UhBMR60jnRPZb2X7/aRk7+
NiqH/X1bwBdHnrAtXXouov5ny/pCQiqnxhG+YFv9tJyb3N6MoliJnxLOGx3lw55IQQw==
ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794038900;
h=DMARC-Filter:Received:Received:Received:X-Zmail-TransId:X-Mailer:
Message-ID:Date:Mime-Version:From:To:Cc:Subject:Content-Type:X-MAIL:
X-TLS:X-ENVELOPE-SENDER:X-SOURCE-IP:X-CLEAN:
X-Fangmail-Anti-Spam-Filtered:X-Fangmail-MID-QID;
bh=e/rFmgN3Z5KxfWW+Rzz0lvQ+GFMHmAzHgZaIrh0Ft3U=;
b=sZVFW1Z3UhhaNDlre4zvbm/9K1qwp39iY+2RcnV9Pq/FJSmgqqEFp8C9FEv6sxt/esRu
lGV/Qrs8KMF54gmZajJ/PjsBBmXjEWH6wBEqKAOkI7BYdxBYaerpAU0LAojN7oJmH1kF2
IlgX0GH9SvgHWvlT59ZjKcd24gefyELXd3exoQtjd0CrZ/W57sEqiODvsr7qscxgyyqSJ
z9UpmhKDaJDHBo0oQg0JKuztukyF3tQngjOwtThvfMAreM8EeF5hUD/q36KdR99mTXw26
w+MlmD82VZAJZAyH0nhQGUoBBZQ0oHyZG7Ya2zJ8PEnZdCOnptiE/Kt6vixVnzOPEzQ==
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=zte.com.cn;
spf=pass smtp.mailfrom=zte.com.cn;
arc=none smtp.remote-ip=160.30.148.35
Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [160.30.148.35])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest
SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83DC9606A33E
for <linux-sunxi@lists.linux.dev>; Sat, 7 Nov 2026 08:08:20 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 83DC9606A33E
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=none dis=none) header.from=zte.com.cn
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=zte.com.cn
Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mxhk.zte.com.cn (FangMail) with ESMTPS id 4jM7w265jZz8RVJk;
Sat, 07 Nov 2026 16:08:18 +0800 (CST)
Received: from xaxapp01.zte.com.cn ([10.88.99.176])
by mse-fl1.zte.com.cn with SMTP id 6A788DXS022834;
Sat, 7 Nov 2026 16:08:13 +0800 (+08)
(envelope-from shao.mingyin@zte.com.cn)
Received: from mapi (xaxapp04[null])
by mapi (Zmail) with MAPI id mid32;
Sat, 7 Nov 2026 16:08:15 +0800 (CST)
X-Zmail-TransId: 2afb6aeedc6f415-84fc1
X-Mailer: Zmail v1.0
Message-ID: <20261107160815352Q4eO0zXOX0KF5AwEbOJ6f@zte.com.cn>
Date: Sat, 7 Nov 2026 16:08:15 +0800 (CST)
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Post: <mailto:linux-sunxi@lists.linux.dev>
List-Help: <mailto:linux-sunxi+help@lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
List-Owner: <mailto:linux-sunxi+owner@lists.linux.dev>
Precedence: list
Mime-Version: 1.0
From: <shao.mingyin@zte.com.cn>
To: <broonie@kernel.org>, <linux-sound@vger.kernel.org>
Cc: <lgirdwood@gmail.com>, <heiko@sntech.de>,
<linux-rockchip@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>, <wens@kernel.org>,
<jernej.skrabec@gmail.com>, <samuel@sholland.org>,
<linux-sunxi@lists.linux.dev>, <kuninori.morimoto.gx@renesas.com>,
<linux-renesas-soc@vger.kernel.org>, <srini@kernel.org>,
<linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: =?utf-8?q?=5BPATCH_0/5=5D_ASoC=3A_fix_error-path_leaks_and_a_NULL_d?=
=?utf-8?q?ereference?=
Content-Type: text/plain;
charset="UTF-8"
X-MAIL: mse-fl1.zte.com.cn 6A788DXS022834
X-TLS: YES
X-ENVELOPE-SENDER: shao.mingyin@zte.com.cn
X-SOURCE-IP: 10.5.228.132 unknown Sat, 07 Nov 2026 16:08:18 +0800
X-CLEAN: YES
X-Fangmail-Anti-Spam-Filtered: true
X-Fangmail-MID-QID: 6AEEDC72.001/4jM7w265jZz8RVJk
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: INBOX
|
| Series |
ASoC: fix error-path leaks and a NULL dereference
|
|
Message
shao.mingyin@zte.com.cn
Nov. 7, 2026, 8:08 a.m. UTC
Five error-path defects in ASoC drivers, found while reviewing against linux-next next-20261030. Four of them leak a reference or a clock, or drop one twice, on a path that is easy to miss; the fifth dereferences a NULL remote port while parsing an audio graph. The patches are independent and can be reviewed, applied and backported separately. 1/5 ASoC: rsnd: fix NULL dereference when remote port has no endpoint 2/5 ASoC: wcd9335: fix SLIM interface device double-put on error paths 3/5 ASoC: rockchip: rk3399_gru_sound: fix codec node reference leak 4/5 ASoC: sun8i-codec: fix bus clock leak in runtime resume error path 5/5 ASoC: rsnd: fix SSIU node reference leak in rsnd_dma_of_path 1/5 returns early when a graph endpoint has no remote port; 2/5 removes the four manual put_device() calls that duplicate the devm action; 3/5 puts the codec node on the two skip paths of the Rockchip DAI-link parse; 4/5 disables the bus clock when the regmap sync fails; 5/5 puts the SSIU node after the DMA path lookup. Patches 1/5 and 5/5 are R-Car (Kuninori Morimoto), 2/5 is the WCD9335 codec (Srinivas Kandagatla), 3/5 is Rockchip (Heiko Stuebner) and 4/5 is sunxi (Chen-Yu Tsai, Jernej Skrabec, Samuel Holland). All go through the ASoC tree. 3/5 was tested on 7.3.0-next-20261030 in a QEMU/TCG arm64 guest with a synthetic DT; the test section in that patch describes the setup and the observed reference counts. Shao Mingyin (5): ASoC: rsnd: fix NULL dereference when remote port has no endpoint ASoC: wcd9335: fix SLIM interface device double-put on error paths ASoC: rockchip: rk3399_gru_sound: fix codec node reference leak ASoC: sun8i-codec: fix bus clock leak in runtime resume error path ASoC: rsnd: fix SSIU node reference leak in rsnd_dma_of_path sound/soc/codecs/wcd9335.c | 4 ---- sound/soc/renesas/rcar/core.c | 2 ++ sound/soc/renesas/rcar/dma.c | 5 ++++- sound/soc/rockchip/rk3399_gru_sound.c | 8 ++++++-- sound/soc/sunxi/sun8i-codec.c | 1 + 5 files changed, 13 insertions(+), 7 deletions(-) --- base-commit: 7649ba73f9e7e1e04d0b46213e39c79ae09dd55c
Comments
On Sat, 07 Nov 2026 16:08:15 +0800, shao.mingyin@zte.com.cn wrote: > ASoC: fix error-path leaks and a NULL dereference > > Five error-path defects in ASoC drivers, found while reviewing against > linux-next next-20261030. Four of them leak a reference or a clock, or > drop one twice, on a path that is easy to miss; the fifth dereferences > a NULL remote port while parsing an audio graph. The patches are > independent and can be reviewed, applied and backported separately. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5 Thanks! [1/5] ASoC: rsnd: fix NULL dereference when remote port has no endpoint https://git.kernel.org/broonie/sound/c/ea3277e4a3d9 [2/5] ASoC: wcd9335: fix SLIM interface device double-put on error paths https://git.kernel.org/broonie/sound/c/b5aa000ab9f4 [3/5] ASoC: rockchip: rk3399_gru_sound: fix codec node reference leak https://git.kernel.org/broonie/sound/c/1ae5920938f2 [4/5] ASoC: sun8i-codec: fix bus clock leak in runtime resume error path https://git.kernel.org/broonie/sound/c/a32aac41b8ae [5/5] ASoC: rsnd: fix SSIU node reference leak in rsnd_dma_of_path https://git.kernel.org/broonie/sound/c/e64753959a3e All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark