Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Caleb Connolly <caleb.connolly@linaro.org>
To: Ekansh Gupta <quic_ekangupt@quicinc.com>,
	srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org
Cc: gregkh@linuxfoundation.org, quic_bkumar@quicinc.com,
	linux-kernel@vger.kernel.org, quic_chennak@quicinc.com,
	stable <stable@kernel.org>
Subject: Re: [PATCH v4 04/11] misc: fastrpc: Avoid updating PD type for capability request
Date: Fri, 7 Jun 2024 14:43:40 +0200	[thread overview]
Message-ID: <4ac692bf-55d5-4a66-acda-72353d817de4@linaro.org> (raw)
In-Reply-To: <20240606165939.12950-5-quic_ekangupt@quicinc.com>



On 06/06/2024 18:59, Ekansh Gupta wrote:
> When user is requesting for DSP capability, the process pd type is
> getting updated to USER_PD which is incorrect as DSP will assume the
> process which is making the request is a user PD and this will never
> get updated back to the original value. The actual PD type should not
> be updated for capability request and it should be serviced by the
> respective PD on DSP side. Adding changes to avoid process PD type
> modification.
> 
> Fixes: 6c16fd8bdd40 ("misc: fastrpc: Add support to get DSP capabilities")
> Cc: stable <stable@kernel.org>
> Signed-off-by: Ekansh Gupta <quic_ekangupt@quicinc.com>

Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
> ---
>   drivers/misc/fastrpc.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
> index f64781c3012f..abdd35b7c3ad 100644
> --- a/drivers/misc/fastrpc.c
> +++ b/drivers/misc/fastrpc.c
> @@ -1703,7 +1703,6 @@ static int fastrpc_get_info_from_dsp(struct fastrpc_user *fl, uint32_t *dsp_attr
>   	args[1].ptr = (u64)(uintptr_t)&dsp_attr_buf[1];
>   	args[1].length = dsp_attr_buf_len * sizeof(u32);
>   	args[1].fd = -1;
> -	fl->pd = USER_PD;
>   
>   	return fastrpc_internal_invoke(fl, true, FASTRPC_DSP_UTILITIES_HANDLE,
>   				       FASTRPC_SCALARS(0, 1, 1), args);

-- 
// Caleb (they/them)

  parent reply	other threads:[~2024-06-07 12:43 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-06 16:59 [PATCH v4 00/11] Add missing features to FastRPC driver Ekansh Gupta
2024-06-06 16:59 ` [PATCH v4 01/11] misc: fastrpc: Add missing dev_err newlines Ekansh Gupta
2024-06-07 12:41   ` Caleb Connolly
2024-06-06 16:59 ` [PATCH v4 02/11] misc: fastrpc: Fix DSP capabilities request Ekansh Gupta
2024-06-07 11:08   ` Dmitry Baryshkov
2024-06-07 12:39   ` Caleb Connolly
2024-06-06 16:59 ` [PATCH v4 03/11] misc: fastrpc: Copy the complete capability structure to user Ekansh Gupta
2024-06-07 11:09   ` Dmitry Baryshkov
2024-06-07 12:42   ` Caleb Connolly
2024-06-06 16:59 ` [PATCH v4 04/11] misc: fastrpc: Avoid updating PD type for capability request Ekansh Gupta
2024-06-07 11:12   ` Dmitry Baryshkov
2024-06-07 12:43   ` Caleb Connolly [this message]
2024-06-06 16:59 ` [PATCH v4 05/11] misc: fastrpc: Add static PD restart support Ekansh Gupta
2024-06-07 11:25   ` Dmitry Baryshkov
2024-06-10  9:05     ` Ekansh Gupta
2024-06-10 18:24       ` Dmitry Baryshkov
2024-06-07 13:45   ` Caleb Connolly
2024-06-10  9:07     ` Ekansh Gupta
2024-06-06 16:59 ` [PATCH v4 06/11] misc: fastrpc: Fix memory leak in audio daemon attach operation Ekansh Gupta
2024-06-07 11:28   ` Dmitry Baryshkov
2024-06-10  9:08     ` Ekansh Gupta
2024-06-06 16:59 ` [PATCH v4 07/11] misc: fastrpc: Redesign remote heap management Ekansh Gupta
2024-06-07 11:35   ` Dmitry Baryshkov
2024-06-06 16:59 ` [PATCH v4 08/11] misc: fastrpc: Fix ownership reassignment of remote heap Ekansh Gupta
2024-06-07 11:36   ` Dmitry Baryshkov
2024-06-06 16:59 ` [PATCH v4 09/11] misc: fastrpc: Fix remote heap alloc and free user request Ekansh Gupta
2024-06-07 11:41   ` Dmitry Baryshkov
2024-06-06 16:59 ` [PATCH v4 10/11] misc: fastrpc: Fix unsigned PD support Ekansh Gupta
2024-06-07 11:46   ` Dmitry Baryshkov
2024-06-06 16:59 ` [PATCH v4 11/11] misc: fastrpc: Restrict untrusted app to attach to privileged PD Ekansh Gupta
2024-06-07 11:50 ` [PATCH v4 00/11] Add missing features to FastRPC driver Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ac692bf-55d5-4a66-acda-72353d817de4@linaro.org \
    --to=caleb.connolly@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_bkumar@quicinc.com \
    --cc=quic_chennak@quicinc.com \
    --cc=quic_ekangupt@quicinc.com \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=stable@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox