lkml.org 
[lkml]   [2016]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH RESEND] ipconfig : Fix null reference to the freed dev_addr
From
From: Chanho Min <chanho.min@lge.com>
Date: Wed, 22 Jun 2016 19:08:13 +0900

> To fix this, I suggested patch that checks if device is available
> before the DHCP packet is sended.

The bug is more fundamental than this.

The code is not taking a reference to the netdevice, and that's
the only reason it is able to disappear like this.

It is illegal to reference a netdevice after dropping the rtnl
mutex unless you take a proper reference to it.

\
 
 \ /
  Last update: 2016-06-26 22:21    [W:0.035 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site