Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633122

Re: [PATCH] net: hso: register netdev later to avoid a race condition

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] net: hso: register netdev later to avoid a race condition
Date 2017-04-28 22:20 +0200
Message-ID <tBkwW-45D-9@gated-at.bofh.it> (permalink)
References <tAyVj-5kn-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Andreas Kemnade <andreas@kemnade.info>
Date: Wed, 26 Apr 2017 19:26:40 +0200

> If the netdev is accessed before the urbs are initialized,
> there will be NULL pointer dereferences. That is avoided by
> registering it when it is fully initialized.
> 
> This case occurs e.g. if dhcpcd is running in the background
> and the device is probed, either after insmod hso or
> when the device appears on the usb bus.
> 
> A backtrace is the following:
 ...
> Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>

Applied, thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] net: hso: register netdev later to avoid a race condition Andreas Kemnade <andreas@kemnade.info> - 2017-04-26 19:30 +0200
  Re: [PATCH] net: hso: register netdev later to avoid a race condition Johan Hovold <johan@kernel.org> - 2017-04-27 10:50 +0200
    Re: [PATCH] net: hso: register netdev later to avoid a race  condition Andreas Kemnade <andreas@kemnade.info> - 2017-04-28 19:40 +0200
      Re: [PATCH] net: hso: register netdev later to avoid a race condition Johan Hovold <johan@kernel.org> - 2017-04-28 21:10 +0200
  Re: [PATCH] net: hso: register netdev later to avoid a race  condition David Miller <davem@davemloft.net> - 2017-04-28 22:20 +0200

csiph-web