Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: wen.yang99@zte.com.cn
Cc: linux-kernel@vger.kernel.org, xue.zhihong@zte.com.cn,
	wang.yi59@zte.com.cn, cheng.shengyu@zte.com.cn,
	tglx@linutronix.de, mcgrof@kernel.org, mpe@ellerman.id.au,
	netdev@vger.kernel.org
Subject: Re: [PATCH] net: pasemi: fix an use-after-free in pasemi_mac_phy_init()
Date: Mon, 08 Jul 2019 16:33:25 -0700 (PDT)	[thread overview]
Message-ID: <20190708.163325.1977216943079953279.davem@davemloft.net> (raw)
In-Reply-To: <1562387021-951-1-git-send-email-wen.yang99@zte.com.cn>

From: Wen Yang <wen.yang99@zte.com.cn>
Date: Sat, 6 Jul 2019 12:23:41 +0800

> The phy_dn variable is still being used in of_phy_connect() after the
> of_node_put() call, which may result in use-after-free.
> 
> Fixes: 1dd2d06c0459 ("net: Rework pasemi_mac driver to use of_mdio infrastructure")
> Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>

Applied.

      reply	other threads:[~2019-07-08 23:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-06  4:23 [PATCH] net: pasemi: fix an use-after-free in pasemi_mac_phy_init() Wen Yang
2019-07-08 23:33 ` David Miller [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=20190708.163325.1977216943079953279.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=cheng.shengyu@zte.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=netdev@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=wang.yi59@zte.com.cn \
    --cc=wen.yang99@zte.com.cn \
    --cc=xue.zhihong@zte.com.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