Re: [PATCH] crypto: virtio - Erase some sensitive memory when it is freed

2025-03-15 Thread Herbert Xu
On Mon, Mar 03, 2025 at 08:08:04PM +0100, Christophe JAILLET wrote: > virtcrypto_clear_request() does the same as the code here, but uses > kfree_sensitive() for one of the free operation. > > So, better safe than sorry, use virtcrypto_clear_request() directly to > save a few lines of code and cle

Re: [PATCH] crypto: virtio - Erase some sensitive memory when it is freed

2025-03-09 Thread Jason Wang
On Tue, Mar 4, 2025 at 3:08 AM Christophe JAILLET wrote: > > virtcrypto_clear_request() does the same as the code here, but uses > kfree_sensitive() for one of the free operation. > > So, better safe than sorry, use virtcrypto_clear_request() directly to > save a few lines of code and cleanly free

Re: [PATCH] crypto: virtio - Erase some sensitive memory when it is freed

2025-03-03 Thread Lei Yang
QE tested this patch with virtio-net regression tests, everything works fine. Tested-by: Lei Yang On Tue, Mar 4, 2025 at 3:08 AM Christophe JAILLET wrote: > > virtcrypto_clear_request() does the same as the code here, but uses > kfree_sensitive() for one of the free operation. > > So, better sa