linux-uconsole/drivers/net/wireless
Waiman Long 453431a549 mm, treewide: rename kzfree() to kfree_sensitive()
As said by Linus:

  A symmetric naming is only helpful if it implies symmetries in use.
  Otherwise it's actively misleading.

  In "kzalloc()", the z is meaningful and an important part of what the
  caller wants.

  In "kzfree()", the z is actively detrimental, because maybe in the
  future we really _might_ want to use that "memfill(0xdeadbeef)" or
  something. The "zero" part of the interface isn't even _relevant_.

The main reason that kzfree() exists is to clear sensitive information
that should not be leaked to other future users of the same memory
objects.

Rename kzfree() to kfree_sensitive() to follow the example of the recently
added kvfree_sensitive() and make the intention of the API more explicit.
In addition, memzero_explicit() is used to clear the memory to make sure
that it won't get optimized away by the compiler.

The renaming is done by using the command sequence:

  git grep -w --name-only kzfree |\
  xargs sed -i 's/kzfree/kfree_sensitive/'

followed by some editing of the kfree_sensitive() kerneldoc and adding
a kzfree backward compatibility macro in slab.h.

[akpm@linux-foundation.org: fs/crypto/inline_crypt.c needs linux/slab.h]
[akpm@linux-foundation.org: fix fs/crypto/inline_crypt.c some more]

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: James Morris <jmorris@namei.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Joe Perches <joe@perches.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: "Jason A . Donenfeld" <Jason@zx2c4.com>
Link: http://lkml.kernel.org/r/20200616154311.12314-3-longman@redhat.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-07 11:33:22 -07:00
..
admtek adm8211: use generic power management 2020-07-15 13:38:57 +03:00
ath Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
atmel atmel: fix wiki website url 2020-07-15 13:18:40 +03:00
broadcom Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
cisco airo: use generic power management 2020-08-02 18:24:37 +03:00
intel mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
intersil mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
marvell wireless-drivers-next patches for v5.9 2020-08-04 12:57:02 -07:00
mediatek Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git 2020-08-04 14:02:54 +03:00
microchip wilc1000: Move wilc1000 SDIO ID's from driver source to common header file 2020-08-02 18:12:23 +03:00
quantenna qtnfmac: Missing platform_device_unregister() on error in qtnf_core_mac_alloc() 2020-08-02 18:20:30 +03:00
ralink rt2x00: pci: use generic power management 2020-08-02 18:13:45 +03:00
realtek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
rsi mmc: sdio: Move SDIO IDs from rsi_sdio driver to common include file 2020-07-13 12:18:24 +02:00
st treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ti wl1251: fix always return 0 error 2020-08-02 18:25:14 +03:00
zydas zd1211rw: remove needless check before usb_free_coherent() 2020-07-15 19:46:38 +03:00
Kconfig wireless-drivers-next patches for v5.9 2020-07-20 17:52:50 -07:00
mac80211_hwsim.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
mac80211_hwsim.h mac80211_hwsim: notify wmediumd of used MAC addresses 2020-04-24 11:45:47 +02:00
Makefile wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
ray_cs.c ray_cs: use true,false for bool variable 2020-05-06 11:33:23 +03:00
ray_cs.h
rayctl.h ray_cs: Replace zero-length array with flexible-array member 2020-03-23 19:18:27 +02:00
rndis_wlan.c rndis_wlan: Replace zero-length array with flexible-array 2020-05-12 11:56:55 +03:00
virt_wifi.c virt_wifi: implement ndo_get_iflink 2020-03-20 14:42:20 +01:00
wl3501.h wl3501_cs: Replace zero-length array with flexible-array member 2020-03-23 19:21:21 +02:00
wl3501_cs.c