Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753941AbcKRMil (ORCPT ); Fri, 18 Nov 2016 07:38:41 -0500 Received: from mail.skyhub.de ([78.46.96.112]:52124 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753823AbcKRMik (ORCPT ); Fri, 18 Nov 2016 07:38:40 -0500 Date: Fri, 18 Nov 2016 13:38:38 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Ingo Molnar , X86 ML , LKML , Peter Zijlstra , Linus Torvalds Subject: Re: [RFC PATCH] x86/debug: Dump more detailed segfault info Message-ID: <20161118123837.up3f7d5plccrwd25@pd.tnic> References: <20161111101930.32559-1-bp@alien8.de> <20161112110649.GA28774@gmail.com> <20161112122736.fmiowshbus5hjjnb@pd.tnic> <20161114061858.gklgk5go2qxq4b5y@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 486 Lines: 16 On Thu, Nov 17, 2016 at 03:33:21PM -0800, Andy Lutomirski wrote: > Huh, go figure. How about access_ok() instead? There's also > pagefault_disable() + copy_from_user(). Ah, you don't want to have another #PF during the first one. How about copy_from_user_nmi()? It already does __range_not_ok() which is basically access_ok() and disables #PF around __copy_from_user_inatomic(). -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.