diff options
| author | Satyajit Desai <sadesai@codeaurora.org> | 2016-09-02 14:18:13 -0700 |
|---|---|---|
| committer | Satyajit Desai <sadesai@codeaurora.org> | 2016-10-03 11:42:20 -0700 |
| commit | 0f327e4cccdb536e3b106cea68c062fbe816f64f (patch) | |
| tree | 54b70fb0ef6048617dea61b65467bbe068908163 /lib/mpi/mpicoder.c | |
| parent | ab26d098793adbf90b77d414663e34ac0c7315f6 (diff) | |
ion: use %pK instead of %p which respects kptr_restrict sysctl
Hide kernel pointers from unprivileged users by using %pk format-specifier
instead of %p. This respects the kptr_restrict sysctl setting which is by
default on. So by default %pk will print zeroes as address. echo 1 to
kptr_restrict to print proper kernel address.
Change-Id: Ia300e3e38b8662afac15edda28959564b05c9367
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
