Mahesh Bandewar
d62962b37c
loopback: fix lockdep splat
dev_init_scheduler() and dev_activate() expect the caller to
hold RTNL. Since we don't want blackhole device to be initialized
per ns, we are initializing at init.
[ 3.855027] Call Trace:
[ 3.855034] dump_stack+0x67/0x95
[ 3.855037] lockdep_rcu_suspicious+0xd5/0x110
[ 3.855044] dev_init_scheduler+0xe3/0x120
[ 3.855048] ? net_olddevs_init+0x60/0x60
[ 3.855050] blackhole_netdev_init+0x45/0x6e
[ 3.855052] do_one_initcall+0x6c/0x2fa
[ 3.855058] ? rcu_read_lock_sched_held+0x8c/0xa0
[ 3.855066] kernel_init_freeable+0x1e5/0x288
[ 3.855071] ? rest_init+0x260/0x260
[ 3.855074] kernel_init+0xf/0x180
[ 3.855076] ? rest_init+0x260/0x260
[ 3.855078] ret_from_fork+0x24/0x30
Fixes: 4de83b88c6 ("loopback: create blackhole net device similar to loopack.")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-03 11:24:38 -07:00
..
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:32 -07:00
2019-07-02 15:14:48 -07:00
2019-05-30 11:29:22 -07:00
2019-06-21 09:58:42 -07:00
2019-06-28 09:31:31 -07:00
2019-07-02 15:31:20 -07:00
2019-06-26 13:05:42 -07:00
2019-06-22 16:43:08 -07:00
2019-06-05 17:37:13 +02:00
2019-05-30 11:25:13 -07:00
2019-06-14 19:47:05 -07:00
2019-06-05 17:37:10 +02:00
2019-06-07 09:29:14 -07:00
2019-06-18 09:45:37 -07:00
2019-06-17 20:20:36 -07:00
2019-06-07 11:00:14 -07:00
2019-06-22 09:44:23 -04:00
2019-05-21 10:50:46 +02:00
2019-06-27 21:06:39 -07:00
2019-06-24 10:07:12 -07:00
2019-06-04 20:05:56 -07:00
2019-06-17 20:20:36 -07:00
2019-06-05 17:30:29 +02:00
2019-06-26 10:12:17 -07:00
2019-05-31 14:36:48 -07:00
2019-05-21 10:50:45 +02:00
2019-06-21 09:58:42 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:46 +02:00
2019-07-03 11:24:38 -07:00
2019-05-30 11:26:32 -07:00
2019-06-07 11:00:14 -07:00
2019-05-21 10:50:45 +02:00
2019-05-14 15:20:11 -07:00
2019-06-19 17:09:55 +02:00
2019-03-20 11:18:55 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2018-10-31 21:20:05 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-04-18 11:18:51 +03:00
2019-06-18 10:46:52 -07:00
2019-06-19 11:23:13 -04:00
2019-06-14 19:34:27 -07:00
2019-06-27 21:06:39 -07:00
2019-05-21 10:50:45 +02:00
2019-06-22 08:59:24 -04:00
2019-04-16 21:03:02 -07:00