Received: by 10.223.185.116 with SMTP id b49csp2402649wrg; Thu, 15 Feb 2018 11:03:54 -0800 (PST) X-Google-Smtp-Source: AH8x227fUysyRX60GWm4E1zYZjhgfgCJMICHsfsVkR6my3N3xzs+qmL3Dl5kfa+3d7gckuZvJ0Pf X-Received: by 10.98.46.70 with SMTP id u67mr3565407pfu.16.1518721434010; Thu, 15 Feb 2018 11:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518721433; cv=none; d=google.com; s=arc-20160816; b=ZxRFOyKi9H4qxm8fe27JhJhx1jjnLsLUVsMB3lMlfi8lyuS86Q60rsowOQ9b/3IYcv w0G/3yunhJ9LKITJN2Z9E6Rt3UovkcF/jjaA5HY5oEMiEyPb3T2R2Zex6/qafhwn0nMg SSN65XqO8PeueH3f0TbYh4erexbD4GCE/3+V/D10R/9Yglq+QzC6jBfL6s78YFjmsJnF Tc8pcy0/QgK8vXS3q9gQKZVKWWni1xT4krSdojddwn1Fj0YK1Gcw3nZm7Sr+/XRSiY59 IKGLobvGlvmVQU1xIFZWe0M1RnCQnXvCMDcjQkZ8JbMO1D5AR9nIPjgqs4Zcx47w4W0H oCHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=51O9SJxOVii3exK99cjzc+BIxuKW9RcHMzShk7ur29o=; b=iH2WcF/dxoPyYV/TbhoTyCnMOPDUlz4gGiay8DBFjJ9p5X2GpscUO4jm579madJpPx +nuPV254te+HBMqSHgYLLd3DiFOH82O90Cd5cAS7RAZS5ymrI96U5LKg19RwVstaCkWp N9dhZrDk3Ps5m4cUGJ4l43LJsMFfWGFAWYX/98bR8oq6mOMJWGfi/tEsTS/G2Z1ViL5W A+oZoseNJaBXm0hq1PIJ6pI8opZ8F4Pzn3K4oLlNfeRyIaYwXmFwtYHBtdj2a1zDGIm2 GoyiXumy9H9ZVRJKukssIyit1n4SeG6XzL4cxEP3iQhfQFu9df1m2+1A5pyQeDOBIYAM 61vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si4684510pgt.833.2018.02.15.11.03.39; Thu, 15 Feb 2018 11:03:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161297AbeBOPTP (ORCPT + 99 others); Thu, 15 Feb 2018 10:19:15 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47774 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161210AbeBOPTL (ORCPT ); Thu, 15 Feb 2018 10:19:11 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B4A42FF7; Thu, 15 Feb 2018 15:19:10 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shuah Khan Subject: [PATCH 3.18 22/45] usbip: stub: stop printing kernel pointer addresses in messages Date: Thu, 15 Feb 2018 16:17:13 +0100 Message-Id: <20180215144120.598182835@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215144115.863307741@linuxfoundation.org> References: <20180215144115.863307741@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shuah Khan commit 248a22044366f588d46754c54dfe29ffe4f8b4df upstream. Remove and/or change debug, info. and error messages to not print kernel pointer addresses. Signed-off-by: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- drivers/usb/usbip/stub_main.c | 5 +++-- drivers/usb/usbip/stub_rx.c | 7 ++----- drivers/usb/usbip/stub_tx.c | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) --- a/drivers/usb/usbip/stub_main.c +++ b/drivers/usb/usbip/stub_main.c @@ -252,11 +252,12 @@ void stub_device_cleanup_urbs(struct stu struct stub_priv *priv; struct urb *urb; - dev_dbg(&sdev->udev->dev, "free sdev %p\n", sdev); + dev_dbg(&sdev->udev->dev, "Stub device cleaning up urbs\n"); while ((priv = stub_priv_pop(sdev))) { urb = priv->urb; - dev_dbg(&sdev->udev->dev, "free urb %p\n", urb); + dev_dbg(&sdev->udev->dev, "free urb seqnum %lu\n", + priv->seqnum); usb_kill_urb(urb); kmem_cache_free(stub_priv_cache, priv); --- a/drivers/usb/usbip/stub_rx.c +++ b/drivers/usb/usbip/stub_rx.c @@ -230,9 +230,6 @@ static int stub_recv_cmd_unlink(struct s if (priv->seqnum != pdu->u.cmd_unlink.seqnum) continue; - dev_info(&priv->urb->dev->dev, "unlink urb %p\n", - priv->urb); - /* * This matched urb is not completed yet (i.e., be in * flight in usb hcd hardware/driver). Now we are @@ -271,8 +268,8 @@ static int stub_recv_cmd_unlink(struct s ret = usb_unlink_urb(priv->urb); if (ret != -EINPROGRESS) dev_err(&priv->urb->dev->dev, - "failed to unlink a urb %p, ret %d\n", - priv->urb, ret); + "failed to unlink a urb # %lu, ret %d\n", + priv->seqnum, ret); return 0; } --- a/drivers/usb/usbip/stub_tx.c +++ b/drivers/usb/usbip/stub_tx.c @@ -201,8 +201,8 @@ static int stub_send_ret_submit(struct s /* 1. setup usbip_header */ setup_ret_submit_pdu(&pdu_header, urb); - usbip_dbg_stub_tx("setup txdata seqnum: %d urb: %p\n", - pdu_header.base.seqnum, urb); + usbip_dbg_stub_tx("setup txdata seqnum: %d\n", + pdu_header.base.seqnum); usbip_header_correct_endian(&pdu_header, 1); iov[iovnum].iov_base = &pdu_header;