From: Tom Rini <trini@konsulko.com>
To: Jacky Chou <jacky_chou@aspeedtech.com>
Cc: joe.hershberger@ni.com, rfried.dev@gmail.com,
marek.vasut+renesas@mailbox.org, michal.simek@amd.com,
u-boot@lists.denx.de, BMC-SW@aspeedtech.com
Subject: Re: [PATCH] net: phy: ncsi: fixed not nullify the pointers after free
Date: Thu, 28 Mar 2024 11:08:46 -0400 [thread overview]
Message-ID: <20240328150846.GS3442575@bill-the-cat> (raw)
In-Reply-To: <20231229014555.3781595-1-jacky_chou@aspeedtech.com>
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
On Fri, Dec 29, 2023 at 09:45:55AM +0800, Jacky Chou wrote:
> The issue occurs the UAF (use-after-free) to cause double free
> when do the realloc function for the pointers during the
> reinitialization NC-SI process, and it will cause the memory
> management occurs error.
> So, nullify these pointers after free.
>
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2024-03-28 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-29 1:45 [PATCH] net: phy: ncsi: fixed not nullify the pointers after free Jacky Chou
2024-03-28 15:08 ` Tom Rini [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=20240328150846.GS3442575@bill-the-cat \
--to=trini@konsulko.com \
--cc=BMC-SW@aspeedtech.com \
--cc=jacky_chou@aspeedtech.com \
--cc=joe.hershberger@ni.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=michal.simek@amd.com \
--cc=rfried.dev@gmail.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.