From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751469AbdAPVqB (ORCPT ); Mon, 16 Jan 2017 16:46:01 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:42172 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbdAPVpi (ORCPT ); Mon, 16 Jan 2017 16:45:38 -0500 Date: Mon, 16 Jan 2017 22:14:31 +0100 (CET) From: Thomas Gleixner To: David Smith cc: Peter Zijlstra , Linus Torvalds , Andy Lutomirski , Ingo Molnar , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , "Frank Ch. Eigler" Subject: Re: [RFC][PATCH] x86: Verify access_ok() context In-Reply-To: Message-ID: References: <20161122095715.GN3092@twins.programming.kicks-ass.net> <20161122193720.GA3045@worktop.programming.kicks-ass.net> <20161205102747.GT3092@twins.programming.kicks-ass.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jan 2017, David Smith wrote: > If you call access_ok() with page faulting disabled, you'll still see > this new warning. And how so? It's just checking for task context. page fault disable/enable has absolutely nothing to do with that. > If you put that new access_ok() call in a module that gets > loaded/unloaded, you see one warning for every module load, which gets a > bit annoying. Can you please elaborate where this access_ok() is placed in the module code? Thanks, tglx