Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 61b86dc3 authored by Vamsi Krishna Samavedam's avatar Vamsi Krishna Samavedam Committed by Pratham Pratap
Browse files

usb: host: 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 zero to kptr_restrict.

echo 0 > /proc/sys/kernel/kptr_restrict

Change-Id: Ib2b999693224b33241141e290b70724f9e27183f
Signed-off-by: default avatarVamsi Krishna Samavedam <vskrishn@codeaurora.org>
parent 20768179
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment