From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [PATCH 03/10] x86/cet: Signal handling for shadow stack Date: Fri, 8 Jun 2018 15:07:50 +0300 Message-ID: <20180608120750.GB2525@uranus> References: <20180607143807.3611-1-yu-cheng.yu@intel.com> <20180607143807.3611-4-yu-cheng.yu@intel.com> <20180607200714.GA2525@uranus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Andy Lutomirski Cc: Yu-cheng Yu , Florian Weimer , Dmitry Safonov , LKML , linux-doc@vger.kernel.org, Linux-MM , linux-arch , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "H. J. Lu" , "Shanbhogue, Vedvyas" , "Ravi V. Shankar" , Dave Hansen , Jonathan Corbet , Oleg Nesterov , Arnd Bergmann , mike.kravetz@oracle.com List-Id: linux-arch.vger.kernel.org On Thu, Jun 07, 2018 at 01:57:03PM -0700, Andy Lutomirski wrote: ... > > > > I didn't read the whole series of patches in details > > yet, hopefully will be able tomorrow. Thanks Andy for > > CC'ing! > > We have uc_flags. It might be useful to carve out some of the flag > space (24 bits?) to indicate something like the *size* of sigcontext > and teach the kernel that new sigcontext fields should only be parsed > on sigreturn() if the size is large enough. Yes, this should do the trick. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f67.google.com ([209.85.215.67]:36390 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604AbeFHMHy (ORCPT ); Fri, 8 Jun 2018 08:07:54 -0400 Date: Fri, 8 Jun 2018 15:07:50 +0300 From: Cyrill Gorcunov Subject: Re: [PATCH 03/10] x86/cet: Signal handling for shadow stack Message-ID: <20180608120750.GB2525@uranus> References: <20180607143807.3611-1-yu-cheng.yu@intel.com> <20180607143807.3611-4-yu-cheng.yu@intel.com> <20180607200714.GA2525@uranus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Andy Lutomirski Cc: Yu-cheng Yu , Florian Weimer , Dmitry Safonov , LKML , linux-doc@vger.kernel.org, Linux-MM , linux-arch , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "H. J. Lu" , "Shanbhogue, Vedvyas" , "Ravi V. Shankar" , Dave Hansen , Jonathan Corbet , Oleg Nesterov , Arnd Bergmann , mike.kravetz@oracle.com Message-ID: <20180608120750.hTvBjhPe5pIdkoSnAxP0iWXSYkSxBvvCge2TlPRr9MY@z> On Thu, Jun 07, 2018 at 01:57:03PM -0700, Andy Lutomirski wrote: ... > > > > I didn't read the whole series of patches in details > > yet, hopefully will be able tomorrow. Thanks Andy for > > CC'ing! > > We have uc_flags. It might be useful to carve out some of the flag > space (24 bits?) to indicate something like the *size* of sigcontext > and teach the kernel that new sigcontext fields should only be parsed > on sigreturn() if the size is large enough. Yes, this should do the trick.