Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111038imm; Wed, 1 Aug 2018 10:21:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd1Lud1lATisrSCy4N7A5CCQtlsVBN+/yeX/NGMF0YGz3Zp6u/d5Q5yR/f1pMoDEISZbmd/ X-Received: by 2002:a63:e001:: with SMTP id e1-v6mr25277007pgh.380.1533144086974; Wed, 01 Aug 2018 10:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144086; cv=none; d=google.com; s=arc-20160816; b=SoapG/cnajGTa1q2kWVKgiQiPLQfWWJHYdgII+vGHmq2nEx6fVbI+es2c2NfL1CYh3 yTvfCb/2IcSUE3P7kX1VWw4WKQcDclwOz/ki0mh0o0ZrDn6MxTXdfOFgemUuzX+PBQi2 msQ5Vo2uhHpyxGduyzOi8+86pVdg6V3LaUp7QAjpoetG0xn0BKG1mN4NXBQ1DmUPo7lk H0wGgA5E9u1Z5uxCFOk4NCMGn86CY78nqxpFHnvi0S6ykGpJmPxIIaamRsfzgpkoa9vJ ePSbl+98cz4xramipEJdZxgYivWdzvOUMJ/UlWPVRHJKPkPa3AL2UWylpoywJVopNfKK SdRA== 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=VuCEoVbsR6F7dkyhIhL0Q3Dj9f1SO7xY328SPvhX578=; b=rk/NaEG5TSWp0lmeCsOxBuO+T955daRyzEq1nXW73celEK+xrGshEs3aOxS11z62BN juvZNn1oBxzX6ZGkIEfxAHra5JGmQe1byUdVTb7n02tzRIUHAfC1M56MKJZHCnihxyB5 cY8V0OAzERJCiiGGS6rhjMcwpfcFj0k8GOyEDkBLMU0ufA7C+ARck9gL5rDSpikzt07s u1ku+zbIf0G5HebQakcUWp8/W0DFVHDSA3F6wAk7d6FGhM/Or//sqx3BBobLlN9PcRrH HLRYX4Oo0qyXB7pccZ5BsftJRExrO1olh3KVPPcAIXP+JfQWN3Jd+71x0pJ82bhr7wPO AfDg== 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 l67-v6si16713901pfl.167.2018.08.01.10.21.12; Wed, 01 Aug 2018 10:21:26 -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; 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 S2405229AbeHATGS (ORCPT + 99 others); Wed, 1 Aug 2018 15:06:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48266 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403884AbeHATGS (ORCPT ); Wed, 1 Aug 2018 15:06:18 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7CA28CC3; Wed, 1 Aug 2018 17:19:37 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Richter , Hendrik Brueckner , Martin Schwidefsky , Sasha Levin Subject: [PATCH 4.14 158/246] perf: fix invalid bit in diagnostic entry Date: Wed, 1 Aug 2018 18:51:08 +0200 Message-Id: <20180801165019.287010027@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Richter [ Upstream commit 3c0a83b14ea71fef5ccc93a3bd2de5f892be3194 ] The s390 CPU measurement facility sampling mode supports basic entries and diagnostic entries. Each entry has a valid bit to indicate the status of the entry as valid or invalid. This bit is bit 31 in the diagnostic entry, but the bit mask definition refers to bit 30. Fix this by making the reserved field one bit larger. Fixes: 7e75fc3ff4cf ("s390/cpum_sf: Add raw data sampling to support the diagnostic-sampling function") Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/s390/include/asm/cpu_mf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/include/asm/cpu_mf.h +++ b/arch/s390/include/asm/cpu_mf.h @@ -116,7 +116,7 @@ struct hws_basic_entry { struct hws_diag_entry { unsigned int def:16; /* 0-15 Data Entry Format */ - unsigned int R:14; /* 16-19 and 20-30 reserved */ + unsigned int R:15; /* 16-19 and 20-30 reserved */ unsigned int I:1; /* 31 entry valid or invalid */ u8 data[]; /* Machine-dependent sample data */ } __packed;