Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp151686imm; Thu, 12 Jul 2018 16:11:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdt8eplQwzng/zv8mVYCrgdbGzW+zG+VZUtumCd90AxZfYn/zX2KPOuG54XAutGAMjPk3va X-Received: by 2002:a63:6345:: with SMTP id x66-v6mr3873223pgb.43.1531437066378; Thu, 12 Jul 2018 16:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531437066; cv=none; d=google.com; s=arc-20160816; b=H4Co8Ew1WM5ITH2qU6Gp59S8TGLe/NZP/5r6VnnwBMp/TzrP0jBy8fwobke6140XA8 RoMK1uvIka3LgpF7GCu19ECR5YZeprulW9KACiny4jHL98FroIhzJZ15u/yhrkYy6xC/ a+k50YchPi5aH9kMfZ0bo4zYN6U3+tnxuBwbltWK2sAr8eF4ioMV5mRJh1B1faXTkAOG CXN8xs5/TWedOB+kdIOgCy/yvWxPpAUZpfYzMzURFlAQ5FgXWuuFSW0IsxNPeVLPtiDH 0fscac5PniXSZQeCU6pTwpRIzgvxt4cYiyRqGAA1n6nTIZ1G8ZcXqZ4RrXKXnfjwiH1a ktRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=/ZL0jE8UfBAVM66Hfj9ZsKfVgISjeQEWaBbsG4onbLU=; b=hJA/er7RokK9Bj6NIgb7uo6AfXnRPu6NJc3Uaa+qih+IV41yG9GI5g/GIVoawoG59c aMOHHZS7AMup2LcoGywK+Y2tmUKB9yauAUbpNm5SRBhcKehsnbDdVDFgqmX8sFgyo3rE PdFSwrBDpm46fXykqCbVIgDyzD33TcYqstPC/EWRGSlj2sp58zZalhl2Y4jjo0oJJg0s agt3gAf8POuEUzLc14WMgB8dC34tH9H4Mv0tVHlJSJ5/yBTT0000pEjnOGtcnIizsual G8atLy/vsE96CJdJ8UGfWIaNqyp7f93jWl3PnA3Xe2pSvt1lMsGWqCUt2WtmKxAcW2bK 35UA== 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 e9-v6si23203296plk.130.2018.07.12.16.10.51; Thu, 12 Jul 2018 16:11:06 -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 S2387463AbeGLXUT (ORCPT + 99 others); Thu, 12 Jul 2018 19:20:19 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:46071 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733207AbeGLXUS (ORCPT ); Thu, 12 Jul 2018 19:20:18 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fdkhE-0007hs-IU; Fri, 13 Jul 2018 01:08:24 +0200 Date: Fri, 13 Jul 2018 01:08:23 +0200 (CEST) From: Thomas Gleixner To: Yu-cheng Yu cc: Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , 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 In-Reply-To: <1531435034.2965.15.camel@intel.com> Message-ID: 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> <20180712140327.GA7810@gmail.com> <1531435034.2965.15.camel@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1575887918-1531436904=:1597" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1575887918-1531436904=:1597 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 12 Jul 2018, Yu-cheng Yu wrote: > On Thu, 2018-07-12 at 16:03 +0200, Ingo Molnar wrote: > > * 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? > > What I did was, ran Linux with 'slub_debug', and forced a core dump > (kill -abrt ), then there was a red zone warning in the dmesg. > My feeling is there could be issues in the core dump code.  These Kernel development is not about feelings. Either you can track down the root cause or you cannot. There is no place for feelings and no place in between. And if you cannot track down the root cause and explain it proper then the resulting patch is just papering over the symptoms and will come back to hunt you (or others) sooner than later. No if, no could, no feelings. Facts is what matters. Really. Thanks, tglx --8323329-1575887918-1531436904=:1597--