Re: [PATCH net] net: don't call update_pmtu unconditionally

2018-01-25 Thread Nicolas Dichtel
Le 25/01/2018 à 22:28, David Miller a écrit : > From: Nicolas Dichtel > Date: Thu, 25 Jan 2018 19:03:03 +0100 > >> 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

Re: [PATCH net] net: don't call update_pmtu unconditionally

2018-01-25 Thread David Miller
From: Nicolas Dichtel Date: Thu, 25 Jan 2018 19:03:03 +0100 > 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. >

Re: [PATCH net] net: don't call update_pmtu unconditionally

2018-01-25 Thread David Ahern
On 1/25/18 11:03 AM, Nicolas Dichtel wrote: > diff --git a/include/net/dst.h b/include/net/dst.h > index b091fd536098..6216edb58393 100644 > --- a/include/net/dst.h > +++ b/include/net/dst.h > @@ -521,4 +521,12 @@ static inline struct xfrm_state *dst_xfrm(const struct > dst_entry *dst) > } > #en