From: Ekansh Gupta <quic_ekangupt@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: <srinivas.kandagatla@linaro.org>, <linux-arm-msm@vger.kernel.org>,
<gregkh@linuxfoundation.org>, <quic_bkumar@quicinc.com>,
<linux-kernel@vger.kernel.org>, <quic_chennak@quicinc.com>,
stable <stable@kernel.org>
Subject: Re: [PATCH v4 06/11] misc: fastrpc: Fix memory leak in audio daemon attach operation
Date: Mon, 10 Jun 2024 14:38:32 +0530 [thread overview]
Message-ID: <2debb668-e649-4e54-a7ce-b1705e8872bc@quicinc.com> (raw)
In-Reply-To: <dkbyszjmah5swomq2b3nlk24mik5epiwfeey7c4khp2p74dxgm@4ccxtjnasyoc>
On 6/7/2024 4:58 PM, Dmitry Baryshkov wrote:
> On Thu, Jun 06, 2024 at 10:29:26PM +0530, Ekansh Gupta wrote:
>> Audio PD daemon send the name as part of the init IOCTL call. This
>> mane needs to be copied to kernel for which memory is allocated.
>> This memory is never freed which might result in memory leak. Add
>> changes to free the memory when it is not needed.
>>
>> Fixes: 0871561055e6 ("misc: fastrpc: Add support for audiopd")
>> Cc: stable <stable@kernel.org>
>> Signed-off-by: Ekansh Gupta <quic_ekangupt@quicinc.com>
> Fixes go before the non-fixes patches.
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>
>> ---
>> drivers/misc/fastrpc.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
>> index 13e368279765..7ee8bb3a9a6f 100644
>> --- a/drivers/misc/fastrpc.c
>> +++ b/drivers/misc/fastrpc.c
>> @@ -1380,6 +1380,7 @@ static int fastrpc_init_create_static_process(struct fastrpc_user *fl,
>> goto err_invoke;
>>
> A comment that the remote_heap persists would be helpful.
I'll add this information in remote heap redesign patch. Thanks.
--ekansh
>
>> kfree(args);
>> + kfree(name);
>>
>> return 0;
>> err_invoke:
>> --
>> 2.43.0
>>
next prev parent reply other threads:[~2024-06-10 9:08 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
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 [this message]
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=2debb668-e649-4e54-a7ce-b1705e8872bc@quicinc.com \
--to=quic_ekangupt@quicinc.com \
--cc=dmitry.baryshkov@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=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