Re: [PATCH 2/3] dev: Avoid infinite loop on network device index exhaustion

2017-06-16 Thread Serhey Popovych
> On Fri, 16 Jun 2017 17:23:52 +0300 > Serhey Popovych wrote: > >> If network device indexes exhaust in namespace dev_new_index() >> can loop indefinitely since there is no condition to exit >> except case where free index is found. >> >> Since all it's caller hold

Re: [PATCH 2/3] dev: Avoid infinite loop on network device index exhaustion

2017-06-16 Thread Stephen Hemminger
On Fri, 16 Jun 2017 17:23:52 +0300 Serhey Popovych wrote: > If network device indexes exhaust in namespace dev_new_index() > can loop indefinitely since there is no condition to exit > except case where free index is found. > > Since all it's caller hold RTNL mutex

[PATCH 2/3] dev: Avoid infinite loop on network device index exhaustion

2017-06-16 Thread Serhey Popovych
If network device indexes exhaust in namespace dev_new_index() can loop indefinitely since there is no condition to exit except case where free index is found. Since all it's caller hold RTNL mutex this may completely lock down network subsystem configuration operations. Instead of retrying with