Re: [PATCH] staging: rtl8723bs: use kfree_sensitive() for key material in rtw_set_key()

Dan Carpenter <[email protected]>
Newsgroups gmane.linux.kernel
Message-ID <[email protected]>
On Thu, Jul 30, 2026 at 05:13:15PM -0600, Ivy Lopez wrote:
> psetkeyparm holds WEP/TKIP/AES key material copied in via memcpy
> from psecuritypriv before being freed. Use kfree_sensitive() instead
> of kfree() so the key bytes are zeroed before the memory is released,
> consistent with how psetstakey_para is already handled elsewhere in
> this driver.
> 
> Signed-off-by: Ivy Lopez <[email protected]>
> ---

This should have a Fixes tag.

regards,
dan carpenter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.