diff options
| author | Liangliang Lu <luliang@codeaurora.org> | 2017-08-04 17:16:58 +0800 |
|---|---|---|
| committer | Liangliang Lu <luliang@codeaurora.org> | 2017-08-04 17:51:38 +0800 |
| commit | 8482c665bae50afa34738a04924e0b2a8b365288 (patch) | |
| tree | 929884bbff3807558c172ed6abc959c3a1566604 /kernel/locking/mutex-debug.c | |
| parent | 4ba44196e6a5c20d8de8769c219f733daff16141 (diff) | |
msm: usb_bam: replace %p with %pK
Format specifier %p can leak kernel addresses while not valuing the
kptr_restrict system settings. When kptr_restrict is set to (1), kernel
pointers printed using the %pK format specifier will be replaced with
0's.
Debugging Note : &pK prints only Zeros as address. If you need actual
address information, write 0 to kptr_restrict.
echo 0 > /proc/sys/kernel/kptr_restrict
Change-Id: If3e3a7d5c737b8b7e2c2f78e2814747db4a770cd
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions
