[Letux-kernel] [PATCH RFC] net: hso: register netdev later to avoid a race condition

H. Nikolaus Schaller hns at goldelico.com
Mon Apr 24 22:52:34 CEST 2017


Hi,

> Am 24.04.2017 um 22:41 schrieb Andreas Kemnade <andreas at kemnade.info>:
> 
> Hi,
> 
> On Mon, 24 Apr 2017 22:36:11 +0200
> Andreas Kemnade <andreas at kemnade.info> wrote:
> 
>> If the netdev is accessed before the urbs are initialized,
>> there will be NULL pointer dereferences
>> 
>> Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
> 
> this should be a replacement for
> 
> drivers: net: hso: hack to avoid NULL pointer dereferencing - the reason is unknown. Perhaps some race condition in the USB stack?
> 
> I cannot reproduce the problem here even without that hack patch. There
> was some dhcpd running? How was it started?

I don't exactly remember. I think when starting the modem and during enumeration of the interfaces.

If I remember correctly it started to occur with 4.11-rc1 or 2. Or maybe even earlier and was never seen again after applying the hack.

As with all hacks, it may have been gone with rc8 so I don't know if it is still necessary for anything.

BR,
Nikolaus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20170424/1efc56b2/attachment.asc>


More information about the Letux-kernel mailing list