From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f72.google.com (mail-lf0-f72.google.com [209.85.215.72]) by kanga.kvack.org (Postfix) with ESMTP id 1DC6E6B0253 for ; Thu, 7 Jul 2016 15:37:48 -0400 (EDT) Received: by mail-lf0-f72.google.com with SMTP id a2so17186486lfe.0 for ; Thu, 07 Jul 2016 12:37:48 -0700 (PDT) Received: from Galois.linutronix.de (linutronix.de. [2001:470:1f0b:db:abcd:42:0:1]) by mx.google.com with ESMTPS id m185si1541800wmm.126.2016.07.07.12.37.46 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jul 2016 12:37:46 -0700 (PDT) Date: Thu, 7 Jul 2016 21:34:53 +0200 (CEST) From: Thomas Gleixner Subject: Re: [PATCH 1/9] mm: Hardened usercopy In-Reply-To: Message-ID: References: <1467843928-29351-1-git-send-email-keescook@chromium.org> <1467843928-29351-2-git-send-email-keescook@chromium.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Kees Cook Cc: LKML , Rik van Riel , Casey Schaufler , PaX Team , Brad Spengler , Russell King , Catalin Marinas , Will Deacon , Ard Biesheuvel , Benjamin Herrenschmidt , Michael Ellerman , Tony Luck , Fenghua Yu , "David S. Miller" , "x86@kernel.org" , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Andy Lutomirski , Borislav Petkov , Mathias Krause , Jan Kara , Vitaly Wool , Andrea Arcangeli , Dmitry Vyukov , Laura Abbott , "linux-arm-kernel@lists.infradead.org" , linux-ia64@vger.kernel.org, "linuxppc-dev@lists.ozlabs.org" , sparclinux , linux-arch , Linux-MM , "kernel-hardening@lists.openwall.com" On Thu, 7 Jul 2016, Kees Cook wrote: > On Thu, Jul 7, 2016 at 3:42 AM, Thomas Gleixner wrote: > > I'd rather make that a weak function returning 1 which can be replaced by > > x86 for CONFIG_FRAME_POINTER=y. That also allows other architectures to > > implement their specific frame checks. > > Yeah, though I prefer CONFIG-controlled stuff over weak functions, but > I agree, something like arch_check_stack_frame(...) or similar. I'll > build something for this on the next revision. I'm fine with CONFIG_CONTROLLED as long as the ifdeffery is limited to header files. Thanks, tglx -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org