Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750883AbWJ1Eut (ORCPT ); Sat, 28 Oct 2006 00:50:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750879AbWJ1Eut (ORCPT ); Sat, 28 Oct 2006 00:50:49 -0400 Received: from smtp.osdl.org ([65.172.181.4]:44724 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1750814AbWJ1Eus (ORCPT ); Sat, 28 Oct 2006 00:50:48 -0400 Date: Fri, 27 Oct 2006 21:50:37 -0700 From: Andrew Morton To: Jeremy Fitzhardinge Cc: Pavel Machek , Rusty Russell , virtualization , lkml - Kernel Mailing List Subject: Re: [PATCH 1/4] Prep for paravirt: Be careful about touching BIOS address space Message-Id: <20061027215037.cd69b2a3.akpm@osdl.org> In-Reply-To: <4542DD84.3070006@goop.org> References: <1161920325.17807.29.camel@localhost.localdomain> <1161920535.17807.33.camel@localhost.localdomain> <20061027113001.GB8095@elf.ucw.cz> <45427ABD.6070407@goop.org> <20061027144157.f23fcf89.akpm@osdl.org> <4542DD84.3070006@goop.org> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 24 On Fri, 27 Oct 2006 21:33:08 -0700 Jeremy Fitzhardinge wrote: > Andrew Morton wrote: > > It'd be better to use include/linux/uaccess.h:probe_kernel_address() for > > this operation. > > > Ah, yes, that was the precedent I was thinking of, We've done open-coded __get_user() in various places in the past. The difference with probe_kernel_address() is that it doesn't get deadlocked on mmap_sem(). > but I guess it would > be better to just use it directly. It's a relatively new interface, > isn't it? Yeah. New enough that nobody's tried using it on non-x86 ;) It needs to do set_fs(KERNEL_DS). - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/