From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 346C2CD68E4 for ; Tue, 10 Oct 2023 02:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HB5O+nKHdHHxCBPki3KzBrBz1ElA4OOvbqLcIy2QH6k=; b=Bu2t84CvfGqV3R JjgHMVg8XfdnfNo48xLAE0sOfbJNzyVSzllZgMCQjugRl3Inc6BLjzBFe+WZwv1ULMk5+g+VWnTQX xWgihJD4nYQzNADZr1pi5FDRd2m2EmmiHFy06Erht/2KHhkh+Tl+/tGb0BZ/TE5cf0oEtd3cWZ9UN CgeGMWPD6DKPBUnrN1cUvYX8d5oMFOKqxY2+sYLGFckPuWcxMbZ32FOmM88yTKNt9Q9IydyI/nvkd AnbfWKxyEhLkZ+7zOjujmX0tbGtBclRwzlS0AL0C3Yr98XlpMDUy8EMbN33TY3H6Rog8BmHs1cIyX ouz1iVM9AkkyjuM0tnkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qq2Yq-00C7Zu-2N; Tue, 10 Oct 2023 02:33:28 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qq2Yn-00C7Z5-10 for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2023 02:33:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id C7254B816C7; Tue, 10 Oct 2023 02:33:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B2E3C433C7; Tue, 10 Oct 2023 02:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696905203; bh=wEYcgGQVtUTfORpCNvBb2la3+23xg1zdIxa3uz8FPw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NTEGWxrtzeaVft2cUpn0DSaTYOm+quKuWCcoElJ+3j2DCvUGimykhc4A9n0Ic0m6M oeK6PVYnQvOLPCWgA5P4ssiCik7SY51DO+1ISnRGhGh5oIBpV0bkEYZPm8eLGaiB+1 M46ZdhTNdiO8K8yEFrwO12MnrCblWEnOTcSbua0sS0QSuEszLLidgsF3dj1eprbeax nZ4QURgBYfzlG0zzzABOnSP+wVpI4Rz5xxLLu4CGsSKgV1FgyWwWsQkOrWcq7aBv4s 47ljqGsf0buCMY5Rn99z0iqdsdoAIo+rjsMMwpq6NapZy+gKjR/MQL8xXPN/Yc8ywS olZNh1oxm+Dbw== Date: Tue, 10 Oct 2023 10:33:08 +0800 From: Shawn Guo To: Hao Ge Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, christophe.jaillet@wanadoo.fr, robh@kernel.org, treding@nvidia.com, daniel.baluta@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gehao618@163.com Subject: Re: [PATCH] firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels() Message-ID: <20231010023308.GM819755@dragon> References: <20231008032908.11448-1-gehao@kylinos.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231008032908.11448-1-gehao@kylinos.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231009_193325_545794_30C45B6C X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Oct 08, 2023 at 11:29:08AM +0800, Hao Ge wrote: > dsp_chan->name and chan_name points to same block of memory, > because dev_err still needs to be used it,so we need free > it's memory after use to avoid use_after_free. > > Fixes: e527adfb9b7d ("firmware: imx-dsp: Fix an error handling path in imx_dsp_setup_channels()") > Signed-off-by: Hao Ge Applied, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel