From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796179764; b=PkobOrjkLG/MLFKwoNNJWXEKO4+1m8qIFwKrF1+8uZgfmnaCtMXN19kvMLwxjuG4irJm bcCK2X0moX6/oDFXH1uA8H8AXaNLeqERbsNNa9Yz5Nlnn8EvlcVI4HZZ2B0xLVX2+VtjE 4XHDUCx1JywYTO5uwx/2YpJeJbIDg/iONKtnNd0SHBwtl6ejoDyGSbGL5n7dsU22c2+zL KgeWoIpkLi/hXM3BHXt+daMN97ELyVSsGkfuSjYjoK2UJr2kuyKVU1m12SuLegvSMpmPy PZhJfzKBe48at2TivQJs0wbJz1gleDrplR7NY6rzNStDp+Gz8jNSGvgrDiUrwbBe3Mg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796179764; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=6jLZo6xmC4nqLbUPZyxXnb34qNMVMujB1usk4sESFMw=; b=eYQZDOq2YgUIigHkBwXC1cJ78Hup/WvWryvFtntWr985QXXJUxN/S4anVDJfqIifCnFl Ar7nUSp79tX+rDTo10wqRRRnD56Adv4CiBFxdPSrdRlFS1PV/ezmhanhhZ2zX4WVklajP cVViRobcaPz36x4I7ChyZsp2jkhiKIxwUr8N00DR5TgDhxSuv9IMvjTNjaTMUiTMpwnGu bSR9B0zN6yScb/Z48Q01XqJ26SwweEmB6xA43XZjLnlWPem/3KQhwpmxUfcgAwiM+PYNK QtfoId3KG+W+0oYFt+YMj++LiWPGqmMa+ae6YaI1tydQw5K2FM0AgUpNvwjOvtCcmsQ== 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=jDbCLqbJ; arc=none smtp.remote-ip=100.103.45.18 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 42175606A336 for ; Wed, 2 Dec 2026 02:49:24 +0000 (UTC) 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=jDbCLqbJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6FD21F000C1; Wed, 2 Dec 2026 02:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796179764; bh=6jLZo6xmC4nqLbUPZyxXnb34qNMVMujB1usk4sESFMw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=jDbCLqbJcqL6DVSpYdUjoD3t2rbOOcTC2+JUJYTwKK2tvwxhMZ1qf/ZByGyoklM5W +oJIbUuB3dnYcPTj8hir7R/FKBBvMCEeU+yYg02XHq0CzNKSacNZpfERvzVJ69qL3z ajLoCe/RE6t740ca/Ui/CNX2AJad0kSMFcA6tczKrqqciAWnyU1cM9AJZFr6fzO7wK Lk8msxLZQkO4N5M+E2IWPLjHpDFJArxktyI9sE3sda8Bc3/Hn/rT2Jw3Txd7FwK79Q IV3Hz3fk/hTFdB7VbfRDA7E2cFnk5wX1M5y1zynEsLROwn2ufM1RjZylu1d+K747ek T2grop7PRVhAA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] ASoC: intel: atom: SST: log the byte-stream message header before handing it to the dispatch queue (uaf read of struct ipc_post) Reply-To: sashiko-reviews@lists.linux.dev To: "Hanxiang Xu" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261202021839.1-1-xuhx@hust.edu.cn> References: <20261202021839.1-1-xuhx@hust.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 02:49:23 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ASoC: intel: atom: missing Fixes trailer for commit 3d9ff34622ba -- commit f398b69655e68249bdc3b3cc93a5c1f5b263b34b Author: Hanxiang Xu > ASoC: intel: atom: SST: log the byte-stream message header before handing= it to the dispatch queue (uaf read of struct ipc_post) > > sst_send_byte_stream_mrfld() hands its struct ipc_post to the > dispatch queue with sst_add_to_dispatch_list_and_post() and then keeps > dereferencing the local msg pointer in a dev_dbg(). Ownership was > transferred at hand-off: sst_post_message_mrfld() kfree()s the message > it dequeues before returning, so with dynamic debug enabled for this > callsite every byte-control/mixer parameter write to the SST DSP is a > use-after-free read of the freed header; with the IPCX register busy > the free happens from the done-interrupt workqueue instead, racing > the read. sst_prepare_and_post_msg() logs the same header before > posting - this callsite is the odd one out. > > Log the header before the hand-off and never touch msg after > sst_add_to_dispatch_list_and_post(). > > Cc: > Signed-off-by: Hanxiang Xu [Severity: Low] Should this bug fix include a Fixes: tag for the commit that introduced sst_send_byte_stream_mrfld()? Fixes: 3d9ff34622ba ("ASoC: Intel: sst: add stream operations") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202021839.1-1-= xuhx@hust.edu.cn?part=3D1