From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by kanga.kvack.org (Postfix) with ESMTP id 224686B0069 for ; Sat, 8 Feb 2014 14:54:27 -0500 (EST) Received: by mail-vc0-f181.google.com with SMTP id ie18so3720159vcb.12 for ; Sat, 08 Feb 2014 11:54:26 -0800 (PST) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id uo10si2823713vec.132.2014.02.08.11.54.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 11:54:26 -0800 (PST) Received: by mail-ve0-f180.google.com with SMTP id db12so3891283veb.11 for ; Sat, 08 Feb 2014 11:54:26 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <52F68528.30104@gentoo.org> References: <20140207195555.GA18916@nautica> <52F66641.4040405@gentoo.org> <52F671D0.1060907@gentoo.org> <52F68299.1040305@gentoo.org> <52F68528.30104@gentoo.org> From: Andy Lutomirski Date: Sat, 8 Feb 2014 11:54:06 -0800 Message-ID: Subject: Re: [V9fs-developer] finit_module broken on 9p because kernel_read doesn't work? Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Richard Yao Cc: Dominique Martinet , Will Deacon , V9FS Developers , Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , Rusty Russell , "linux-mm@kvack.org" On Sat, Feb 8, 2014 at 11:27 AM, Richard Yao wrote: > On 02/08/2014 02:20 PM, Andy Lutomirski wrote: >> Are we looking at the same patch? >> >> + if (is_vmalloc_or_module_addr(data)) >> + pages[index++] = vmalloc_to_page(data); >> >> if (is_vmalloc_or_module_addr(data) && !is_vmalloc_addr(data)), the >> vmalloc_to_page(data) sounds unhealthy. >> >> --Andy >> > > Mainline loads all Linux kernel modules into virtual memory. No > architecture is known to me where this is not the case. > Hmm. I stand corrected. vmalloc_to_page is safe on module addresses. --Andy -- 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