Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp356770rwr; Wed, 19 Apr 2023 07:26:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bX+HfchDAydyNP3j2Gq17lev3ffPTtm24rzNgEy9nOAgt4E7o+q8F6koAHJJqfSStFdws2 X-Received: by 2002:a05:6a20:d2ca:b0:e6:f7e8:1e4d with SMTP id ir10-20020a056a20d2ca00b000e6f7e81e4dmr3599647pzb.33.1681914367865; Wed, 19 Apr 2023 07:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681914367; cv=none; d=google.com; s=arc-20160816; b=Ag1bCcmGmgYYO7HddXIf1LwBMY84UhVThZmEFwW6iOlODRsvy+kwFzMXTTj7e+YwZz CwEQhQaPUd+85DZQMI3dEoFWOS2LXyUOa8DRFqWwJqowmieHseEGWeQrQ/pe3PrjG/cN T9utXjfdZbq/BrphzaRD/512VVYGX8mawnuiBwYst0klppZQv2SJ8hRhlTiz53Rj784f nj4KxPDTPZtmrYD/lb0JcoycpqGpXv5Km1CNBijlUO51uUYXr4zpGrTNqo9emnlgUj4a q9C4lDXx0Clnja20N+9K9jp4Ptwe1SpxqQFYxurvV2W5xykO6hvGJRJNsGLzi4jgpY0S hTFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=lgHLwiIiZoesjfN0jw5tOPICMwU2GPTnNcdaEWScE00=; b=GgUtiXVncwNFFmtduLBQoQ4FEuV4I5XGDraKO9UMTA2R4TqZEM0y1OnuGF+U5k/f+o M1nWtJ5eQAo28ZMCsc/P2Y89ZYqM72SlKnSFX5xmx2Z6jVCVFL+Mvz4tTFFZDhhnp8sU V8yYS/9qM2+7GZIqOvbcEkRFVw+K5RCX52sb0EeAFIeW88UXMvHZVds3MZjMm6fXCsbV I8RTinX38R9lCUO61+uaXUjWV88HaCKO5q77OjPRBNiltIHzk/epFTlMRmD1dYDnKKM0 9fTz71JVGJt9zIEyvs/kskEDiVBpn8oTw3uH5Pc4bfE53yCQl/2lOYXH6+iWgqXgnDXP eiKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WZkty0bQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020aa799cb000000b0063d2c18473dsi5745062pfi.133.2023.04.19.07.25.56; Wed, 19 Apr 2023 07:26:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WZkty0bQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232405AbjDSOYM (ORCPT + 99 others); Wed, 19 Apr 2023 10:24:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232310AbjDSOYD (ORCPT ); Wed, 19 Apr 2023 10:24:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DA8FB774 for ; Wed, 19 Apr 2023 07:23:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 741E063BAD for ; Wed, 19 Apr 2023 14:23:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ADC8C4339C; Wed, 19 Apr 2023 14:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681914203; bh=Y7NtdRvmYffAP0FrGkf+Pv8B5hj7E6uae/PQvl6MaS0=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=WZkty0bQqzMKfoyrRccbSKpbRiEzNS5m3vNdN9kjx4OK+ujf8Dr7zDBRIDEJX7l+A /oaqUG6MTOm2Cb3rB6COeQ69GRfdloleSwXfcmCkf5mLvVTqyXGlK0PoJLGmR9UayM R/TStqm3LXaUJoQ9NHiSPsVlhvt09qBj1cC/v6SEAirutEftAoikqibiLJPm/aO3Ph OCpz5Yt0apuLBnaqx2riz2GDI2PWh1rJvxYYR7QZuBBnecaJtS9HuDDdpCOGF9zyXk ZotnIDTRuRHkHr7lcJJPZl4fvZI49fsnsqA1KBKvAZdJOBaSdwYH6iCC0hBoydNMoY /zxpAsncbTrbQ== From: Mark Brown To: Shengjiu Wang , Nikita Zhandarovich Cc: Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, Natalia Petrova In-Reply-To: <20230417133242.53339-1-n.zhandarovich@fintech.ru> References: <20230417133242.53339-1-n.zhandarovich@fintech.ru> Subject: Re: [PATCH] ASoC: fsl_asrc_dma: fix potential null-ptr-deref Message-Id: <168191420102.83860.17076301173895914430.b4-ty@kernel.org> Date: Wed, 19 Apr 2023 15:23:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-00303 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Apr 2023 06:32:42 -0700, Nikita Zhandarovich wrote: > dma_request_slave_channel() may return NULL which will lead to > NULL pointer dereference error in 'tmp_chan->private'. > > Correct this behaviour by, first, switching from deprecated function > dma_request_slave_channel() to dma_request_chan(). Secondly, enable > sanity check for the resuling value of dma_request_chan(). > Also, fix description that follows the enacted changes and that > concerns the use of dma_request_slave_channel(). > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl_asrc_dma: fix potential null-ptr-deref commit: 86a24e99c97234f87d9f70b528a691150e145197 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