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-11-08 11:20:49 +09:00
2017-12-11 17:04:50 +01:00
2017-10-20 13:15:07 +01:00
2017-11-21 15:57:07 -08:00
2017-11-04 09:26:51 +09:00
2017-12-21 13:07:20 -05:00
2017-11-15 11:56:19 -08:00
2017-07-04 01:29:04 -07:00
2017-07-04 22:35:16 +01:00
2017-07-01 07:39:08 -07:00
2018-01-22 16:01:30 -05:00
2018-01-08 07:17:52 +01:00
2017-10-05 21:53:02 -07:00
2015-09-02 15:31:00 -07:00
2018-01-10 16:03:55 -05:00
2017-09-01 20:33:42 -07:00
2017-08-08 21:40:08 -07:00
2017-05-21 13:42:36 -04:00
2017-10-18 14:13:08 +01:00
2017-01-28 10:33:06 -05:00
2017-08-07 11:39:22 -07:00
2017-11-02 11:10:55 +01:00
2018-01-18 21:14:00 -05:00
2017-11-21 15:57:05 -08:00
2018-01-18 21:05:56 -05:00
2017-11-02 11:10:55 +01:00
2017-04-20 10:35:33 -04:00
2017-10-08 10:12:15 -07:00
2016-04-07 16:53:29 -04:00
2018-01-23 19:53:24 -05:00
2018-01-25 16:27:34 -05:00
2016-11-02 15:18:36 -04:00
2018-01-25 16:27:34 -05:00
2017-11-21 15:57:07 -08:00
2016-11-04 14:45:23 -04:00
2018-01-23 19:53:24 -05:00
2017-08-25 17:10:24 -07:00
2017-11-02 11:10:55 +01:00
2015-08-13 17:08:39 -07:00
2017-12-13 13:13:15 -05:00
2016-12-25 17:21:23 +01:00
2017-11-11 15:13:02 +09:00
2016-11-04 14:45:23 -04:00
2017-11-24 01:37:35 +09:00
2017-10-06 09:52:31 -07:00
2017-06-12 09:53:14 -04:00
2017-03-24 13:17:07 -07:00
2017-10-18 14:13:08 +01:00
2017-10-18 12:39:55 +01:00
2017-12-21 11:51:06 -05:00
2017-09-01 18:35:23 -07:00
2017-08-25 17:10:23 -07:00
2017-09-11 14:34:10 -07:00
2017-08-07 14:16:22 -07:00
2018-01-25 16:27:34 -05:00
2017-10-28 19:24:38 +09:00
2017-11-04 09:26:51 +09:00
2017-12-12 11:15:42 -05:00
2018-01-22 16:01:30 -05:00
2015-11-03 10:52:13 -05:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:01:30 -05:00
2017-10-25 11:01:08 +02: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-06-02 13:57:27 -04:00
2017-06-02 13:57:27 -04:00
2018-01-23 10:56:36 +01:00
2017-04-14 10:06:10 +02:00
2017-11-04 09:26:51 +09:00
2017-02-09 10:22:17 +01:00
2017-11-02 11:10:55 +01:00
2017-11-14 15:46:17 +09:00