lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 18 Jun 2016 20:54:48 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	edumazet@...gle.com
Cc:	netdev@...r.kernel.org, ghorbel@...asoftware.com,
	eric.dumazet@...il.com
Subject: Re: [PATCH net-next 5/5] ipv6: RFC 4884 partial support for
 SIT/GRE tunnels

From: Eric Dumazet <edumazet@...gle.com>
Date: Sat, 18 Jun 2016 16:26:40 -0700

> @@ -588,12 +594,26 @@ int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type)
>  		skb2->dev = rt->dst.dev;
>  
>  	ipv6_addr_set_v4mapped(ip_hdr(skb)->saddr, &temp_saddr);
> +
> +	if (data_len) {
> +		/* RFC 4884 (partial) support :
> +		 * insert 0 padding at the end, before the extensions
> +		 */
> +		__skb_push(skb2, nhs);
> +		skb_reset_network_header(skb2);
> +		memcpy(skb2->data, skb2->data + nhs, data_len - nhs);

Since this is overlapping, it really need to use memmove() instead of
memcpy().

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ