* Problem with "ESP: sha1 digestsize 20 != 0"
@ 2005-02-03 20:04 Marcel Holtmann
2005-02-03 20:39 ` Herbert Xu
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2005-02-03 20:04 UTC (permalink / raw)
To: Network Development Mailing List
Hi,
when using my RAS account with 2.6.11-rc3, I see a lot of
ESP: sha1 digestsize 20 != 0
messages in my logs and the IPsec tunnel is not working. I tracked the
problem down to the change below. After reverting this patch, everything
works like before.
Regards
Marcel
ChangeSet@1.1830.738.7, 2005-01-25 21:53:42-08:00, herbert@gondor.apana.org.au
[XFRM]: Probe selected algorithm only.
This patch removes an annoying problem in xfrm_user. As it is every
time an SA is added it probes every known algorithm in the universe.
Now if they all existed it would be OK. However, for the ones which
don't actually exist this causes multiple /sbin/modprobe processes to
be spawned which slows the system down when you're adding hundreds of
SAs.
Since we know the type of algorithm required when we're adding a new
SA, we can get away with only probing the selected algorithms. This
is what the following patch does for xfrm_user.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with "ESP: sha1 digestsize 20 != 0"
2005-02-03 20:04 Problem with "ESP: sha1 digestsize 20 != 0" Marcel Holtmann
@ 2005-02-03 20:39 ` Herbert Xu
2005-02-03 21:02 ` Marcel Holtmann
2005-02-03 23:43 ` David S. Miller
0 siblings, 2 replies; 4+ messages in thread
From: Herbert Xu @ 2005-02-03 20:39 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: netdev, davem
Marcel Holtmann <marcel@holtmann.org> wrote:
>
> when using my RAS account with 2.6.11-rc3, I see a lot of
>
> ESP: sha1 digestsize 20 != 0
>
> messages in my logs and the IPsec tunnel is not working. I tracked the
> problem down to the change below. After reverting this patch, everything
> works like before.
Sorry, my fault.
The name test in xfrm_get_byname is inverted.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
===== net/xfrm/xfrm_algo.c 1.16 vs edited =====
--- 1.16/net/xfrm/xfrm_algo.c 2005-01-26 16:53:19 +11:00
+++ edited/net/xfrm/xfrm_algo.c 2005-02-04 07:38:16 +11:00
@@ -357,7 +357,7 @@
return NULL;
for (i = 0; i < entries; i++) {
- if (!strcmp(name, list[i].name))
+ if (strcmp(name, list[i].name))
continue;
if (list[i].available)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with "ESP: sha1 digestsize 20 != 0"
2005-02-03 20:39 ` Herbert Xu
@ 2005-02-03 21:02 ` Marcel Holtmann
2005-02-03 23:43 ` David S. Miller
1 sibling, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2005-02-03 21:02 UTC (permalink / raw)
To: Herbert Xu; +Cc: Network Development Mailing List, David S. Miller
Hi Herbert,
> > when using my RAS account with 2.6.11-rc3, I see a lot of
> >
> > ESP: sha1 digestsize 20 != 0
> >
> > messages in my logs and the IPsec tunnel is not working. I tracked the
> > problem down to the change below. After reverting this patch, everything
> > works like before.
>
> Sorry, my fault.
>
> The name test in xfrm_get_byname is inverted.
now it is working again. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with "ESP: sha1 digestsize 20 != 0"
2005-02-03 20:39 ` Herbert Xu
2005-02-03 21:02 ` Marcel Holtmann
@ 2005-02-03 23:43 ` David S. Miller
1 sibling, 0 replies; 4+ messages in thread
From: David S. Miller @ 2005-02-03 23:43 UTC (permalink / raw)
To: Herbert Xu; +Cc: marcel, netdev
On Fri, 04 Feb 2005 07:39:38 +1100
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> Marcel Holtmann <marcel@holtmann.org> wrote:
> >
> > when using my RAS account with 2.6.11-rc3, I see a lot of
> >
> > ESP: sha1 digestsize 20 != 0
> >
> > messages in my logs and the IPsec tunnel is not working. I tracked the
> > problem down to the change below. After reverting this patch, everything
> > works like before.
>
> Sorry, my fault.
>
> The name test in xfrm_get_byname is inverted.
>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks Herbert.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-02-03 23:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 20:04 Problem with "ESP: sha1 digestsize 20 != 0" Marcel Holtmann
2005-02-03 20:39 ` Herbert Xu
2005-02-03 21:02 ` Marcel Holtmann
2005-02-03 23:43 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).