Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1381323imm; Sat, 4 Aug 2018 02:13:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcbZ024TYGO+rTH+F+3RozAqSTZwzRas3hJqq/i6qfR0yo72ci04c9+zu21RPFqwViY/ufe X-Received: by 2002:a63:b02:: with SMTP id 2-v6mr6763422pgl.301.1533374024219; Sat, 04 Aug 2018 02:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533374024; cv=none; d=google.com; s=arc-20160816; b=YIHp5Of3ia3Y1Pd+QGfRYZzal6v6Sx9hNNIrCknq/zryG4D4iWyZaD6Au8CW24Dxpa WadmBlMgmqEP7sxQN3dWZMmDVTSFNEDpRycxuxihh7tyuQbCIxu8yHzCcjqQH6aJsEIS dA+732zFxZo6wTu0v7v+xmv+SGk/Rpzh8zeSxDAdzKQLOhDMlvMZpHG6Mc8OJyvzWFbL 0r1JLw/8IpB8OD00nuH/qF/X3e1Kxx+01ZJ/SoAuWZGeYoHzhnMUh5e2Cwnjil1iwFIS NVrV0Y93wzBgQ+qU1nEG89VE5+mJCaNlfoOZZKxkh5oZWP4UYb8lToG9vlKL6WkKV8oB nsYg== 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=82WvkrTD7S5NAxhnPBNu0AGmzBJo3FyeqfgY4kvpWtc=; b=TOkANarXhkYzJFI1bFYstukQlHCI9/ZC03p9dapv1tF6LuUnq2VIRf3HTkAV2o0HD9 yq0v+jbZ7tFNmLDQLDd93hxqYOPXSEbYNmtAkC42m4UEKpe/ncF4/jVDTaAdUpjKsRLv YfFS7s2nO1FduWauSHQFGYm69CxM2kmaYWtjWC9iunqMunaAPFzuKZlKot9cpgzLXwbN LA3xoUQSKo1jYy6jiCfKIGn+63DoHxEEhlfD7NEO3qQnrrW3zk2a+dWOmaKbX2NFc6Tj MhC1UwPKyRzqqiSNP3I3AnU5zvgMUYQft8ZZphkYoRumX5heS1xg5wdTPwQ9tySHv9Fr f1gw== 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 b2-v6si6201612pge.114.2018.08.04.02.13.29; Sat, 04 Aug 2018 02:13:44 -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 S2389301AbeHDLLy (ORCPT + 99 others); Sat, 4 Aug 2018 07:11:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50340 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729655AbeHDLLy (ORCPT ); Sat, 4 Aug 2018 07:11:54 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8970989C; Sat, 4 Aug 2018 09:11:53 +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.4 072/124] perf: fix invalid bit in diagnostic entry Date: Sat, 4 Aug 2018 11:01:01 +0200 Message-Id: <20180804082705.212477531@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180804082702.434482435@linuxfoundation.org> References: <20180804082702.434482435@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.4-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 @@ -113,7 +113,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;