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]
Message-ID: <483D048E.4000707@cn.fujitsu.com>
Date:	Wed, 28 May 2008 15:06:54 +0800
From:	Yang Hongyang <yanghy@...fujitsu.com>
To:	Wang Chen <wangchen@...fujitsu.com>
CC:	yoshfuji@...ux-ipv6.org, netdev@...r.kernel.org,
	FNST-Wei Yongjun <yjwei@...fujitsu.com>,
	davem@...set.davemloft.net
Subject: Re: [PATCH] IPv6: Fix the data length of get destination options
 with short length

Wang Chen wrote:
> Yang Hongyang said the following on 2008-5-28 14:49:
>> @@ -832,7 +832,7 @@ static int ipv6_getsockopt_sticky(struct
>>     len = min_t(unsigned int, len, ipv6_optlen(hdr));
>>     if (copy_to_user(optval, hdr, len))
>>         return -EFAULT;
>> -    return ipv6_optlen(hdr);
>> +    return len;
>> }
>>
> 
> Yang, your mail client broke tabs to blanks.
> Please resubmit.

--- net/ipv6/ipv6_sockglue.c	2008-05-28 09:17:14.000000000 +0800
+++ net/ipv6/ipv6_sockglue.c	2008-05-28 12:41:01.000000000 +0800
@@ -832,7 +832,7 @@ static int ipv6_getsockopt_sticky(struct
 	len = min_t(unsigned int, len, ipv6_optlen(hdr));
 	if (copy_to_user(optval, hdr, len))
 		return -EFAULT;
-	return ipv6_optlen(hdr);
+	return len;
 }


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ