Received: by 10.213.65.68 with SMTP id h4csp840319imn; Wed, 28 Mar 2018 13:56:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/K3HdJ2nd+/nV5BrJ2c3+DYklbYfmCrTon3Dq7ByDlkqrI4jzcFEs5m1Io/QzIm1SXhECx X-Received: by 10.99.122.22 with SMTP id v22mr3457884pgc.300.1522270608101; Wed, 28 Mar 2018 13:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522270608; cv=none; d=google.com; s=arc-20160816; b=aUjvuJTUuLxCiZg9B8HKiOSd7cPdskWFHdhC5jpfTvVkN3j0NADt1qLP99Rfrl85Wd vNxqH7mGMnyshFIkfleVcLRfOsVKF7fPHaRPiUHMoB4mLjFpEZ2ndGXCDC9mbUx6n3ih Q58qLBEZLB0uwHCBk2CIL0jYF1CgAAfSdbgNzLCeOzrRHtGThe+p9sKrGOnAarhcXt3V 0UA43pFmwdyNkFGX76BCqLOjOgLoCIEtXBzAdyXoKjaWOQPcSYK2BCoGOno6tYhW+NmJ KrtjoYOU5hCWPzXMuahRtapSqQa0nlZdvgKXBqc0vzpFo504KKJgPuz1G+thmmBl72ld s3ig== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=Mx7kJ6+vKTOxqu4ARvzfjOfoDg4BFMG0H4aSCWctqk0=; b=0koNn7/EGZ4Pl7OK86LfGPhRM5vEaaK/C9D6Ua6Q19T53LLEQHf7/4o192UgCSP2j/ rLkIjFBTwKI0SpY/HKxhi8KazQG7O/7SSjkW8baqlfhPf20bZXGDT6Y+biZ1YDgvdmLT //7n6lfYJXvgFG03KuPuxUYHEyx1swBVE4ipdH8BNEyYrWM3tHc71pWAYyW9yfzQFtWh 2r029seU8eH1qEUNbHdQcwNI5wz7pKuVFlK/EfmK85C7UeQMKMKlms5S0qE6p18AFkh8 mtZCS0GOUF0byUTfhPs0YrUIqq4en7ItJrWRyNWZPBIQSuPUj78XadS4szuOu3mDPm6z Nvag== 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 c12si2959993pgv.630.2018.03.28.13.56.33; Wed, 28 Mar 2018 13:56:48 -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 S1753232AbeC1Uzj (ORCPT + 99 others); Wed, 28 Mar 2018 16:55:39 -0400 Received: from mga02.intel.com ([134.134.136.20]:11086 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbeC1Uzh (ORCPT ); Wed, 28 Mar 2018 16:55:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2018 13:55:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,373,1517904000"; d="scan'208";a="37661512" Received: from ray.jf.intel.com (HELO [10.24.9.20]) ([10.24.9.20]) by FMSMGA003.fm.intel.com with ESMTP; 28 Mar 2018 13:55:34 -0700 Subject: Re: [PATCH v12 07/22] selftests/vm: fixed bugs in pkey_disable_clear() To: Thiago Jung Bauermann 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> 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 From: Dave Hansen Message-ID: <34fd1ae9-9697-ac6c-d6bc-7c25b4515a25@intel.com> Date: Wed, 28 Mar 2018 13:55:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <87muys3p2v.fsf@morokweng.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?