Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1738467imm; Thu, 12 Jul 2018 07:05:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe9zIrl5MoYO1ujDHdcpnw1TV4dojpycIglG2pG1CtOBK0Asm/i5k7HgTFwCPkLY2phOmj7 X-Received: by 2002:a17:902:102b:: with SMTP id b40-v6mr2339868pla.125.1531404344244; Thu, 12 Jul 2018 07:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531404344; cv=none; d=google.com; s=arc-20160816; b=zkSK5DQLS3qh5AVCu1i2rk0ePz6ME5CrkjSqlzYAGnMi7R5e1P1NuiAgMkr/ASBf4K Cr9R9CHkD2na6txHZt7QAEY4xvBs+Y1K4pyt5r4iI0PxscGuoqbm+MPEswegPICW4iuN nAuz0w8VFU9ZpPxwpL7LRHu+/uRaSStxOHtCYXqTUhIh3XfHIEeDvdDziSmbyhnFEaiA WuB77n0PTz225RHSl0wMbMNNkl1j6+2MQERpXQX74C3Q0dBMku4HD1hPm/YcFw4Td+LE dzpJIGMff5QLxOvsMiWzvpl1cWu07b+atpqPz9DuG55G0w9lLfr3yIFsG9Vuq5dt+R51 zcsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=oo4MTHtPM3FPeComRGsuoSH+yFENFOETOKYT7x5UkWQ=; b=vYIjtqnueNxmSqWV5nkTRZsPIZCQgNed2awm48NdsILDJLC5naGQNzAr7qWGTzfxYx qfFrCQymzlAwfzZFapVEkoqQjY30d9mpvQ0WogYxBaz4zBC3PSXzr1c5WNfulUb8zKjF 134H0d/tZYoEhQU75gefINIT4Xpq4cV6ySf4YoIA0t9o3A4n6+/gp2VZ4jz7hpMmtVUv LtOSIdchboCLj9aTuAAMyK8k6XFiPtAtZk/tKCaN4ayogAuU2MuxCMOzWrpjvCjskFY0 PU1pAImgnz0TPoQSbcWrWEqlUnlG4uPPbN5PLUDESz3OlJX8uXIo7SoHKxuqaJrR+ri2 4NXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bFnhuC4c; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7-v6si20992937pll.445.2018.07.12.07.05.18; Thu, 12 Jul 2018 07:05: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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bFnhuC4c; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732681AbeGLONP (ORCPT + 99 others); Thu, 12 Jul 2018 10:13:15 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34170 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbeGLONP (ORCPT ); Thu, 12 Jul 2018 10:13:15 -0400 Received: by mail-wr1-f67.google.com with SMTP id c13-v6so21801888wrt.1; Thu, 12 Jul 2018 07:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=oo4MTHtPM3FPeComRGsuoSH+yFENFOETOKYT7x5UkWQ=; b=bFnhuC4cVWodoFpen9TpO/Lgb2xzFwM4UUvJcnm13o4NbduOBW6ETf1orFotCH5JfZ KD/yMwTC7MHwNGi8r7uBgXPWaKqyxsKE3udhwbrPHM5QpaizX+ZHegD4F9QxAy8D0iVe K8EGMSmnPeJSmDKYYQWFDMdxc123jc2fUd+BfvYnALliDve6gP79mf6ch8KdHyd2H7GC GQ4OMNUarZILfXylbhc53Az9InPvVvEYdi9LZ+IAId/7PjWUlehDUKCCoQ914Nuy/TW2 EL3Wpag4YJXga7AlHqeceevbO2VwqSofAGSQ3zv9ruiV0vbgitovjaWne4OWQXqyJl8s x/uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=oo4MTHtPM3FPeComRGsuoSH+yFENFOETOKYT7x5UkWQ=; b=CI6JWyxlYwVY4Emje8xQ2ZIKIH9dWKAqk4xqXr+1onQ3kFZQs3rtqqe9MmbpkqMlet fGs7zP0vAGwJ7I8iV1WwalrWkgrVfiXfUIKhJB5lKYTyZQpUUDGxTs65ba30s6YFRqcg dWWJKHQmRUMGIevsgZ6vkDfouQh628lO0rglkYdjQVBJ+YXjCvWRNIDvfO9fHQN5N/FY s5Mpzfbf0F+dXPyQqwh0Z3FL+kXQqobp2RXva+YoxVrkxZD7M1kea2dvZXf/7g0yl5ci N0ShdDd74MPtw2EjppIpD7W+Xg4zVoU9xkqDPgrjh04r4GeQDyLjOChiaOs5HVkhthro tEuw== X-Gm-Message-State: AOUpUlFy+VZP2PR5QymlJKK6YNcEqhlAGz9og6eUBA1RcdXZHzzP26VU pa4blS+304s6K18wWlwHgzo= X-Received: by 2002:adf:e287:: with SMTP id v7-v6mr2010358wri.139.1531404211360; Thu, 12 Jul 2018 07:03:31 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id z193-v6sm6678513wmc.14.2018.07.12.07.03.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 07:03:30 -0700 (PDT) Date: Thu, 12 Jul 2018 16:03:27 +0200 From: Ingo Molnar To: Yu-cheng Yu Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [RFC PATCH v2 25/27] x86/cet: Add PTRACE interface for CET Message-ID: <20180712140327.GA7810@gmail.com> References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-26-yu-cheng.yu@intel.com> <20180711102035.GB8574@gmail.com> <1531323638.13297.24.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1531323638.13297.24.camel@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Yu-cheng Yu wrote: > > > diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c > > > index e2ee403865eb..ac2bc3a18427 100644 > > > --- a/arch/x86/kernel/ptrace.c > > > +++ b/arch/x86/kernel/ptrace.c > > > @@ -49,7 +49,9 @@ enum x86_regset { > > > ? REGSET_IOPERM64 = REGSET_XFP, > > > ? REGSET_XSTATE, > > > ? REGSET_TLS, > > > + REGSET_CET64 = REGSET_TLS, > > > ? REGSET_IOPERM32, > > > + REGSET_CET32, > > > ?}; > > Why does REGSET_CET64 alias on REGSET_TLS? > > In x86_64_regsets[], there is no [REGSET_TLS]. ?The core dump code > cannot handle holes in the array. Is there a fundamental (ABI) reason for that? > > to "CET" (which is a well-known acronym for "Central European Time"), > > not to CFE? > > > > I don't know if I can change that, will find out. So what I'd suggest is something pretty simple: to use CFT/cft in kernel internal names, except for the Intel feature bit and any MSR enumeration which can be CET if Intel named it that way, and a short comment explaining the acronym difference. Or something like that. Thanks, Ingo