Patch "usb: dwc3: replace %p with %pK" has been added to the 3.18-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
usb: dwc3: replace %p with %pK
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-dwc3-replace-p-with-pk.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
04fb365c453e14ff9e8a28f1c46050d920a27a4aMon Sep 17 00:00:00 2001
From: Felipe Balbi <[email protected]>
Date: Wed, 17 May 2017 15:57:45 +0300
Subject: usb: dwc3: replace %p with %pK
From: Felipe Balbi <[email protected]>
commit 04fb365c453e14ff9e8a28f1c46050d920a27a4a upstream.
%p will leak kernel pointers, so let's not expose the information on dmesg and instead use %pK. %pK will only show the actual addresses if explicitly enabled under /proc/sys/kernel/kptr_restrict.
--- drivers/usb/dwc3/dwc3-st.c | 2 +- drivers/usb/dwc3/gadget.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/usb/dwc3/dwc3-st.c +1 -1
@@ -227,7 +227,7 @@ static int st_dwc3_probe(struct platform dwc3_data->syscfg_reg_off = res->start; -dev_vdbg (&pdev->dev,"glue-logic addr 0x%p, syscfg-reg offset 0x%x\n" , +dev_vdbg (&pdev->dev,"glue-logic addr 0x%pK, syscfg-reg offset 0x%x\n" , dwc3_data->glue_base, dwc3_data->syscfg_reg_off); dwc3_data->rstc_pwrdn =devm_reset_control_get (dev,"powerdown" );
drivers/usb/dwc3/gadget.c +2 -2
@@ -1229,7 +1229,7 @@ static int dwc3_gadget_ep_dequeue(structdwc3_stop_active_transfer (dwc, dep->number, true); goto out1; } -dev_err (dwc->dev,"request %p was not queued to %s\n" , +dev_err (dwc->dev,"request %pK was not queued to %s\n" , request, ep->name); ret = -EINVAL ; goto out0;
@@ -1833,7 +1833,7 @@ static int __dwc3_cleanup_done_trbs(stru* would help. Lets hope that if this occurs, someone * fixes the root cause instead of looking away :) */ -dev_err (dwc->dev,"%s's TRB (%p) still owned by HW\n" , +dev_err (dwc->dev,"%s's TRB (%pK) still owned by HW\n" , dep->name, trb); count = trb->size &DWC3_TRB_SIZE_MASK ;
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/usb-dwc3-replace-p-with-pk.patch