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

Commit 9187d128 authored by Dennis Cagle's avatar Dennis Cagle
Browse files

usb: gadget: Avoid exposing kernel addresses



Usage of %p exposes the kernel addresses, an easy target to
kernel write vulnerabilities. With this patch currently
%pK prints only Zeros as address. If you need actual address
echo 0 > /proc/sys/kernel/kptr_restrict

Change-Id: Ie998f020f332b0992f38567d703f3ff7df0d188e
Signed-off-by: default avatarDennis Cagle <d-cagle@codeaurora.org>
parent d044c402
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