Nicolas Dichtel
6a3c946b20
net: don't call update_pmtu unconditionally
...
commit f15ca723c1ebe6c1a06bc95fda6b62cd87b44559 upstream.
Some dst_ops (e.g. md_dst_ops)) doesn't set this handler. It may result to:
"BUG: unable to handle kernel NULL pointer dereference at (null)"
Let's add a helper to check if update_pmtu is available before calling it.
Fixes: 52a589d51f10 ("geneve: update skb dst pmtu on tx path")
Fixes: a93bf0ff4490 ("vxlan: update skb dst pmtu on tx path")
CC: Roman Kapl <code@rkapl.cz>
CC: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Thomas Deutschmann <whissi@gentoo.org>
Cc: Eddie Chapman <eddie@ehuk.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-09 09:51:48 +02:00
..
2018-04-26 11:02:21 +02:00
2017-12-17 15:07:58 +01:00
2017-06-23 14:17:31 -04:00
2018-04-12 12:32:22 +02:00
2017-10-21 01:33:19 +01:00
2018-01-02 20:31:06 +01:00
2018-02-25 11:07:46 +01:00
2017-09-01 17:42:05 -07:00
2018-01-02 20:31:09 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-03 15:35:59 -07:00
2018-04-12 12:32:27 +02:00
2017-08-23 20:37:10 -07:00
2017-08-01 16:09:14 -07:00
2017-10-08 10:12:15 -07:00
2017-12-20 10:10:37 +01:00
2018-02-13 10:19:47 +01:00
2018-02-13 10:19:48 +01:00
2017-09-01 18:38:09 -07:00
2018-03-31 18:10:40 +02:00
2017-10-22 02:03:51 +01:00
2018-02-22 15:42:23 +01:00
2017-09-28 09:39:34 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-24 11:01:27 +01:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2017-08-22 14:27:18 -07:00
2018-03-31 18:10:41 +02:00
2017-06-25 11:42:01 -04:00
2018-05-09 09:51:48 +02:00
2018-05-09 09:51:48 +02:00
2017-11-02 11:10:55 +01:00
2017-10-27 23:43:31 +09:00
2017-08-09 16:57:38 -07:00
2017-10-12 22:57:11 -07:00
2017-11-02 11:10:55 +01:00
2017-02-28 12:49:36 +01:00
2017-07-01 07:39:08 -07:00
2017-08-30 11:20:09 -07:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-01-02 20:31:08 +01:00
2018-03-08 22:41:15 -08:00
2017-10-21 01:33:19 +01:00
2017-11-02 11:10:55 +01:00
2018-02-13 10:19:48 +01:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2017-09-01 17:42:05 -07:00
2017-08-06 21:25:10 -07:00
2016-12-06 11:34:24 -05:00
2017-09-01 18:38:09 -07:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2018-04-29 11:33:11 +02:00
2018-01-02 20:31:07 +01:00
2017-05-17 16:06:01 -04:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:07:57 +01:00
2018-04-26 11:02:13 +02:00
2018-01-31 14:03:47 +01:00
2018-03-08 22:41:13 -08:00
2017-07-24 17:28:12 -07:00
2018-01-02 20:31:09 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2018-03-31 18:10:38 +02:00
2017-08-14 22:17:05 -07:00
2017-12-25 14:26:30 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-04-29 11:33:13 +02:00
2017-08-07 11:39:22 -07:00
2017-11-02 11:10:55 +01:00
2018-01-31 14:03:47 +01:00
2017-07-24 13:52:59 -07:00
2018-03-08 22:41:10 -08:00
2018-03-03 10:24:25 +01:00
2017-06-16 11:48:39 -04:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2017-11-02 11:10:55 +01:00
2017-02-09 10:22:17 +01:00
2017-11-02 11:10:55 +01:00