From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu-cheng Yu Subject: Re: [RFC PATCH 4/5] selftest/x86: Fix sysret_rip with ENDBR Date: Thu, 21 May 2020 15:59:23 -0700 Message-ID: <35ce10628df75494569e5cf5bb6a3c537ff30cf2.camel@intel.com> References: <20200521211720.20236-1-yu-cheng.yu@intel.com> <20200521211720.20236-5-yu-cheng.yu@intel.com> <878shlt1jw.fsf@nanos.tec.linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <878shlt1jw.fsf@nanos.tec.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org To: Thomas Gleixner , 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 , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg List-Id: linux-arch.vger.kernel.org On Thu, 2020-05-21 at 23:34 +0200, Thomas Gleixner wrote: > Yu-cheng Yu writes: > > > Insert endbr64 to assembly code of sysret_rip. > > This changelog explains what the patch does, but not the WHY. It also > lacks any information why this is harmless for !CET enabled systems. > > > Signed-off-by: Yu-cheng Yu > > --- > > Please consult Dave Hansen about the void between your Signed-off-by > and the '---' line. > > Thanks, > > tglx Thanks! I will work on it. Yu-cheng From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <35ce10628df75494569e5cf5bb6a3c537ff30cf2.camel@intel.com> Subject: Re: [RFC PATCH 4/5] selftest/x86: Fix sysret_rip with ENDBR From: Yu-cheng Yu Date: Thu, 21 May 2020 15:59:23 -0700 In-Reply-To: <878shlt1jw.fsf@nanos.tec.linutronix.de> References: <20200521211720.20236-1-yu-cheng.yu@intel.com> <20200521211720.20236-5-yu-cheng.yu@intel.com> <878shlt1jw.fsf@nanos.tec.linutronix.de> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Thomas Gleixner , 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 , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang List-ID: Message-ID: <20200521225923.KuqwhhakC88KgXCap24Yahqt6ZfBf455PDzqEbPbTTE@z> On Thu, 2020-05-21 at 23:34 +0200, Thomas Gleixner wrote: > Yu-cheng Yu writes: > > > Insert endbr64 to assembly code of sysret_rip. > > This changelog explains what the patch does, but not the WHY. It also > lacks any information why this is harmless for !CET enabled systems. > > > Signed-off-by: Yu-cheng Yu > > --- > > Please consult Dave Hansen about the void between your Signed-off-by > and the '---' line. > > Thanks, > > tglx Thanks! I will work on it. Yu-cheng