From: Markus Elfring <Markus.Elfring@web.de>
To: Pei Xiao <xiaopei01@kylinos.cn>, op-tee@lists.trustedfirmware.org
Cc: LKML <linux-kernel@vger.kernel.org>,
Balint Dobszay <balint.dobszay@arm.com>,
Jens Wiklander <jens.wiklander@linaro.org>,
Sumit Garg <sumit.garg@kernel.org>
Subject: Re: [PATCH] tee: fix memory leak in tee_dyn_shm_alloc_helper
Date: Tue, 29 Jul 2025 18:54:15 +0200 [thread overview]
Message-ID: <c36fe8e0-332d-4453-817b-89fee2525fad@web.de> (raw)
In-Reply-To: <ae66122a86295f0ca5f2ff385ac2850360a805c1.1753251689.git.xiaopei01@kylinos.cn>
> When shm_register() fails in tee_dyn_shm_alloc_helper(), the pre-allocated
> pages array is not freed, resulting in a memory leak.
See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.16#n94
Regards,
Markus
prev parent reply other threads:[~2025-07-29 16:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 6:22 [PATCH] tee: fix memory leak in tee_dyn_shm_alloc_helper Pei Xiao
2025-07-29 9:27 ` Sumit Garg
2025-08-04 15:49 ` Jens Wiklander
2025-07-29 16:54 ` Markus Elfring [this message]
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=c36fe8e0-332d-4453-817b-89fee2525fad@web.de \
--to=markus.elfring@web.de \
--cc=balint.dobszay@arm.com \
--cc=jens.wiklander@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=op-tee@lists.trustedfirmware.org \
--cc=sumit.garg@kernel.org \
--cc=xiaopei01@kylinos.cn \
/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