https://github.com/torvalds/linux
Revision e976e56423dc1cc01686861fc3e0c6c0ec8cd8b7 authored by Hiraku Toyooka on 25 July 2016, 03:56:55 UTC, committed by Kees Cook on 05 August 2016, 18:21:46 UTC
persistent_ram_zone(=prz) structures are allocated by persistent_ram_new(),
which includes vmap() or ioremap(). But they are currently freed by
kfree(). This uses persistent_ram_free() for correct this asymmetry usage.

Signed-off-by: Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.kw@hitachi.com>
Cc: Mark Salyzyn <salyzyn@android.com>
Cc: Seiji Aguchi <seiji.aguchi.tr@hitachi.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent 529182e
History
Tip revision: e976e56423dc1cc01686861fc3e0c6c0ec8cd8b7 authored by Hiraku Toyooka on 25 July 2016, 03:56:55 UTC
ramoops: use persistent_ram_free() instead of kfree() for freeing prz
Tip revision: e976e56
File Mode Size
apparmor
integrity
keys
loadpin
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 5.6 KB
Makefile -rw-r--r-- 989 bytes
commoncap.c -rw-r--r-- 31.6 KB
device_cgroup.c -rw-r--r-- 21.0 KB
inode.c -rw-r--r-- 6.4 KB
lsm_audit.c -rw-r--r-- 9.9 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 53.9 KB

back to top