[PATCH] net/ipv6: Fix CALIPSO causing GPF with datagram support

2017-06-05 Thread Richard Haines
When using CALIPSO with IPPROTO_UDP it is possible to trigger a GPF as the IP header may have moved. Also update the payload length after adding the CALIPSO option. Signed-off-by: Richard Haines --- net/ipv6/calipso.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/

Re: [PATCH] net/ipv6: Fix CALIPSO causing GPF with datagram support

2017-06-05 Thread Paul Moore
On Mon, Jun 5, 2017 at 11:44 AM, Richard Haines wrote: > When using CALIPSO with IPPROTO_UDP it is possible to trigger a GPF as the > IP header may have moved. > > Also update the payload length after adding the CALIPSO option. > > Signed-off-by: Richard Haines > --- > net/ipv6/calipso.c | 6 +++

Re: [PATCH] net/ipv6: Fix CALIPSO causing GPF with datagram support

2017-06-05 Thread David Miller
From: Paul Moore Date: Mon, 5 Jun 2017 11:55:34 -0400 > On Mon, Jun 5, 2017 at 11:44 AM, Richard Haines > wrote: >> When using CALIPSO with IPPROTO_UDP it is possible to trigger a GPF as the >> IP header may have moved. >> >> Also update the payload length after adding the CALIPSO option. >> >>

Re: [PATCH] net/ipv6: Fix CALIPSO causing GPF with datagram support

2017-06-05 Thread Huw Davies
On Mon, Jun 05, 2017 at 11:55:34AM -0400, Paul Moore wrote: > On Mon, Jun 5, 2017 at 11:44 AM, Richard Haines > wrote: > > When using CALIPSO with IPPROTO_UDP it is possible to trigger a GPF as the > > IP header may have moved. > > > > Also update the payload length after adding the CALIPSO option

Re: [PATCH] net/ipv6: Fix CALIPSO causing GPF with datagram support

2017-06-06 Thread David Miller
From: Richard Haines Date: Mon, 5 Jun 2017 16:44:40 +0100 > When using CALIPSO with IPPROTO_UDP it is possible to trigger a GPF as the > IP header may have moved. > > Also update the payload length after adding the CALIPSO option. > > Signed-off-by: Richard Haines Applied and queued up for -