Re: [PATCH] net: ieee802154: fix net_device reference release too early

2017-05-22 Thread zhanglin496
Hello. Sorry too late to reply. > > Hello. > > On Thu, 2017-05-18 at 15:14, Stefan Schmidt wrote: > > Hello. > > > > On Thu, 2017-05-18 at 15:50, linzhang wrote: > > > This patch fixes the kernel oops when release net_device reference in > > > advance. In function raw_sendmsg(i think the

Re: [PATCH] net: ieee802154: fix net_device reference release too early

2017-05-22 Thread zhanglin496
Hello. Sorry too late to reply. > > Hello. > > On Thu, 2017-05-18 at 15:14, Stefan Schmidt wrote: > > Hello. > > > > On Thu, 2017-05-18 at 15:50, linzhang wrote: > > > This patch fixes the kernel oops when release net_device reference in > > > advance. In function raw_sendmsg(i think the

Re: [PATCH] net: ieee802154: fix net_device reference release too early

2017-05-18 Thread Stefan Schmidt
Hello. On Thu, 2017-05-18 at 15:14, Stefan Schmidt wrote: > Hello. > > On Thu, 2017-05-18 at 15:50, linzhang wrote: > > This patch fixes the kernel oops when release net_device reference in > > advance. In function raw_sendmsg(i think the dgram_sendmsg has the same > > problem), there is a

Re: [PATCH] net: ieee802154: fix net_device reference release too early

2017-05-18 Thread Stefan Schmidt
Hello. On Thu, 2017-05-18 at 15:14, Stefan Schmidt wrote: > Hello. > > On Thu, 2017-05-18 at 15:50, linzhang wrote: > > This patch fixes the kernel oops when release net_device reference in > > advance. In function raw_sendmsg(i think the dgram_sendmsg has the same > > problem), there is a

Re: [PATCH] net: ieee802154: fix net_device reference release too early

2017-05-18 Thread Stefan Schmidt
Hello. On Thu, 2017-05-18 at 15:50, linzhang wrote: > This patch fixes the kernel oops when release net_device reference in > advance. In function raw_sendmsg(i think the dgram_sendmsg has the same > problem), there is a race condition between dev_put and dev_queue_xmit > when the device is

Re: [PATCH] net: ieee802154: fix net_device reference release too early

2017-05-18 Thread Stefan Schmidt
Hello. On Thu, 2017-05-18 at 15:50, linzhang wrote: > This patch fixes the kernel oops when release net_device reference in > advance. In function raw_sendmsg(i think the dgram_sendmsg has the same > problem), there is a race condition between dev_put and dev_queue_xmit > when the device is

[PATCH] net: ieee802154: fix net_device reference release too early

2017-05-18 Thread linzhang
This patch fixes the kernel oops when release net_device reference in advance. In function raw_sendmsg(i think the dgram_sendmsg has the same problem), there is a race condition between dev_put and dev_queue_xmit when the device is gong that maybe lead to dev_queue_ximt to see an illegal

[PATCH] net: ieee802154: fix net_device reference release too early

2017-05-18 Thread linzhang
This patch fixes the kernel oops when release net_device reference in advance. In function raw_sendmsg(i think the dgram_sendmsg has the same problem), there is a race condition between dev_put and dev_queue_xmit when the device is gong that maybe lead to dev_queue_ximt to see an illegal