[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMj1kXE9a399_CiXNHMqpNk+Fz=4YPd0s-5B0gU66wYbEhiiZQ@mail.gmail.com>
Date: Fri, 30 Jun 2023 17:50:55 +0200
From: Ard Biesheuvel <ardb@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Alexander Potapenko <glider@...gle.com>, Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>,
Boris Pismenny <borisp@...dia.com>, John Fastabend <john.fastabend@...il.com>,
herbert@...dor.apana.org.au, linux-crypto@...r.kernel.org,
syzkaller-bugs@...glegroups.com,
syzbot <syzbot+828dfc12440b4f6f305d@...kaller.appspotmail.com>,
Eric Biggers <ebiggers@...nel.org>, Aviad Yehezkel <aviadye@...dia.com>,
Daniel Borkmann <daniel@...earbox.net>, netdev@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH] net: tls: enable __GFP_ZERO upon tls_init()
On Fri, 30 Jun 2023 at 17:27, Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Fri, 30 Jun 2023 17:16:06 +0200 Ard Biesheuvel wrote:
> > Note that this is the *input* scatterlist containing the AAD
> > (additional authenticated data) and the crypto input, and so there is
> > definitely a bug here that shouldn't be papered over by zero'ing the
> > allocation.
>
> Noob question, it's not the tag / AAD, right? We definitely don't init
> that..
assoclen + cryptlen does not cover the tag on encryption, so it would
be omitted here regardless of whether it was covered in the input
scatterlist or not.
Powered by blists - more mailing lists