Re: [PATCH v2 net] net: fix deadlock while clearing neighbor proxy table

2018-04-12 Thread David Miller
From: Wolfgang Bumiller Date: Thu, 12 Apr 2018 10:46:55 +0200 > When coming from ndisc_netdev_event() in net/ipv6/ndisc.c, > neigh_ifdown() is called with &nd_tbl, locking this while > clearing the proxy neighbor entries when eg. deleting an > interface. Calling the table's pndisc_destructor() wi

[PATCH v2 net] net: fix deadlock while clearing neighbor proxy table

2018-04-12 Thread Wolfgang Bumiller
When coming from ndisc_netdev_event() in net/ipv6/ndisc.c, neigh_ifdown() is called with &nd_tbl, locking this while clearing the proxy neighbor entries when eg. deleting an interface. Calling the table's pndisc_destructor() with the lock still held, however, can cause a deadlock: When a multicast