Thread (20 messages) 20 messages, 11 authors, 2020-06-15

Re: [PATCH 1/2] mm, treewide: Rename kzfree() to kfree_sensitive()

From: Waiman Long <longman@redhat.com>
Date: 2020-04-14 18:27:49
Also in: cocci, intel-wired-lan, keyrings, linux-amlogic, linux-arm-kernel, linux-bluetooth, linux-btrfs, linux-cifs, linux-crypto, linux-fscrypt, linux-integrity, linux-mediatek, linux-mm, linux-nfs, linux-pm, linux-s390, linux-scsi, linux-sctp, linux-security-module, linux-wireless, lkml, netdev, target-devel, virtualization

On 4/14/20 8:48 AM, David Sterba wrote:
On Mon, Apr 13, 2020 at 05:15:49PM -0400, Waiman Long wrote:
quoted
 fs/btrfs/ioctl.c                              |  2 +-
quoted
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 40b729dce91c..eab3f8510426 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2691,7 +2691,7 @@ static int btrfs_ioctl_get_subvol_info(struct file *file, void __user *argp)
 	btrfs_put_root(root);
 out_free:
 	btrfs_free_path(path);
-	kzfree(subvol_info);
+	kfree_sensitive(subvol_info);
This is not in a sensitive context so please switch it to plain kfree.
With that you have my acked-by. Thanks.
Thanks for letting me know about. I think I will send it out as a
separate patch.

Cheers,
Longman
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help