All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: hayeswang@realtek.com
Cc: netdev@vger.kernel.org, petr.vorel@gmail.com,
	nic_swsd@realtek.com, linux-kernel@vger.kernel.org,
	linux-usb@vger.kernel.org
Subject: Re: [PATCH net] r8152: fix the list rx_done may be used without initialization
Date: Tue, 21 Mar 2017 14:37:29 -0700 (PDT)	[thread overview]
Message-ID: <20170321.143729.15606239118290633.davem@davemloft.net> (raw)
In-Reply-To: <1394712342-15778-252-Taiwan-albertk@realtek.com>

From: Hayes Wang <hayeswang@realtek.com>
Date: Tue, 14 Mar 2017 14:15:20 +0800

> The list rx_done would be initialized when the linking on occurs.
> Therefore, if a napi is scheduled without any linking on before,
> the following kernel panic would happen.
> 
> 	BUG: unable to handle kernel NULL pointer dereference at 000000000000008
> 	IP: [<ffffffffc085efde>] r8152_poll+0xe1e/0x1210 [r8152]
> 	PGD 0
> 	Oops: 0002 [#1] SMP
> 
> Signed-off-by: Hayes Wang <hayeswang@realtek.com>

Applied.

      parent reply	other threads:[~2017-03-21 21:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13 12:47 [PATCH 1/1] r8152: fix NULL pointer dereference in r8152_poll Petr Vorel
2017-03-13 13:18 ` Eric Dumazet
2017-03-13 13:19   ` Eric Dumazet
2017-03-13 15:37     ` Petr Vorel
2017-03-13 15:44       ` Eric Dumazet
2017-03-13 15:46         ` Eric Dumazet
2017-03-13 21:57           ` Petr Vorel
2017-03-14  6:15             ` [PATCH net] r8152: fix the list rx_done may be used without initialization Hayes Wang
2017-03-14  8:53               ` Petr Vorel
2017-03-14  9:17                 ` Hayes Wang
2017-03-21 21:37               ` 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=20170321.143729.15606239118290633.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=hayeswang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nic_swsd@realtek.com \
    --cc=petr.vorel@gmail.com \
    /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.