]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Fix CALIPSO causing GPF with datagram support
authorRichard Haines <richard_c_haines@btinternet.com>
Mon, 5 Jun 2017 15:44:40 +0000 (16:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 19:18:20 +0000 (15:18 -0400)
commit18343e71d4805cd9a034864ad6baae148168a947
tree09a5abbbaf8b95512c9eb5d3ab6f82a500179660
parent10fb360e507ec2cc1056e2e534f9049044eb3f83
net/ipv6: Fix CALIPSO causing GPF with datagram support

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 <richard_c_haines@btinternet.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/calipso.c