Received: by 10.223.164.200 with SMTP id h8csp929699wrb; Mon, 6 Nov 2017 01:09:51 -0800 (PST) X-Google-Smtp-Source: ABhQp+SGx7sFDKZ0M9jTJ89fIJ+cPo1nxRHniyI0Rm0Pp4xKz6gp8F2FVsP3Yj55vwe61V2N0Don X-Received: by 10.99.56.82 with SMTP id h18mr14888112pgn.281.1509959391444; Mon, 06 Nov 2017 01:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509959391; cv=none; d=google.com; s=arc-20160816; b=qXVSwaUw20AsBd9zZzNOqD9Ta+ftdhQLCSvojd3oBfX/k/W4bcMyN/37SpiI9A4oWY SPxqzSK7GvZWQIYkr28jiJrnCpgBcxcXlnb5Nd+q7b8gC9DGEeCdoygRUe4AOZ0PtkWh uFcV0ogo41Li4BHOoGdsyRtpmUcQ5ONPqkkrQDY/1tuiKXZlawPOvCcFZDidFqjo2icx 3UHMPDY7N0x8Cper93Ckpkn0zQUfXk+2WIat8UcWDJ1UGQ8tmQG5APIYsjw10qTRBdUa CJaxqopUFK8etwnB04Rc1e/8N2PNOfyX1kc4NYkH/RzJB0bXnKoHSyzlB92LMQhxxfwz d6pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=2c5+qJu4aKHALbG6MVUrVsP406S3tu8XQ/pXwzUnD8Y=; b=gNmARvjIsjBdrw1S40W/XPxkeTlhgJ9q+y+i4hu311/VyWKgvtcfT734PZO4cEVFgu /MzAb1z2PbMk5z6IhCPz5MbpltxXOKpY1Np+9iMVGu7geoQSWEBupyjzfqi/2WT4gLgD Q/42az2Ot5r9eYs7NPThQq62RmdzFy/19a3YaYOlnyL7Tb17c2MSPFCbb+dE8z5/f+8Z gWR7KRZ2dR0UIofDbyKgc1tgqjGEW/PAAZhLgH7b360XEU9G/0l/MBCg44eKD2LBHRYf fU2HhBsjMcsnUMXBDPlS1cJk60f/bRiwNWYFCV9bTmcJnm88hwv4bQbhF0LSJy2kuo0k 2cqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FwSWI1Mz; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si9853939plk.185.2017.11.06.01.09.37; Mon, 06 Nov 2017 01:09:51 -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=fail header.i=@gmail.com header.s=20161025 header.b=FwSWI1Mz; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbdKFJIJ (ORCPT + 98 others); Mon, 6 Nov 2017 04:08:09 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:56792 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752535AbdKFJAC (ORCPT ); Mon, 6 Nov 2017 04:00:02 -0500 Received: by mail-qt0-f193.google.com with SMTP id z28so9976387qtz.13; Mon, 06 Nov 2017 01:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=2c5+qJu4aKHALbG6MVUrVsP406S3tu8XQ/pXwzUnD8Y=; b=FwSWI1MzVoMJJQfxXjd0mcNLKM0UAJneaYiNLKwHsX8lajOqCJkGR1Z9PGtYWOMhjO 4qADgpVYLcXm0eKAlwvzWGM4tJOppPlxj3pFikySAI0mLKHP/nx/wc66Llyp/jdG6ch7 jD/FyASvHjZwzix1aRJVicTeF4wGyRkizQ06Eite9+ECFm3qLxoXSGCzQlPiaVqs7s8g Qrs/37M/UyorADoCKyRiGDDEOIgpU5HOnbbuIGT06L0vLsSpjmGwEXHsfG3x6ptU0tUZ ZLR+s/aZ70CgCm8yUYAkJsIwGy3GLqJhSO3tLkX42PKn+Wte09tcM3KTw2vUhCLxw3Wf 3OmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=2c5+qJu4aKHALbG6MVUrVsP406S3tu8XQ/pXwzUnD8Y=; b=GzgnrNYzMIROdTGkDIrBljdOoriS7fFGX/IpBi9fuXugKsF7oB2VK6eEccYgHHOOR7 GSKffjKABzMiLES/zv1PebHTren+/LFhdl2vkGEXK3DDxsD5KKNQoL2nKvNo1miB3Nt0 ddinJzF4v1ZkQvoquKh6Ys/akzyw5HfQCn7Pb++4GJYyXMOu4HGNlnAPfxKvihMt1Qb8 L4BiJprVKaVkQ7b1SsLwkzAazI6MHS03pXvDxrfOX/M8bvd4M8d8mYaPP8aoA0OnMYtV a6KJpExlu90XaPwss1NA0llAPzPZXsrVHk37jUDtNue6a2a2Rk206VSiwVnV1Bej8bhj yUDw== X-Gm-Message-State: AMCzsaXt/oy8AWefv+AZWIfSH7YBB7VRywd3PJi2WcWduS2CRSQl4mgr b/UQLE4voOED6EPJ3hBOZaY= X-Received: by 10.237.33.186 with SMTP id l55mr22105159qtc.71.1509958802105; Mon, 06 Nov 2017 01:00:02 -0800 (PST) Received: from localhost.localdomain (50-39-103-96.bvtn.or.frontiernet.net. [50.39.103.96]) by smtp.gmail.com with ESMTPSA id r26sm8001094qki.42.2017.11.06.00.59.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 01:00:01 -0800 (PST) From: Ram Pai To: mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org, corbet@lwn.net, arnd@arndb.de Cc: linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, linuxram@us.ibm.com Subject: [PATCH v9 37/51] selftest/vm: fix the wrong assert in pkey_disable_set() Date: Mon, 6 Nov 2017 00:57:29 -0800 Message-Id: <1509958663-18737-38-git-send-email-linuxram@us.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1509958663-18737-1-git-send-email-linuxram@us.ibm.com> References: <1509958663-18737-1-git-send-email-linuxram@us.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the flag is 0, no bits will be set. Hence we cant expect the resulting bitmap to have a higher value than what it was earlier. Signed-off-by: Ram Pai --- tools/testing/selftests/vm/protection_keys.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/testing/selftests/vm/protection_keys.c b/tools/testing/selftests/vm/protection_keys.c index 8e2e277..5aba137 100644 --- a/tools/testing/selftests/vm/protection_keys.c +++ b/tools/testing/selftests/vm/protection_keys.c @@ -443,7 +443,7 @@ void pkey_disable_set(int pkey, int flags) dprintf1("%s(%d) pkey_reg: 0x%lx\n", __func__, pkey, rdpkey_reg()); if (flags) - pkey_assert(rdpkey_reg() > orig_pkey_reg); + pkey_assert(rdpkey_reg() >= orig_pkey_reg); dprintf1("END<---%s(%d, 0x%x)\n", __func__, pkey, flags); } -- 1.7.1 From 1585213471462168994@xxx Mon Nov 27 10:09:33 +0000 2017 X-GM-THRID: 1585213471462168994 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread