[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrU3XGhfAAWdLzP38WLEH4i0YcnMZ_Sb7Taf4iRgO1cvZQ@mail.gmail.com>
Date: Sat, 25 Jun 2016 12:35:36 -0700
From: Andy Lutomirski <luto@...capital.net>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: David Miller <davem@...emloft.net>,
Herbert Xu <herbert@...dor.apana.org.au>,
Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] tcp: md5: do not use stack storage in crypto operations
On Sat, Jun 25, 2016 at 9:09 AM, Eric Dumazet <eric.dumazet@...il.com> wrote:
> 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.
>
> So use percpu storage as we already do for the pseudo header,
> and reduce number of crypto functions calls, as these headers
> are ridiculously small.
Thanks!
Should this go in via net-next or -tip?
--Andy
Powered by blists - more mailing lists