Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170600 Details for
Bug 245369
=sys-kernel/gentoo-sources-2.6.27* breaks loading ipsec policy
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix from David Miller's net-2.6 tree
fix_setkey_policy_set_breakage.patch (text/plain), 1.45 KB, created by
Petr Pisar
on 2008-11-03 09:13:57 UTC
(
hide
)
Description:
Fix from David Miller's net-2.6 tree
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2008-11-03 09:13:57 UTC
Size:
1.45 KB
patch
obsolete
>From: Alexey Dobriyan <adobriyan@gmail.com> >Date: Fri, 31 Oct 2008 23:41:26 +0000 (-0700) >Subject: key: fix setkey(8) policy set breakage >X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fdavem%2Fnet-2.6.git;a=commitdiff_plain;h=920da6923cf03c8a78fbaffa408f8ab37f6abfc1;hp=cbafe312ef4a263e9aa36786bc67e1e6d959872b > >key: fix setkey(8) policy set breakage > >Steps to reproduce: > > #/usr/sbin/setkey -f > flush; > spdflush; > > add 192.168.0.42 192.168.0.1 ah 24500 -A hmac-md5 "1234567890123456"; > add 192.168.0.42 192.168.0.1 esp 24501 -E 3des-cbc "123456789012123456789012"; > > spdadd 192.168.0.42 192.168.0.1 any -P out ipsec > esp/transport//require > ah/transport//require; > >setkey: invalid keymsg length > >Policy dump will bail out with the same message after that. > >-recv(4, "\2\16\0\0\32\0\3\0\0\0\0\0\37\r\0\0\3\0\5\0\377 \0\0\2\0\0\0\300\250\0*\0"..., 32768, 0) = 208 >+recv(4, "\2\16\0\0\36\0\3\0\0\0\0\0H\t\0\0\3\0\5\0\377 \0\0\2\0\0\0\300\250\0*\0"..., 32768, 0) = 208 > >Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> >Signed-off-by: David S. Miller <davem@davemloft.net> >--- > >diff --git a/net/key/af_key.c b/net/key/af_key.c >index e55e044..3440a46 100644 >--- a/net/key/af_key.c >+++ b/net/key/af_key.c >@@ -2075,7 +2075,6 @@ static int pfkey_xfrm_policy2msg(struct sk_buff *skb, struct xfrm_policy *xp, in > req_size += socklen * 2; > } else { > size -= 2*socklen; >- socklen = 0; > } > rq = (void*)skb_put(skb, req_size); > pol->sadb_x_policy_len += req_size/8;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245369
: 170600