projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22604c8
)
ipv6: IPV6_PKTINFO relied userspace providing correct length
author
Ilpo Järvinen
<ilpo.jarvinen@helsinki.fi>
Mon, 5 Jan 2009 01:27:31 +0000
(17:27 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 5 Jan 2009 01:27:31 +0000
(17:27 -0800)
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Reported-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ipv6_sockglue.c
b/net/ipv6/ipv6_sockglue.c
index eeeaad2e8b5ca7f64d69f31cdf3a7b9852a2a113..40f324655e2439cf6ba62dddecda75c9208a6c5c 100644
(file)
--- a/
net/ipv6/ipv6_sockglue.c
+++ b/
net/ipv6/ipv6_sockglue.c
@@
-404,7
+404,7
@@
sticky_done:
else if (optlen < sizeof(struct in6_pktinfo) || optval == NULL)
goto e_inval;
- if (copy_from_user(&pkt, optval,
optlen
)) {
+ if (copy_from_user(&pkt, optval,
sizeof(struct in6_pktinfo)
)) {
retv = -EFAULT;
break;
}