From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1C8B7DDD04 for ; Sat, 5 Jul 2008 09:00:31 +1000 (EST) Subject: Re: the printk problem From: Benjamin Herrenschmidt To: Linus Torvalds In-Reply-To: References: <20080625131101.GA6205@digi.com> <20080704104634.GA31634@digi.com> <20080704111540.ddffd241.akpm@linux-foundation.org> Content-Type: text/plain; charset=utf-8 Date: Sat, 05 Jul 2008 09:00:20 +1000 Message-Id: <1215212420.8970.8.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Andrew Morton , linux-ia64@vger.kernel.org, "David S. Miller" , Peter Anvin Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2008-07-04 at 13:02 -0700, Linus Torvalds wrote: > > That function descriptor indirection is totally untested, and I did it > with a > > pagefault_disable(); > __get_user(..) > pagefault_enable(); > > thing because I thought it would be nice if printk() was always safe, and > passing bogus function pointers to '%pF' should try to work, but quite > frankly, I didn't even check that that part compiles, much less works. > > ia64/ppc lists cc'd, just in case somebody wants to test this. I'll give it a try using probe_kernel_address() instead on monday. Cheers, Ben.