Re: Interrupt race in NET_LOCK/NET_UNLOCK

2016-12-23 Thread Alexander Bluhm
On Fri, Dec 23, 2016 at 11:41:00AM +0100, Martin Pieuchot wrote: > On 23/12/16(Fri) 06:08, Visa Hankala wrote: > > NET_LOCK() should raise IPL before acquiring the lock, and NET_UNLOCK() > > should restore the level after releasing the lock. Otherwise, lock > > recursion can occur, most likely

Re: Interrupt race in NET_LOCK/NET_UNLOCK

2016-12-23 Thread Mike Belopuhov
On 23 December 2016 at 11:41, Martin Pieuchot wrote: > On 23/12/16(Fri) 06:08, Visa Hankala wrote: >> NET_LOCK() should raise IPL before acquiring the lock, and NET_UNLOCK() >> should restore the level after releasing the lock. Otherwise, lock >> recursion can occur, most likely

Re: Interrupt race in NET_LOCK/NET_UNLOCK

2016-12-23 Thread Martin Pieuchot
On 23/12/16(Fri) 06:08, Visa Hankala wrote: > NET_LOCK() should raise IPL before acquiring the lock, and NET_UNLOCK() > should restore the level after releasing the lock. Otherwise, lock > recursion can occur, most likely right after the splx(). An example: > > nd6_slowtimo <- NET_LOCK() >