Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp305897lqp; Tue, 11 Jun 2024 05:23:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrOyLxk6NPozmKsYTFoJ+cv4mHEzUMZTTz7ilDjO+Mdc2x74bFcrHmlAVJudJI2asS/e69+/3XDLIFy6Zp5MeUXrqhXk4/NE9xKTPxJA== X-Google-Smtp-Source: AGHT+IEF8ADOwsY1vWLkgq/EgHd8xhbnMtM1DBbw3sFkgfP8WvdgqN/0wS2SePRbmCK+rXIckjrB X-Received: by 2002:a17:902:b283:b0:1f6:521a:ba30 with SMTP id d9443c01a7336-1f7287bc9e5mr28880955ad.15.1718108608355; Tue, 11 Jun 2024 05:23:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718108608; cv=pass; d=google.com; s=arc-20160816; b=O+R0ZdA/NlTccS3z/0d99LZ0co4/u+TcT1abbn/dlvhzjSFeh7BpCjlFV5nRjwXr4s /iiy54Y7UoFICS4Pv3BLdKrP7wehoZyNzbpgLZSxxmfxYhjigk92m+rX1bVbrY3x+INI 8wMPTV7JXyfxe1S6tMPsC8Ul7uwIwKvHP+g3teHyCsxiYCFvR/j9Lq+1+wfonMUWO5hV qGYFFDPnsWSjMNCG4tHwMTSh40Zr/cVmlKhAEm/+6SZUpgBohobmsp0vouO3DMBJPiw7 BJ3Xab/PdloVJ7s6xraFpBmJQph5qmMgxVA+6GMg1H3dWkPJs39fAlUa5hHcYjO0W+7E ODtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=EUpzl6wit0+FDgfySZXvlg7FvtOLZgcqhU3pCudAFIc=; fh=3/KkRMjZ8uhX0VrSmx2gKAtdO5j+TgU508N0MjsRlqY=; b=Gbfc1XOQq94dOgE1P8RpeSUE+ApsGiGPkZwBuBef/719xDQvsnjEi7bGcIgLV/aKor x+0TFJekBwNJkWogjySWkeeTFbh8n/Up/FBU7sySkNToYMiqt/leyPurqfYERCBr6anQ shkcrqst1PCnP2EKD6k1/ovvFQ3P/hgdSEj+Z8uFePOYK1jY4LPCeWXLa6+XgTtTVW2B 9SAj/oqkOn2dhbONm3s1g21yCLJ3FJC7nYXg45aYglgSG5n314xv6CcCZ6vxcqEag4bC IzxrKgnUIhpzKKq1+dC3vTrhmZI5P20iR4aG6a98GTFVRLqOe5tf7CzpeVDi9VPADLqu aHxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xEug2285; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-209810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6f91af3a2si52026805ad.212.2024.06.11.05.23.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xEug2285; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-209810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F3E6FB2807E for ; Tue, 11 Jun 2024 11:55:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94C6B17C202; Tue, 11 Jun 2024 11:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xEug2285" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DFDE17B514 for ; Tue, 11 Jun 2024 11:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718106865; cv=none; b=Ob+GqYyExlN0y/XF8UhkK4Mf2daRQiQq/7Molb5TDCliRPuYOQsyQA6/UjKtBdLKoN8igcZCfko1T5z4iLZC+3tILlY/urcXl/9b8RtoKX+BnvXW9jJibXXhuT0hbpfI5jxE28MpwZhGGGGDYpbsKN/aCBJRRAL4ND/rALI5sAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718106865; c=relaxed/simple; bh=TPskSCV1ByN6PwkEkrDCakDuKheDqbde4+cyZylMKeA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WDpzZEmaOIDwkQbmsoL9Xw11OsyAnhEbJprINlnZa6Ce1YmMSKd28eUze1bamfyIKcipjdHxQcfdQGAnuXp3eX1UVZSz4piYPomiOxPAc28whyfUKQG/kCmbQpR6FXiarBH2GMFRIMVE8MhvRBrTeHcmO8NQbFp3Ot1yXbxgKts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xEug2285; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a6f09b457fdso266705366b.2 for ; Tue, 11 Jun 2024 04:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718106862; x=1718711662; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EUpzl6wit0+FDgfySZXvlg7FvtOLZgcqhU3pCudAFIc=; b=xEug2285HymjnQsfp7xJ7L8rTWI7csVRr1/GI5GmL/+LojWsIWqEB/+sEO3+aBzwJG ZEg18GhOgI0vswfzKOH5xpXLlGrq6uORv8l+GVpB6EVYDzFmFrAUvieqj4p1/9+npyD4 qapxsbI9HwyjWjZsEP16jiPGfIhYHwSkAYl8qbevo9JPKkb8f0ArpxrM1ACsx/DGHdzY G1fAZGVCBS66zW2iyV7m06JMKDEyiUT9A/czfUzNkYMBhRSADotNIiYJzsv4/AOnIXDM IxKGk3l59DZzniy/NSJv+SJZNIfWmA5xm2F1tpdqnGePM1vPE+sAn7BlqrJ2332+jZF+ +ugw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718106862; x=1718711662; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EUpzl6wit0+FDgfySZXvlg7FvtOLZgcqhU3pCudAFIc=; b=o29VFTi9s8imdcWLiACgEvZn+uUs0EIDlVhzOqId35P1u2DNtW8PzxGkOrCnQSLfWn AmbvneN4YEB6DdrNpqhWOKPQkX952Cou9l4JbBzB/FCb9V6smPQpjYExQELPG+GXuFSN eUdX12/m84P5u5pks2ieUJYTavU7fgGtp4wyfNvAVJb9J6x7ZvjCADJmOIBKdK6NPv/D r3l6fzSLkWfS4qjoLEKChBO0pc3nQUp1CyWciUe8a6uyW3N0W/yMocJQ1NFQg/q2KD6V F+Hl812XIF0XHQUJ6j0wQ0kf019M1JgtDKf4yZtYvPDC15S0LilBhWSNxjB0IxLO1NR9 jDtw== X-Forwarded-Encrypted: i=1; AJvYcCUEGMWHDVL0sBnc+iJR1KAx9/cNxydwedOrh0mwjPcOKw5UYqFdN1y/7/wwEysKCkU7xulVDtKa47HUka+EbA162E43uSrtimTa/2Ni X-Gm-Message-State: AOJu0Yz+T3cAz87lvTRLK4rbf3JZID6mD6Wn5+Gf0ue5LOJFP93+rV0+ O/GK7izvdmEDBDNyqkAyD2tVrOLEWQDDz3Jsmf3519n7y2pF1OxnZWgRwyMlQ5Y= X-Received: by 2002:a17:906:579a:b0:a6f:16c7:9130 with SMTP id a640c23a62f3a-a6f16c79640mr368006266b.28.1718106862182; Tue, 11 Jun 2024 04:54:22 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a6f2706d8ebsm180513766b.114.2024.06.11.04.54.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 04:54:21 -0700 (PDT) Message-ID: <9518804b-a231-40db-82ae-5f8a44edf88f@linaro.org> Date: Tue, 11 Jun 2024 12:54:21 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/7] Add missing fixes to FastRPC driver To: Ekansh Gupta , linux-arm-msm@vger.kernel.org Cc: gregkh@linuxfoundation.org, quic_bkumar@quicinc.com, linux-kernel@vger.kernel.org, quic_chennak@quicinc.com References: <20240611103442.27198-1-quic_ekangupt@quicinc.com> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: <20240611103442.27198-1-quic_ekangupt@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for Patches, Please send the patches in correct order, fixes will follow enhancements. --srini On 11/06/2024 11:34, Ekansh Gupta wrote: > This patch series adds the listed bug fixes that have been missing > in upstream fastRPC driver. > - Fix DSP capabilities request. > - Fix issues in audio daemon attach operation. > - Restrict untrusted app to attach to privilegeded PD. > > Changes in v2: > - Added separate patch to add newlines in dev_err. > - Added a bug fix in fastrpc capability function. > - Added a new patch to save and restore interrupted context. > - Fixed config dependency for PDR support. > > Changes in v3: > - Dropped interrupted context patch. > - Splitted few of the bug fix patches. > - Added Fixes tag wherever applicable. > - Updated proper commit message for few of the patches. > > Changes in v4: > - Dropped untrusted process and system unsigned PD patches. > - Updated proper commit message for few of the patches. > - Splitted patches in more meaningful way. > - Added helped functions for fastrpc_req_mmap. > > Changes in v5: > - Dropped PDR patch. It will be shared in a separate patch series. > - Dropped fastrpc_req_mmap and remote_heap specific changes from this > series. These patches will be shared separately as a new patch series. > - Changed patch series subject as this series is no longer carrying any > new feature changes. > > Ekansh Gupta (7): > misc: fastrpc: Add missing dev_err newlines > misc: fastrpc: Fix DSP capabilities request > misc: fastrpc: Copy the complete capability structure to user > misc: fastrpc: Avoid updating PD type for capability request > misc: fastrpc: Fix memory leak in audio daemon attach operation > misc: fastrpc: Fix ownership reassignment of remote heap > misc: fastrpc: Restrict untrusted app to attach to privileged PD > > drivers/misc/fastrpc.c | 51 +++++++++++++++++++++++++++---------- > include/uapi/misc/fastrpc.h | 3 +++ > 2 files changed, 40 insertions(+), 14 deletions(-) >