Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756071AbdCWPOt (ORCPT ); Thu, 23 Mar 2017 11:14:49 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:34506 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbdCWPOq (ORCPT ); Thu, 23 Mar 2017 11:14:46 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170322203834.67556-1-thgarnie@google.com> From: Thomas Garnier Date: Thu, 23 Mar 2017 08:14:44 -0700 Message-ID: Subject: Re: [PATCH v4 1/4] syscalls: Restore address limit after a syscall To: "H. Peter Anvin" Cc: Andy Lutomirski , Martin Schwidefsky , Heiko Carstens , Dave Hansen , David Howells , Al Viro , Arnd Bergmann , =?UTF-8?Q?Ren=C3=A9_Nyffenegger?= , Andrew Morton , "Paul E . McKenney" , Ingo Molnar , Thomas Gleixner , Oleg Nesterov , Pavel Tikhomirov , Stephen Smalley , Ingo Molnar , Andy Lutomirski , Paolo Bonzini , Rik van Riel , Kees Cook , Josh Poimboeuf , Borislav Petkov , Brian Gerst , "Kirill A . Shutemov" , Christian Borntraeger , Russell King , Vladimir Murzin , Will Deacon , Catalin Marinas , Mark Rutland , James Morse , "linux-s390@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linux API , X86 ML , "linux-arm-kernel@lists.infradead.org" , "kernel-hardening@lists.openwall.com" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 492 Lines: 21 Okay well then people are fine with a BUG_ON approach. I will do a next iteration tailored to that. I will also try to add the static inline suggestion from Peter. On Wed, Mar 22, 2017 at 1:54 PM, H. Peter Anvin wrote: > On 03/22/17 13:49, Thomas Garnier wrote: >> >> We can default to BUGging. I think my approach was avoiding doing a >> BUG_ON just to avoid breaking people. >> > > Breaking on a potentially-exploitable bug is a feature. > > -hpa > > -- Thomas