From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9FD8351C0D for ; Wed, 8 Apr 2026 07:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775631716; cv=none; b=MI4Zbae615oDGuVu2MWrdqJMr6JlzVZW3QkRCBIRI1Pbv58KQDH3v4m/nSeVGmkfhqDQeaTB5gky6fPclH9w50/MQ2VOkfPa2omew6aUMm66prFeLbWYsdlmpMe1rd3tRv6NEQ2RYJ3V6vVAj7vzcMbgZh0wD+Nvo++lavLIakk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775631716; c=relaxed/simple; bh=mZoUGeuR+pxuqwii+NYBSvsBZwn6WFK21rv8fBde668=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=StgXwAEHJJPjqRI6itQINAuLwI6gMWOW8SModk7ro3eX+MJ4gYa8sBqL3AcFaJ9XhGIpfI9eSfGrGIHWeGnAPn88iKzyNLSEd7d3TA+Ud62HOS3dmEUtXaujrr6ZKQyVdi1FeRPdp3cHTe+6c+7KrrzFOC0QgSYI9hbLFbmXNVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H85KjCyR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="H85KjCyR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75AA9C2BC9E; Wed, 8 Apr 2026 07:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775631715; bh=mZoUGeuR+pxuqwii+NYBSvsBZwn6WFK21rv8fBde668=; h=Subject:To:Cc:From:Date:From; b=H85KjCyRd018NMvtoNCvY3cqPwnEnXk/r2BqWHn2ocpXTYErB1qVcvLbY/xj6W9iw aNGytnfos0CXgZ/5KO3mItFCM3WHzqGM6DjbTG6lwHg4EfVxiNKMoGSHPRzQOtPX7h M1Rwz1kvRTew2KF1QgjikWopiB2azfxwGUrMtvBM= Subject: FAILED: patch "[PATCH] misc: fastrpc: check qcom_scm_assign_mem() return in" failed to apply to 6.12-stable tree To: micro6947@gmail.com,dmitry.baryshkov@oss.qualcomm.com,gregkh@linuxfoundation.org,xjdeng@buaa.edu.cn Cc: From: Date: Wed, 08 Apr 2026 09:01:53 +0200 Message-ID: <2026040853-keg-enchanted-fd3d@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 6a502776f4a4f80fb839b22f12aeaf0267fca344 # git commit -s git send-email --to '' --in-reply-to '2026040853-keg-enchanted-fd3d@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 6a502776f4a4f80fb839b22f12aeaf0267fca344 Mon Sep 17 00:00:00 2001 From: Xingjing Deng Date: Sat, 31 Jan 2026 14:55:39 +0800 Subject: [PATCH] misc: fastrpc: check qcom_scm_assign_mem() return in rpmsg_probe In the SDSP probe path, qcom_scm_assign_mem() is used to assign the reserved memory to the configured VMIDs, but its return value was not checked. Fail the probe if the SCM call fails to avoid continuing with an unexpected/incorrect memory permission configuration. This issue was found by an in-house analysis workflow that extracts AST-based information and runs static checks, with LLM assistance for triage, and was confirmed by manual code review. No hardware testing was performed. Fixes: c3c0363bc72d4 ("misc: fastrpc: support complete DMA pool access to the DSP") Cc: stable@vger.kernel.org # 6.11-rc1 Signed-off-by: Xingjing Deng Reviewed-by: Dmitry Baryshkov Link: https://patch.msgid.link/20260131065539.2124047-1-xjdeng@buaa.edu.cn Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 19cfc487df7c..1080f9acf70a 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -2390,8 +2390,10 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev) if (!err) { src_perms = BIT(QCOM_SCM_VMID_HLOS); - qcom_scm_assign_mem(res.start, resource_size(&res), &src_perms, + err = qcom_scm_assign_mem(res.start, resource_size(&res), &src_perms, data->vmperms, data->vmcount); + if (err) + goto err_free_data; } }