[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211209193857.GA28088@duo.ucw.cz>
Date: Thu, 9 Dec 2021 20:38:57 +0100
From: Pavel Machek <pavel@....cz>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: David Brazdil <dbrazdil@...gle.com>,
Rob Herring <robh+dt@...nel.org>,
Jonathan Corbet <corbet@....net>,
Derek Kiernan <derek.kiernan@...inx.com>,
Dragan Cvetic <dragan.cvetic@...inx.com>,
Arnd Bergmann <arnd@...db.de>,
Hans de Goede <hdegoede@...hat.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, Andrew Scull <ascull@...gle.com>,
Will Deacon <will@...nel.org>
Subject: Re: [PATCH v2 2/2] misc: dice: Add driver to forward secrets to
userspace
Hi!
> > + memzero_explicit(kaddr, dice_rmem->size);
> > + devm_memunmap(dice_misc.this_device, kaddr);
>
> Do you really need to call memzero_explicit()? This isn't "local"
> memory, if the compiler "optimizes away" a normal call, it would be
> _VERY_ broken.
For clearing secrets, I believe memzero_explicit is nice
documentation.
Best regards,
Pavel
--
http://www.livejournal.com/~pavelmachek
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists