Re: [PATCH] staging: rtl8723bs: use kfree_sensitive() for key material
From: Greg KH
Date: Thu Jul 16 2026 - 00:47:36 EST
On Wed, Jul 15, 2026 at 05:55:11PM -0600, Ivy Lopez wrote:
> The set_stakey_parm struct contains a 16-byte encryption key.
> Use kfree_sensitive() instead of kfree() to ensure the key
> material is zeroed before the memory is freed, preventing
> potential information leaks.
>
> Signed-off-by: Ivy Lopez <skunkolee@xxxxxxxxx>
> ---
> Changes in v2/v3:
> - Remove unrelated ftmac100 changes accidentally included in v1
Did you forgot to add the version to the subject line too?
Also, you have 72 columns for the changelog, please use it.
thanks,
greg k-h