[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160701.040341.2029216245486805623.davem@davemloft.net>
Date: Fri, 01 Jul 2016 04:03:41 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: luto@...capital.net, herbert@...dor.apana.org.au,
netdev@...r.kernel.org
Subject: Re: [PATCH v2 net-next] tcp: md5: use kmalloc() backed scratch
areas
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 27 Jun 2016 18:51:53 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> Some arches have virtually mapped kernel stacks, or will soon have.
>
> tcp_md5_hash_header() uses an automatic variable to copy tcp header
> before mangling th->check and calling crypto function, which might
> be problematic on such arches.
>
> David says that using percpu storage is also problematic on non SMP
> builds.
>
> Just use kmalloc() to allocate scratch areas.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: Andy Lutomirski <luto@...capital.net>
Applied, thanks.
Powered by blists - more mailing lists