Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753860AbYLBBlT (ORCPT ); Mon, 1 Dec 2008 20:41:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752371AbYLBBlG (ORCPT ); Mon, 1 Dec 2008 20:41:06 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:45599 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbYLBBlF (ORCPT ); Mon, 1 Dec 2008 20:41:05 -0500 Date: Tue, 2 Dec 2008 02:41:02 +0100 (CET) From: Jan Engelhardt To: David Miller cc: john.haxby@oracle.com, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: sg_set_page not usable for .bss? In-Reply-To: <20081201.161418.51389602.davem@davemloft.net> Message-ID: References: <20081201.161026.234536822.davem@davemloft.net> <20081201.161418.51389602.davem@davemloft.net> User-Agent: Alpine 1.10 (LNX 962 2008-03-14) 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 Content-Length: 953 Lines: 23 On Tuesday 2008-12-02 01:14, David Miller wrote: >> >> >> >> Well, sysrq_password is in the .bss section, where as digest_password >> >> is on the heap due to being kmalloc'ed. Maybe that makes a difference? >> >> Someone more versed with the virtual memory layer might know. >> > >> >You can't use these interfaces on kernel image addresses. >> > >> Great :-) So what is the best way to use the SHA1 crypto algo >> with in-kernel addresses? > >kmalloc and copy it there, or something like that, you just >can't use in-kernel addresses, ever. > Yes, kmalloc is already used. But then, what sort of address does kmalloc return, if not an address within kernelspace? (usually >=0xc0000000 on standard i386) -- 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/