From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by kanga.kvack.org (Postfix) with ESMTP id AFA9A6B000A for ; Mon, 15 Oct 2018 09:18:47 -0400 (EDT) Received: by mail-wr1-f70.google.com with SMTP id j90-v6so16077934wrj.20 for ; Mon, 15 Oct 2018 06:18:47 -0700 (PDT) Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by mx.google.com with ESMTPS id 133-v6si7398162wmd.194.2018.10.15.06.18.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 06:18:46 -0700 (PDT) Subject: Re: [PATCH] x86/entry/32: Fix setup of CS high bits References: <1531906876-13451-1-git-send-email-joro@8bytes.org> <1531906876-13451-11-git-send-email-joro@8bytes.org> <97421241-2bc4-c3f1-4128-95b3e8a230d1@siemens.com> <35a24feb-5970-aa03-acbf-53428a159ace@web.de> <406a08c7-6199-a32d-d385-c032fb4c34d6@siemens.com> From: Jan Kiszka Message-ID: <1246b176-02bf-3c04-5470-69333951263b@siemens.com> Date: Mon, 15 Oct 2018 15:18:12 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: David Laight , Andy Lutomirski Cc: Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , LKML , Linux-MM , Linus Torvalds , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli On 15.10.18 15:14, David Laight wrote: > From: Jan Kiszka >> Sent: 15 October 2018 14:09 > ... >>> Those fields are genuinely 16 bit. So the comment should say >>> something like "Those high bits are used for CS_FROM_ENTRY_STACK and >>> CS_FROM_USER_CR3". >> >> /* >> * The high bits of the CS dword (__csh) are used for >> * CS_FROM_ENTRY_STACK and CS_FROM_USER_CR3. Clear them in case >> * hardware didn't do this for us. >> */ > > What's a 'dword' ? :-) > > On a 32bit processor a 'word' will be 32 bits to a 'double-word' > would be 64 bits. > One of the worst names to use. That's ia32 nomenclature: a doubleword (dword) is a 32-bit value. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux