Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3695196ybv; Mon, 10 Feb 2020 04:52:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwHw4Gs8tR7BGiRW9B5UCJarOKKDE0lKaFTrh3Up2ZTHXRrHKulAtN7K+3Cai3YNMRlp2tx X-Received: by 2002:a9d:6181:: with SMTP id g1mr974551otk.104.1581339145101; Mon, 10 Feb 2020 04:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339145; cv=none; d=google.com; s=arc-20160816; b=KVDsaCRGFZ54s34c3gfL7w1SsNq24ihJeH5eqyEjkHLhSZWGzptkmAVxFqKXcU92Gm TDxF1oJ03zjSohuZj59WjCEh3YmVuEjzCCQ5I6JylNjz9bJGcN/cGSqGbWAutWYZnLPC Se/LjnIQAykiFYCjz2y6y+iEIpHVnx47oS+++v1N4Wq7h07aeLQSnz05usuaydIV5n3/ 9nulGc1CDvhTsTYm1Di6EkXNaCeaH9uRS6rHJQV041AzxurGvfHsgVOyGi3vCzUfXCC0 LdzC290GeUlBv5A9H3BXKLs/mMnTBsKyC9dNc9eo5IM46FOR0uFAYiIwFpDKEdVURCnT dVpQ== 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=MtlZyBMauaoyHysOSiHb9+P6tfZbrW2aRUurJasI/LQ=; b=Q6xxgS1nl5KSPgcdsl6p6aDDkZSjIPjRSGO7fQJ5cj1rhfadNwNjvx2JrLIzB6bh4m Ig35d4f2cDDhz7m3nvUyauEcgLPgfiEyjpolTh7znZPc1/C1cODwLByRdwphVOBVzDER 2Af1nY8XlXpMWZnkxqdD/sn0RX8dT49ws7KrtO55FVLPGL7ch7Knxz1EiJKj6TuqgBZl 30hGVvjEMeWEqen2kevvhVH9utA4adlgoaxsOaQbtdHuz4/u3BzOwMW+JQMIK018ZU9J 7OM0tPXzcGRJm+gCv5VrnrK6oPwUjNsedFV65/UBgFVQeAIr8l/oMnAPLsPDasB+NAqN y0Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SZy0xgWr; 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 w5si141467otq.238.2020.02.10.04.52.13; Mon, 10 Feb 2020 04:52:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b=SZy0xgWr; 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 S1728686AbgBJMnz (ORCPT + 99 others); Mon, 10 Feb 2020 07:43:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:39836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729659AbgBJMkO (ORCPT ); Mon, 10 Feb 2020 07:40:14 -0500 Received: from localhost (unknown [209.37.97.194]) (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 8DFC321739; Mon, 10 Feb 2020 12:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338413; bh=jZcV4X8CoMBQJCOkAZGM6gkdBTBIngVw/b85D7d0Qjc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SZy0xgWrxeIN9bdcVf1Ad7UyQcyOZVnQ1vRPxpRSJUTl6WmncTdiuZg7R8kgbwDEa 9nE6NWIFzPZzYzhzbXE8cDoQIbaKYsGJ54Kniv5glU3uQ7Suoy2VXGaz8vzjwKY+aQ VdV0fKy1WV27teX5+UOvreVz3588tSAIOla4Ohfg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , "Martin K. Petersen" Subject: [PATCH 5.5 126/367] scsi: qla2xxx: Fix mtcp dump collection failure Date: Mon, 10 Feb 2020 04:30:39 -0800 Message-Id: <20200210122436.487650823@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Quinn Tran commit 641e0efddcbde52461e017136acd3ce7f2ef0c14 upstream. MTCP dump failed due to MB Reg 10 was picking garbage data from stack memory. Fixes: 81178772b636a ("[SCSI] qla2xxx: Implemetation of mctp.") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20191217220617.28084-14-hmadhani@marvell.com Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_mbx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -6152,9 +6152,8 @@ qla2x00_dump_mctp_data(scsi_qla_host_t * mcp->mb[7] = LSW(MSD(req_dma)); mcp->mb[8] = MSW(addr); /* Setting RAM ID to valid */ - mcp->mb[10] |= BIT_7; /* For MCTP RAM ID is 0x40 */ - mcp->mb[10] |= 0x40; + mcp->mb[10] = BIT_7 | 0x40; mcp->out_mb |= MBX_10|MBX_8|MBX_7|MBX_6|MBX_5|MBX_4|MBX_3|MBX_2|MBX_1| MBX_0;