Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3937573imm; Mon, 8 Oct 2018 12:00:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV637DdnyEIp+MxLRcVpDxziYaNUioYOu0tT+YQuPmg6YsTFYRHCSdhCmviefGKiBCsLlm5Yi X-Received: by 2002:a62:6344:: with SMTP id x65-v6mr15351803pfb.13.1539025214100; Mon, 08 Oct 2018 12:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539025214; cv=none; d=google.com; s=arc-20160816; b=k0kZrswL8DQWrnhDGQjybYrlXW0bMCUuD4U8hI9oiX/oS+yqxbp0O5WIMHlWpXWH9s mxY7ws3/eLO3nhbCJ0qfJhVQsBPj6siQmw/MRPGdn08rOAPoW8mfpVhVvY2y30bzCNgj bey4ZyNWSjYptAnC74+jTFF2XafRcJswiE2vopxJDP3JA379Uc+roPfRCYoRikBMmPK7 r2+odNwJsTYY36t+EcIMlcvo7b+a5r/dBgHlqQqreWybnOM989G8I+0cjlkwhJQUV/Sd SrTAAdWcUPJOP6LG3F3h8+HmKF3afvU64e2UGR4MgvZImNFXw7CeoKC0elaRUAN89x4L 5gIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DnLMlFAsdZZlZ+zhYu5LAnyR2YleATvmnDBtJC0Z+nY=; b=ZjZ+ZDr5nSBkTHoY+RN8DqusqrZB74Veu1/dCaDesYmNi1xkQ6u2kQ6b0iNEAFOYL/ 8aXFTc/hYM5j53YnJHSWxHV1lPSedQNqXZ7kBuIClFXYjlzi5gt4MGCP0th3eIUFRjwm S/Rozv/f4J0baOF5/4VwV704j9ItNw/p/TWgomQOom2otiDYjqIcseAWWQFodlcytyQZ VJgJFw1XUexWPdbSST7jTZMNMPpljkIhA/c7/l+xzm+SWzwnAuyTMWq1KEAg0qTfpe3O wWL4ZIQoMQtLCbE1p/XTnDNjcNTKf5Ed0P/siPreXcPShRyZdvCyWehCSK4cfZMWm5OC xPtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rfT1i22y; 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 b10-v6si20806474pfb.89.2018.10.08.11.59.58; Mon, 08 Oct 2018 12:00:14 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=rfT1i22y; 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 S1731922AbeJICCr (ORCPT + 99 others); Mon, 8 Oct 2018 22:02:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:52132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731296AbeJICCq (ORCPT ); Mon, 8 Oct 2018 22:02:46 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 731C0204FD; Mon, 8 Oct 2018 18:49:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024579; bh=s6T2vCvbPsKFdW9PeMoweAEek3CpekWEpttO0TR0dF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rfT1i22yP86WLVvoZAMRAXnyfJc1EXC6rpFN8T+wB6i/l4DgA2ZnOoIi5Ehl4K46B Wmq+lm5u0MtPguqS4XMmxr4dgs1yQ+P17m40dCckd93qBhKmPg1DyBkKzZZkMJ0USf ukIsrVwdOFu/BCHJI7XEgo+pJAXLnTCGrC2RJy2E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emmanuel Grumbach , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 4.18 063/168] mac80211: shorten the IBSS debug messages Date: Mon, 8 Oct 2018 20:30:43 +0200 Message-Id: <20181008175622.444406539@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Emmanuel Grumbach [ Upstream commit c6e57b3896fc76299913b8cfd82d853bee8a2c84 ] When tracing is enabled, all the debug messages are recorded and must not exceed MAX_MSG_LEN (100) columns. Longer debug messages grant the user with: WARNING: CPU: 3 PID: 32642 at /tmp/wifi-core-20180806094828/src/iwlwifi-stack-dev/net/mac80211/./trace_msg.h:32 trace_event_raw_event_mac80211_msg_event+0xab/0xc0 [mac80211] Workqueue: phy1 ieee80211_iface_work [mac80211] RIP: 0010:trace_event_raw_event_mac80211_msg_event+0xab/0xc0 [mac80211] Call Trace: __sdata_dbg+0xbd/0x120 [mac80211] ieee80211_ibss_rx_queued_mgmt+0x15f/0x510 [mac80211] ieee80211_iface_work+0x21d/0x320 [mac80211] Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/mac80211/ibss.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -947,8 +947,8 @@ static void ieee80211_rx_mgmt_deauth_ibs if (len < IEEE80211_DEAUTH_FRAME_LEN) return; - ibss_dbg(sdata, "RX DeAuth SA=%pM DA=%pM BSSID=%pM (reason: %d)\n", - mgmt->sa, mgmt->da, mgmt->bssid, reason); + ibss_dbg(sdata, "RX DeAuth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); + ibss_dbg(sdata, "\tBSSID=%pM (reason: %d)\n", mgmt->bssid, reason); sta_info_destroy_addr(sdata, mgmt->sa); } @@ -966,9 +966,9 @@ static void ieee80211_rx_mgmt_auth_ibss( auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); - ibss_dbg(sdata, - "RX Auth SA=%pM DA=%pM BSSID=%pM (auth_transaction=%d)\n", - mgmt->sa, mgmt->da, mgmt->bssid, auth_transaction); + ibss_dbg(sdata, "RX Auth SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); + ibss_dbg(sdata, "\tBSSID=%pM (auth_transaction=%d)\n", + mgmt->bssid, auth_transaction); if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) return; @@ -1175,10 +1175,10 @@ static void ieee80211_rx_bss_info(struct rx_timestamp = drv_get_tsf(local, sdata); } - ibss_dbg(sdata, - "RX beacon SA=%pM BSSID=%pM TSF=0x%llx BCN=0x%llx diff=%lld @%lu\n", + ibss_dbg(sdata, "RX beacon SA=%pM BSSID=%pM TSF=0x%llx\n", mgmt->sa, mgmt->bssid, - (unsigned long long)rx_timestamp, + (unsigned long long)rx_timestamp); + ibss_dbg(sdata, "\tBCN=0x%llx diff=%lld @%lu\n", (unsigned long long)beacon_timestamp, (unsigned long long)(rx_timestamp - beacon_timestamp), jiffies); @@ -1537,9 +1537,9 @@ static void ieee80211_rx_mgmt_probe_req( tx_last_beacon = drv_tx_last_beacon(local); - ibss_dbg(sdata, - "RX ProbeReq SA=%pM DA=%pM BSSID=%pM (tx_last_beacon=%d)\n", - mgmt->sa, mgmt->da, mgmt->bssid, tx_last_beacon); + ibss_dbg(sdata, "RX ProbeReq SA=%pM DA=%pM\n", mgmt->sa, mgmt->da); + ibss_dbg(sdata, "\tBSSID=%pM (tx_last_beacon=%d)\n", + mgmt->bssid, tx_last_beacon); if (!tx_last_beacon && is_multicast_ether_addr(mgmt->da)) return;