From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f70.google.com (mail-pl0-f70.google.com [209.85.160.70]) by kanga.kvack.org (Postfix) with ESMTP id F0FCB6B000C for ; Tue, 12 Jun 2018 12:00:19 -0400 (EDT) Received: by mail-pl0-f70.google.com with SMTP id z5-v6so12242160pln.20 for ; Tue, 12 Jun 2018 09:00:19 -0700 (PDT) Received: from mail.kernel.org (mail.kernel.org. [198.145.29.99]) by mx.google.com with ESMTPS id e95-v6si440553plb.239.2018.06.12.09.00.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 09:00:17 -0700 (PDT) Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D104208B4 for ; Tue, 12 Jun 2018 16:00:17 +0000 (UTC) Received: by mail-wr0-f173.google.com with SMTP id d8-v6so24673055wro.4 for ; Tue, 12 Jun 2018 09:00:17 -0700 (PDT) MIME-Version: 1.0 References: <20180607143807.3611-1-yu-cheng.yu@intel.com> <1528815820.8271.16.camel@2b52.sc.intel.com> In-Reply-To: <1528815820.8271.16.camel@2b52.sc.intel.com> From: Andy Lutomirski Date: Tue, 12 Jun 2018 09:00:03 -0700 Message-ID: Subject: Re: [PATCH 00/10] Control Flow Enforcement - Part (3) Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Yu-cheng Yu Cc: bsingharora@gmail.com, 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 Tue, Jun 12, 2018 at 8:06 AM Yu-cheng Yu wrote: > > On Tue, 2018-06-12 at 20:56 +1000, Balbir Singh wrote: > > > > On 08/06/18 00:37, Yu-cheng Yu wrote: > > > This series introduces CET - Shadow stack > > > > > > At the high level, shadow stack is: > > > > > > Allocated from a task's address space with vm_flags VM_SHSTK; > > > Its PTEs must be read-only and dirty; > > > Fixed sized, but the default size can be changed by sys admin. > > > > > > For a forked child, the shadow stack is duplicated when the next > > > shadow stack access takes place. > > > > > > For a pthread child, a new shadow stack is allocated. > > > > > > The signal handler uses the same shadow stack as the main program. > > > > > > > Even with sigaltstack()? > > > > > > Balbir Singh. > > Yes. > I think we're going to need some provision to add an alternate signal stack to handle the case where the shadow stack overflows.