From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [RFC PATCH 4/5] selftest/x86: Fix sysret_rip with ENDBR Date: Thu, 21 May 2020 23:34:27 +0200 Message-ID: <878shlt1jw.fsf@nanos.tec.linutronix.de> References: <20200521211720.20236-1-yu-cheng.yu@intel.com> <20200521211720.20236-5-yu-cheng.yu@intel.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20200521211720.20236-5-yu-cheng.yu@intel.com> Sender: linux-doc-owner@vger.kernel.org To: 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 Cc: Yu-cheng Yu List-Id: linux-arch.vger.kernel.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Thomas Gleixner Subject: Re: [RFC PATCH 4/5] selftest/x86: Fix sysret_rip with ENDBR In-Reply-To: <20200521211720.20236-5-yu-cheng.yu@intel.com> References: <20200521211720.20236-1-yu-cheng.yu@intel.com> <20200521211720.20236-5-yu-cheng.yu@intel.com> Date: Thu, 21 May 2020 23:34:27 +0200 Message-ID: <878shlt1jw.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org To: Yu-cheng Yu , 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: <20200521213427.O2VsC5zS5nX-P6gs6ZB0pO76pSFmC0ljMJHyuvIMHH4@z> 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