Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10438623rwr; Fri, 12 May 2023 08:09:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Qw1u2B4BNmjau6+DWBs8QnJ6z9dOffw+7qHjIY+e2qxg7rOmn+uDYjURdA2E6qtcclhIT X-Received: by 2002:a17:902:d486:b0:1ac:a28e:4b1d with SMTP id c6-20020a170902d48600b001aca28e4b1dmr15537127plg.34.1683904195027; Fri, 12 May 2023 08:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683904195; cv=none; d=google.com; s=arc-20160816; b=E2/fZTeqG1Jt8jwRHRRKTanJVVysA2WTiK3OSVyOqSLGmbRyjkE0RTsm7gEo6S8ez9 v6pn8RFG3JijiEXl4vSb6FDi3/5N4xJWe1YpRsI83A+DuztLdU6kotQfh5nvB8rx8LHg YRC80Udjfv+fM+x0x/AEwsDIapjIGVm9WjNqV+fE8aG/vw5PUn2Qkpq873qqH1lP3cSG vBkTjQcpcfSqxValEpBSlVOPgdj/ZKKnmbgzJ4yWjXCzgUxQomrx/MMHQ60orf9fKRLW mR0ZtsSJ/qVHw5LqaANXyfs2uHk+sErUD5o8N1PxUhj45WiENQy3B0rTJvuBN+t+lvz6 EXRg== 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=k/c6xQdMNlqD6BX9rAHAsLSjJBDh1LbniTf1OGAulrY=; b=oRA3pR255oUGCTfpYdqnmR+N/Qs6NVFznl3X8x5dgk5PSrlFcXhyZL6Cv2Dc6nBpxx k0mHRrebilLvtEOhNUxSCN2SDYcgqOb7sUw92y7kWJINxzvjeSc5SsNEFehrbHBxNVO3 N+IFRax+tOzljQ1I3+gNqh7OyMHfp9sdpa4wY+nDeWGUjiyxVa4kQWDhiU0A8BPAAJkU s0pgT5KuKQD3UKSHGcODWBvcPmYWwuaIuOoqRlD0hs+0ISsWt4mMKoBznH5Y3FVgxsxg eVwkQuSHqH+IbJCNzdTtQjw5N3s6EoRb6seSagVcnQUdpLqd3bU7EjbNRhSDJPxScCDa 770A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U2JR9M3K; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170903229200b0019fe9a63cf2si9929756plh.609.2023.05.12.08.09.40; Fri, 12 May 2023 08:09:55 -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=@linaro.org header.s=google header.b=U2JR9M3K; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241536AbjELOy5 (ORCPT + 99 others); Fri, 12 May 2023 10:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241625AbjELOyv (ORCPT ); Fri, 12 May 2023 10:54:51 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D61E010A0A for ; Fri, 12 May 2023 07:54:40 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f315712406so325594615e9.0 for ; Fri, 12 May 2023 07:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683903278; x=1686495278; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k/c6xQdMNlqD6BX9rAHAsLSjJBDh1LbniTf1OGAulrY=; b=U2JR9M3KsiuTLgnyul8FlKynONlWgVFiVIR9EFUtuPYv4x+DUoZEI3pmNxbDCbASva c+0KKSPZhLfwTHLjqXbliWEOANLEqAmcL8T8R+HJICchD+HG4OonhZXLOBSFIKAD3SXc 04DmZBs6n/QMuPSv3V44+n6HLVO3i2PVh7uyxe9UdDnq50xjAj+agCWMGR41NYgw31rl MmeCGXLRFmqjEnnH1VHvkmOeHbzGQ6+VNqu6mMQge/xVCOp2uxJbUeRONhckqoXOjugb sb5vzECoctwRRvcs6jTisujerrpzoMP7nFfJbe225QyRd9aOAbdfWfaUrod6d4U3iPXc 9nsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683903278; x=1686495278; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k/c6xQdMNlqD6BX9rAHAsLSjJBDh1LbniTf1OGAulrY=; b=cTGdegFqGQNz0CkhtrcNlj8YSYAXi5dAqOMWk+yrH0OeOR2N+h7wz9hafc/0X5qI+n U3UpBgjEQ6EZbmMnE+Fedqitt216rpurNw8I5OM7Mn1ttaHpRjSgeTfrTq7dgT96Opjk KDdlf2XfZ6YnP7dVk/x682laZ6Cs4E//eAO9iiiIYaB5AKEvn6G/uMJ7r8cPH8ygvnGX gTxdqEYhvOrpBfsr5Q/87RJuhTsL0gqEuF2WqLPY/E3LMQgS4cYjsKSCyFOqRfFDlWvg IsA066xk9Pyx4d34o0roZoxp3zIznoOjGUtt9XDK6C/iug+pvskooMqJh0nxxR8QU194 mhIg== X-Gm-Message-State: AC+VfDxZEXLw06O4EZV2+vjlbhqvU+vBMp5z0Ka9j6s4s/s86WfLEn5z dXzi384Lk44cEo4V/j3GIT1ABg== X-Received: by 2002:a05:600c:2197:b0:3f4:2158:28a0 with SMTP id e23-20020a05600c219700b003f4215828a0mr12511244wme.12.1683903278554; Fri, 12 May 2023 07:54:38 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id v2-20020a1cf702000000b003f32f013c3csm28953540wmh.6.2023.05.12.07.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 07:54:37 -0700 (PDT) From: Srinivas Kandagatla To: linux-arm-msm@vger.kernel.org, Ekansh Gupta Cc: ekangupt@qti.qualcomm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, bkumar@qti.qualcomm.com, fastrpc.upstream@qti.qualcomm.com, stable In-Reply-To: <1679394100-27119-1-git-send-email-quic_ekangupt@quicinc.com> References: <1679394100-27119-1-git-send-email-quic_ekangupt@quicinc.com> Subject: Re: [PATCH v1] misc: fastrpc: Reassign memory ownership only for remote heap Message-Id: <168390327749.185210.3662822283273466169.b4-ty@linaro.org> Date: Fri, 12 May 2023 15:54:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Tue, 21 Mar 2023 15:51:40 +0530, Ekansh Gupta wrote: > The userspace map request for remote heap allocates CMA memory. > The ownership of this memory needs to be reassigned to proper > owners to allow access from the protection domain running on > DSP. This reassigning of ownership is not correct if done for > any other supported flags. > > When any other flag is requested from userspace, fastrpc is > trying to reassign the ownership of memory and this reassignment > is getting skipped for remote heap request which is incorrect. > Add proper flag check to reassign the memory only if remote heap > is requested. > > [...] Applied, thanks! [1/1] misc: fastrpc: Reassign memory ownership only for remote heap commit: 5fad4a6b2d8f05c4823a08465e584f46df798b1f Best regards, -- Srinivas Kandagatla