Nicolas Dichtel
385ca48047
tun: forbid iface creation with rtnl ops
...
[ Upstream commit 35b827b6d0 ]
It's not supported right now (the goal of the initial patch was to support
'ip link del' only).
Before the patch:
$ ip link add foo type tun
[ 239.632660] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[snip]
[ 239.636410] RIP: 0010:register_netdevice+0x8e/0x3a0
This panic occurs because dev->netdev_ops is not set by tun_setup(). But to
have something usable, it will require more than just setting
netdev_ops.
Fixes: f019a7a594 ("tun: Implement ip link del tunXXX")
CC: Eric W. Biederman <ebiederm@xmission.com >
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-05-15 10:30:57 +09:00
..
2023-05-15 09:51:53 +09:00
2018-05-01 15:13:08 -07:00
2023-05-12 16:27:16 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 09:15:13 +09:00
2023-05-12 16:28:00 +09:00
2018-02-13 12:35:55 +01:00
2023-05-15 08:40:13 +09:00
2023-05-15 09:57:53 +09:00
2023-05-15 09:51:44 +09:00
2023-05-15 10:05:32 +09:00
2023-05-15 09:26:33 +09:00
2023-05-15 09:20:28 +09:00
2023-05-15 09:51:28 +09:00
2023-05-15 09:27:16 +09:00
2023-05-15 09:57:51 +09:00
2018-07-03 18:27:19 +02:00
2023-05-15 09:20:15 +09:00
2018-02-28 10:18:33 +01:00
2018-04-13 19:48:09 +02:00
2023-05-15 10:26:50 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 09:20:44 +09:00
2020-02-04 13:48:58 +09:00
2018-05-30 07:50:18 +02:00
2023-05-15 10:05:35 +09:00
2023-05-15 09:57:24 +09:00
2023-05-15 10:06:00 +09:00
2022-03-15 09:20:56 +09:00
2023-05-15 10:25:42 +09:00
2018-03-24 11:00:12 +01:00
2023-05-15 10:05:28 +09:00
2023-05-15 09:51:27 +09:00
2023-05-15 09:20:14 +09:00
2023-05-15 09:19:17 +09:00
2018-05-30 13:19:56 +02:00
2018-02-25 11:05:55 +01:00
2023-05-15 10:05:26 +09:00
2023-05-15 10:05:52 +09:00
2023-05-15 10:06:05 +09:00
2023-05-15 10:25:53 +09:00
2023-05-12 17:26:15 +09:00
2023-05-12 16:57:29 +09:00
2018-08-30 20:26:28 -07:00
2023-05-15 09:10:25 +09:00
2023-05-12 17:22:44 +09:00
2017-09-09 17:39:41 +02:00
2023-05-15 09:23:28 +09:00
2023-05-15 10:25:36 +09:00
2023-05-12 16:43:39 +09:00
2018-05-25 17:06:35 +02:00
2023-05-15 09:01:23 +09:00
2023-05-15 10:05:29 +09:00
2023-05-15 09:19:34 +09:00
2023-05-15 10:25:51 +09:00
2023-05-15 10:30:57 +09:00
2023-05-15 09:58:02 +09:00
2018-05-30 07:50:22 +02:00
2023-05-15 09:20:37 +09:00
2023-05-15 09:14:24 +09:00
2023-05-12 16:42:35 +09:00
2023-05-15 09:58:01 +09:00
2018-05-30 07:50:43 +02:00
2023-05-15 08:21:04 +09:00
2023-05-15 09:20:45 +09:00
2023-05-15 09:18:55 +09:00
2020-02-04 13:48:58 +09:00
2018-01-23 19:57:07 +01:00
2023-05-15 09:57:49 +09:00
2023-05-15 09:51:19 +09:00
2023-05-15 08:28:42 +09:00
2018-04-13 19:47:56 +02:00
2023-05-15 09:15:17 +09:00
2023-05-12 17:24:35 +09:00
2017-12-14 09:28:22 +01:00
2023-05-15 08:29:30 +09:00
2023-05-15 10:06:13 +09:00
2023-05-15 09:23:11 +09:00
2023-05-15 09:57:52 +09:00
2023-05-15 10:26:48 +09:00
2023-05-15 10:26:52 +09:00
2023-05-15 09:23:14 +09:00
2023-05-15 08:29:29 +09:00
2017-07-27 15:08:08 -07:00
2023-05-15 10:26:58 +09:00
2023-05-15 09:01:24 +09:00
2023-05-15 09:23:01 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 08:29:51 +09:00
2018-04-24 09:34:12 +02:00
2023-05-15 10:27:00 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 10:26:51 +09:00
2023-05-15 08:28:33 +09:00
2023-05-12 16:39:25 +09:00
2023-05-15 10:26:55 +09:00
2023-05-15 09:27:03 +09:00
2023-05-12 17:25:55 +09:00
2023-05-15 09:22:48 +09:00
2018-05-30 07:50:34 +02:00
2023-05-15 09:20:27 +09:00
2018-05-30 07:50:44 +02:00
2019-12-11 18:21:09 +09:00
2019-12-11 18:21:09 +09:00