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

Andreas Kemnade andreas at kemnade.info
Tue Apr 25 23:11:35 CEST 2017


On Tue, 25 Apr 2017 15:29:53 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

> 
> So my conclusion is:
> 
> * dhcpd is recognising quite quickly that there is a new interface being enabled.
> * and tries to do some ioctl which makes the kernel segfault
> * and crashes dhcpd
> 
> The fix we are talking about makes this being ignored.
> 
> It might simply be that dhcpd is responding faster with an ioctl() than with older kernels.
> So let's keep the patch for the moment.
> 
well, i would like to replace it with something upstreamable. But maybe
it is best if you first send the 20ms-hack as a [PATCH RFC] together
with the backtrace so that we have more brains on that topic.

How was dhcpcd started? Just so that I can properly reproduce that.

BTW: the other hso patch for the rmmod problem has already made it here:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/commit/?id=a23f6ce6d95900ca83b44b6fa691afe6c7d4b941

Lets hope that during replicant testing no other additional hso problems
uncover.

Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20170425/e638903d/attachment.asc>


More information about the Letux-kernel mailing list