Nicolas Dichtel
f15ca723c1
net: don't call update_pmtu unconditionally
...
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>
2018-01-25 16:27:34 -05:00
..
2017-12-07 23:19:58 +01:00
2017-11-24 01:37:35 +09:00
2017-11-03 22:11:17 +08:00
2018-01-15 14:53:43 -05:00
2017-10-21 01:33:19 +01:00
2017-12-13 13:13:58 -05:00
2018-01-22 16:01:30 -05:00
2018-01-08 07:17:52 +01:00
2017-12-20 15:12:39 -05: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
2017-12-19 14:21:58 -05:00
2017-11-01 11:50:43 +09:00
2017-08-01 16:09:14 -07:00
2016-06-30 05:03:36 -04:00
2017-10-08 10:12:15 -07:00
2017-10-24 18:44:42 +09:00
2018-01-22 16:16:05 -05:00
2017-10-30 21:09:24 +09:00
2017-09-01 18:38:09 -07:00
2017-11-15 11:56:19 -08:00
2017-10-22 02:03:51 +01:00
2017-12-05 11:23:58 -05:00
2017-10-05 18:19:22 -07:00
2017-11-02 11:10:55 +01:00
2017-11-04 09:26:51 +09:00
2017-12-19 13:45:32 -05: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
2017-11-02 11:10:55 +01:00
2017-06-25 11:42:01 -04:00
2018-01-25 16:27:34 -05:00
2018-01-25 16:27:34 -05:00
2017-11-02 11:10:55 +01:00
2017-10-30 21:09:24 +09:00
2017-11-21 15:57:07 -08: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-11-11 18:53:16 +09:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-01-09 11:59:16 -05:00
2018-01-15 13:53:30 -05:00
2017-10-28 19:24:38 +09:00
2017-11-15 14:09:52 +09:00
2017-12-08 13:27:43 -05:00
2017-08-06 21:25:10 -07:00
2017-10-16 21:24:25 +01:00
2017-11-15 14:09:52 +09: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-04 09:26:51 +09:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2016-11-21 13:20:17 -05:00
2017-08-06 21:25:10 -07:00
2017-12-13 16:01:17 -05:00
2017-12-12 11:15:42 -05:00
2017-05-17 16:06:01 -04:00
2017-11-11 18:53:16 +09:00
2017-12-01 15:07:43 -05:00
2017-11-04 22:34:52 +09:00
2018-01-22 16:01:30 -05:00
2017-11-19 12:25:26 +09:00
2017-07-24 17:28:12 -07:00
2017-12-08 10:07:02 -05:00
2017-12-08 14:14:11 -05:00
2017-08-06 21:25:10 -07:00
2018-01-25 10:56:45 -05:00
2017-08-14 22:17:05 -07:00
2017-09-29 06:07:00 +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-01-25 10:56:45 -05:00
2016-07-11 13:27:06 -07:00
2017-08-07 11:39:22 -07:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:01:30 -05:00
2017-07-24 13:52:59 -07:00
2017-11-15 11:56:19 -08:00
2016-11-24 15:32:14 -05:00
2017-12-19 08:23:21 +01:00
2017-06-16 11:48:39 -04:00
2017-04-14 10:07:39 +02:00
2018-01-23 10:56:36 +01: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