Received: by 10.213.65.68 with SMTP id h4csp960869imn; Wed, 28 Mar 2018 16:53:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rF20jTLRFdEwBH+Ax5HdpHdDFSy8Rf++pUAaFUXmXSyyn0rRZjkzf+IrAx5XqAOr5HDN7 X-Received: by 10.99.114.2 with SMTP id n2mr3975631pgc.274.1522281192534; Wed, 28 Mar 2018 16:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522281192; cv=none; d=google.com; s=arc-20160816; b=LtumwTyaFcSsfmPBnqAAOxuS7sGZxpPxYVkmNmsCfwwR3WwFtbtj5ls1mh7IKzA6mw Xtt/AkRFOIta7rb7l9rCppP58earwKns+ENX4j5UyunXIzp9KAZZKOKR0kJ4oPJZiIb6 lLgdVVjd8cNjJmLot+ovNewEHW+Y4NZMrCeUF6wxsOxPzvQSvey6zD6uMi2hDWVPtS3Z 2NlJ0ESB7HZlTagAYHERqI0wKpw89iDVmljTaTtOxzFqI+tfxErN+HAfaqJk4h/ACNWp Q4N0Rd0y4Z9xbAoy7Wz3LfERxeDCewpWJTSd/xOktq4Qu2nRNoMH8uXWyenn3tYylTh5 ESOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:in-reply-to :subject:cc:to:from:user-agent:references:arc-authentication-results; bh=KLhGgy9sLTDqsYDAs1xdVu2NS7LlC1B+9GYpCJzYGHM=; b=mJqixE7Vb0SwH3Uzb1o65DYBioy5zRbA8yjO8P2uwR5NVLSULAC6z3S4fZaiiZXXcr WiyCWkUa86N7wQ68GWwRKyX3qcURnUVO4NDYny8+f99+MckkJx0B5Cmrv9TlR0jVHENW 0NitwW2a5x4B7tasQ3/4j9dsV+hrYS3WrXDuAe6mp2AhvMlfBmYB6nXGGpaxYRceGZ7f Zbhvp577L5zNxsRPxoxAOu5BFEwHqvI5DLcDA3IuX5kFNaJ2H6fRdtF1UVuYE4qPxJ8f ul5b08IfERjSePQmw6HhUy0w7oJK8M8M9bB1b8yC2S2fw+srQJ0S6NnI2DkiAoa48npW dRKw== 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; 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 p9si3142312pgq.315.2018.03.28.16.52.58; Wed, 28 Mar 2018 16:53:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751223AbeC1XwB (ORCPT + 99 others); Wed, 28 Mar 2018 19:52:01 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53636 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbeC1Xv7 (ORCPT ); Wed, 28 Mar 2018 19:51:59 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2SNmpps069351 for ; Wed, 28 Mar 2018 19:51:58 -0400 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2h0mp98p77-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 28 Mar 2018 19:51:58 -0400 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 28 Mar 2018 17:51:57 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 28 Mar 2018 17:51:52 -0600 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2SNpqth37027894; Wed, 28 Mar 2018 16:51:52 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B43FBE03B; Wed, 28 Mar 2018 17:51:52 -0600 (MDT) Received: from morokweng.localdomain (unknown [9.85.167.176]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS id 4287ABE03A; Wed, 28 Mar 2018 17:51:46 -0600 (MDT) References: <1519264541-7621-1-git-send-email-linuxram@us.ibm.com> <1519264541-7621-8-git-send-email-linuxram@us.ibm.com> <87muys3p2v.fsf@morokweng.localdomain> <34fd1ae9-9697-ac6c-d6bc-7c25b4515a25@intel.com> User-agent: mu4e 1.0; emacs 25.3.1 From: Thiago Jung Bauermann To: Dave Hansen Cc: Ram Pai , shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, akpm@linux-foundation.org, 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, ebiederm@xmission.com, arnd@arndb.de Subject: Re: [PATCH v12 07/22] selftests/vm: fixed bugs in pkey_disable_clear() In-reply-to: <34fd1ae9-9697-ac6c-d6bc-7c25b4515a25@intel.com> Date: Wed, 28 Mar 2018 20:51:42 -0300 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18032823-8235-0000-0000-00000D3B5742 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008761; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000255; SDB=6.01009846; UDB=6.00514467; IPR=6.00789128; MB=3.00020300; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-28 23:51:57 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18032823-8236-0000-0000-00004040D761 Message-Id: <878tabvjw1.fsf@morokweng.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-28_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803280241 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dave Hansen writes: > On 03/28/2018 01:47 PM, Thiago Jung Bauermann wrote: >>>> if (flags) >>>> - assert(rdpkey_reg() > orig_pkey_reg); >>>> + assert(rdpkey_reg() < orig_pkey_reg); >>>> } >>>> >>>> void pkey_write_allow(int pkey) >>> This seems so horribly wrong that I wonder how it worked in the first >>> place. Any idea? >> The code simply wasn't used. pkey_disable_clear() is called by >> pkey_write_allow() and pkey_access_allow(), but before this patch series >> nothing called either of these functions. >> > > Ahh, that explains it. Can that get stuck in the changelog, please? Yes, will be in the next version. -- Thiago Jung Bauermann IBM Linux Technology Center