Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10257472rwr; Fri, 12 May 2023 06:04:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yaa4YIdj0kVY6IvO1foD4P9SgCs3GKn2qER4xQidqtwXP+6nhVOs1B0xvZR5mc/3MBpbP X-Received: by 2002:a05:6a21:32a8:b0:100:60f3:2975 with SMTP id yt40-20020a056a2132a800b0010060f32975mr23320483pzb.4.1683896688017; Fri, 12 May 2023 06:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683896688; cv=none; d=google.com; s=arc-20160816; b=jVJObK4vCyRemijRKeEzkPkh5HLtzoGV5N8RcdJoYLOlvMwCuuSe/RO2Y7PCzpovNX yojvkpklCtOsLejrLLM8RSk1xXBssiWig881+SzGlEpxICeWtsGTPgWMkWCXLpnN2t0S stFcJP+PDA0O4OLLGyIXDRSQ/BI4/JC7MFTFIZ+ntV78VUAJEhVK72l8V1MkiKO49oE1 uAC1Fdl4PyQEmfHkV6yON+AYn/Rmemobv6Qo+Z1sbuJ6PdC5NBWC04KI2azLnFZdINTW pC24aZyd4wYNX3QJlsN2pH5b8q2SGqgAbjKoxs1QcoBym+XD+sRk97J7ivIVJgHx9H+/ heVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wYBrXrkZvtGUdnl+T9M4zNPAIaDpUkdt7BFmY49m2ZI=; b=QLXCDjLIrQTyuyJkgXo8teSyq+AQmsi9gEQ2VXJA+Bozn32ls6EH6KH0fvqByhxSpD vzK4WGMvo5mvXfyiMMtmZMVo8KXj/3uCEFz3V44GNUeKO+UHwrYRphD1OURS0NbSFaNK MV2rUECh+17vzmsdCRkx975si+KTm88IBmFguzqWvUeo5VQayQDyK+knQfezATN9QmeJ y5O9AtGErJjsgdWiXf82TPt306ivg1u7fyejD8adacOwrUtqH6uMJ1KH10E1lSBRbHV7 n5m4aStuG2ph7abX0zDashnpGQH4CyahmPYP7JlrPdZPWrSid9v/nd+MnSkIfc9aB6jI zEKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZbgA8DY0; 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 y75-20020a62644e000000b00648628d3103si6358653pfb.377.2023.05.12.06.04.31; Fri, 12 May 2023 06:04:47 -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=ZbgA8DY0; 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 S240932AbjELMki (ORCPT + 99 others); Fri, 12 May 2023 08:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240499AbjELMkg (ORCPT ); Fri, 12 May 2023 08:40:36 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89A265A4 for ; Fri, 12 May 2023 05:40:17 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f4271185daso57506375e9.2 for ; Fri, 12 May 2023 05:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683895216; x=1686487216; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wYBrXrkZvtGUdnl+T9M4zNPAIaDpUkdt7BFmY49m2ZI=; b=ZbgA8DY0DZ+xjn65/9QBCA6eVuMjDzEnT5SLZASnCeknNfA1Dz4gRIdPiZAAVpRD8H xJfTgCW62q81Dc7rOigwzeBngfPdRC4Tv013c8bgBNY4jX4x9d5eovBz4OceFNH4NSM0 Radzx9jDmt4AQKEWSQfoN4t2cK0VmnKMA3Alw5EOpgFHCAH/MZjcQkTBZszOVutv92q9 iLy/3zBfXhFtvC3byTILlU8TKz/sYpm3944ZOmr9DUXtoIjShZnkIKhdzhfprgCP4RNZ SGgYQdZW1cnkzux80fPTKSSLUJjxgcto0akvwtpNqpSxXzn0sMC1hVCpwjltSGOJOKlX ChHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683895216; x=1686487216; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wYBrXrkZvtGUdnl+T9M4zNPAIaDpUkdt7BFmY49m2ZI=; b=hMLuSrCpS29K+VVf8VFZbFTTuRZ0W0yYZrdxN5g2fetvVYI35k0ftXZGlelADaNWWl DVfo23QGr53HIfbWdaIkfsiIKd9z+kistlf2d+Kf/mJb5LxZWxIn1Ev8dfH+j4wtFHl4 i7wx5jViqIIytCET7AL1jRWk5dUBnsBXtG7yhthAC6Dh+y1xR+i0GMn/8b9Jton/Wfxm XfL0IaOsYMFjy8WrkhgwLWwGUowUTwnWZGy9j4DVUSQrpVAr7WrKCkcgJVqUHTeSgc/f HMNWmcycBW6wGgytiFDAhBqEtwSEDwOD3wsGy2tw0uh3rj9FEjInYUrrNAWDwK5YMey4 J2GA== X-Gm-Message-State: AC+VfDwUBycyAFzI5fAdwphibqQ6Q83h0nOtwMt/GsZL3GfsNDjHYwfD Wu6Ev1/0AvG9WCF10IXwlBoC9w== X-Received: by 2002:a05:600c:22ca:b0:3f4:2158:2895 with SMTP id 10-20020a05600c22ca00b003f421582895mr12882808wmg.3.1683895216317; Fri, 12 May 2023 05:40:16 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id 21-20020a05600c029500b003f42d8dd7d1sm9274290wmk.7.2023.05.12.05.40.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 05:40:15 -0700 (PDT) Message-ID: Date: Fri, 12 May 2023 13:40:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1] misc: fastrpc: Reassign memory ownership only for remote heap Content-Language: en-US To: Greg KH Cc: Ekansh Gupta , linux-arm-msm@vger.kernel.org, ekangupt@qti.qualcomm.com, linux-kernel@vger.kernel.org, bkumar@qti.qualcomm.com, fastrpc.upstream@qti.qualcomm.com, stable References: <1679394100-27119-1-git-send-email-quic_ekangupt@quicinc.com> <17185edd-aa6f-386b-4252-0c6eac1ddcfc@linaro.org> From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 29/03/2023 11:09, Greg KH wrote: > On Tue, Mar 21, 2023 at 08:53:33PM +0000, Srinivas Kandagatla wrote: >> >> >> On 21/03/2023 10:21, 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. >>> >>> Fixes: 532ad70c6d44 ("misc: fastrpc: Add mmap request assigning for static PD pool") >>> Cc: stable >>> Tested-by: Ekansh Gupta >>> Signed-off-by: Ekansh Gupta >> >> Thanks for fixing this, without this fix the code inside if condition was a >> dead code. >> >> >> Reviewed-by: Srinivas Kandagatla > > Are you going to be collecting these and sending them on? If not, > please do. Sorry for long delay, I will take care of collecting fastrpc patches and send it. --srini > > thanks, > > greg k-h