From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f71.google.com (mail-lf0-f71.google.com [209.85.215.71]) by kanga.kvack.org (Postfix) with ESMTP id A98E56B0003 for ; Fri, 8 Jun 2018 08:07:54 -0400 (EDT) Received: by mail-lf0-f71.google.com with SMTP id b26-v6so4051736lfa.6 for ; Fri, 08 Jun 2018 05:07:54 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y23-v6sor925841lfy.56.2018.06.08.05.07.52 for (Google Transport Security); Fri, 08 Jun 2018 05:07:52 -0700 (PDT) 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: owner-linux-mm@kvack.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 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.