From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756296AbcIFQki (ORCPT ); Tue, 6 Sep 2016 12:40:38 -0400 Received: from mail-ua0-f177.google.com ([209.85.217.177]:35648 "EHLO mail-ua0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755152AbcIFQka (ORCPT ); Tue, 6 Sep 2016 12:40:30 -0400 MIME-Version: 1.0 In-Reply-To: <20160906161921.GB31384@pc.thejh.net> References: <20160623143126.GA16664@redhat.com> <20160906161921.GB31384@pc.thejh.net> From: Andy Lutomirski Date: Tue, 6 Sep 2016 09:40:08 -0700 Message-ID: Subject: Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core) To: Jann Horn Cc: Linus Torvalds , Oleg Nesterov , Andy Lutomirski , "the arch/x86 maintainers" , Linux Kernel Mailing List , "linux-arch@vger.kernel.org" , Borislav Petkov , Nadav Amit , Kees Cook , Brian Gerst , "kernel-hardening@lists.openwall.com" , Josh Poimboeuf , Heiko Carstens Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 6, 2016 at 9:19 AM, Jann Horn wrote: > On Thu, Jun 23, 2016 at 09:41:11AM -0700, Andy Lutomirski wrote: >> 3. Free stacks immediately and cache them (really easy). > > Random note: task_current_syscall() (via /proc/$pid/syscall) will probably need additional > locking when the stack is freed before the task. Thanks. I'm testing a patch now. -- Andy Lutomirski AMA Capital Management, LLC From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Lutomirski Subject: Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core) Date: Tue, 6 Sep 2016 09:40:08 -0700 Message-ID: References: <20160623143126.GA16664@redhat.com> <20160906161921.GB31384@pc.thejh.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20160906161921.GB31384@pc.thejh.net> Sender: linux-kernel-owner@vger.kernel.org To: Jann Horn Cc: Linus Torvalds , Oleg Nesterov , Andy Lutomirski , the arch/x86 maintainers , Linux Kernel Mailing List , "linux-arch@vger.kernel.org" , Borislav Petkov , Nadav Amit , Kees Cook , Brian Gerst , "kernel-hardening@lists.openwall.com" , Josh Poimboeuf , Heiko Carstens List-Id: linux-arch.vger.kernel.org On Tue, Sep 6, 2016 at 9:19 AM, Jann Horn wrote: > On Thu, Jun 23, 2016 at 09:41:11AM -0700, Andy Lutomirski wrote: >> 3. Free stacks immediately and cache them (really easy). > > Random note: task_current_syscall() (via /proc/$pid/syscall) will probably need additional > locking when the stack is freed before the task. Thanks. I'm testing a patch now. -- Andy Lutomirski AMA Capital Management, LLC From mboxrd@z Thu Jan 1 00:00:00 1970 Reply-To: kernel-hardening@lists.openwall.com MIME-Version: 1.0 In-Reply-To: <20160906161921.GB31384@pc.thejh.net> References: <20160623143126.GA16664@redhat.com> <20160906161921.GB31384@pc.thejh.net> From: Andy Lutomirski Date: Tue, 6 Sep 2016 09:40:08 -0700 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [kernel-hardening] Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core) To: Jann Horn Cc: Linus Torvalds , Oleg Nesterov , Andy Lutomirski , the arch/x86 maintainers , Linux Kernel Mailing List , "linux-arch@vger.kernel.org" , Borislav Petkov , Nadav Amit , Kees Cook , Brian Gerst , "kernel-hardening@lists.openwall.com" , Josh Poimboeuf , Heiko Carstens List-ID: On Tue, Sep 6, 2016 at 9:19 AM, Jann Horn wrote: > On Thu, Jun 23, 2016 at 09:41:11AM -0700, Andy Lutomirski wrote: >> 3. Free stacks immediately and cache them (really easy). > > Random note: task_current_syscall() (via /proc/$pid/syscall) will probably need additional > locking when the stack is freed before the task. Thanks. I'm testing a patch now. -- Andy Lutomirski AMA Capital Management, LLC