Repository navigation
Commit 2907c35
net: hold rtnl again in dump callbacks
Commit e67f88d (dont hold rtnl mutex during netlink dump callbacks)
missed fact that rtnl_fill_ifinfo() must be called with rtnl held.
Because of possible deadlocks between two mutexes (cb_mutex and rtnl),
its not easy to solve this problem, so revert this part of the patch.
It also forgot one rcu_read_unlock() in FIB dump_rules()
Add one ASSERT_RTNL() in rtnl_fill_ifinfo() to remind us the rule.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Patrick McHardy <kaber@trash.net>
CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1dcb14d commit 2907c35
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| 605 | + | |
605 | 606 | | |
606 | 607 | | |
607 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
| 853 | + | |
853 | 854 | | |
854 | 855 | | |
855 | 856 | | |
| |||
1876 | 1877 | | |
1877 | 1878 | | |
1878 | 1879 | | |
| 1880 | + | |
1879 | 1881 | | |
1880 | 1882 | | |
1881 | 1883 | | |
| |||
1902 | 1904 | | |
1903 | 1905 | | |
1904 | 1906 | | |
| 1907 | + | |
1905 | 1908 | | |
1906 | | - | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
1907 | 1912 | | |
1908 | 1913 | | |
1909 | 1914 | | |
| |||
1975 | 1980 | | |
1976 | 1981 | | |
1977 | 1982 | | |
1978 | | - | |
| 1983 | + | |
1979 | 1984 | | |
1980 | 1985 | | |
1981 | 1986 | | |
| |||
0 commit comments