From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 10 10:16:29 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B47801065674; Tue, 10 Mar 2009 10:16:29 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 13DA78FC17; Tue, 10 Mar 2009 10:16:28 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by ey-out-2122.google.com with SMTP id d26so243417eyd.7 for ; Tue, 10 Mar 2009 03:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=3Owz2yeo/udxA60DkPWIfHEFn7QdMyjot61wFrsIdmM=; b=oCrbliutHZeWSyZd8UfopBdSRT956heqTuKke/nC8Q2I5tQ9b/VOkX+jW5lXPeY9uH bbm+Uy1EjkNM2KxoEZWR+CUcChSMVBYeaOtDeayzz7EC8J7+i9jbLziuGKkagy0NP9iL dmgSAO0WfWSjVMJWEVhiP81+8bdPHqoZ5LiKQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Gi2UqT7ocmAuRe3x1o84KjMs/AOH+2XN2iId0GTLOEtD6gvfvxI2i5cjqc/K18iafx aEOPeBvUrelDcqhH35txnHebiO7PGMbbeaRnCey85EHXmgTGcGEL19jKMK3DZwgLKHNp x4YGiXck6WhMUpHYCt8YrkqCfpJsZN+JON0Yw= MIME-Version: 1.0 Received: by 10.210.43.10 with SMTP id q10mr4443811ebq.58.1236680187807; Tue, 10 Mar 2009 03:16:27 -0700 (PDT) In-Reply-To: <200903091618.32955.jhb@freebsd.org> References: <671bb5fc0903060813s284673e2t4d3c77b0ed6abc54@mail.gmail.com> <200903090821.25871.jhb@freebsd.org> <671bb5fc0903091238q2c4e4bd7m661333a509395b61@mail.gmail.com> <200903091618.32955.jhb@freebsd.org> Date: Tue, 10 Mar 2009 11:16:27 +0100 Message-ID: <671bb5fc0903100316s16c0ae36ocaac3cdab955584d@mail.gmail.com> From: Alexej Sokolov To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: wrong data in remapped buffer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 10:16:30 -0000 2009/3/9 John Baldwin > On Monday 09 March 2009 3:38:55 pm Alexej Sokolov wrote: > > 2009/3/9 John Baldwin > > > > > On Friday 06 March 2009 11:13:38 am Alexej Sokolov wrote: > > > > Hello, > > > > I try to MALLOC a buffer in kern, then remap it with vm_map_find(), > to > > > space > > > > of user process. > > > > Some times the remapped buffer in user space contain incorrect data. > > > > > > What architecture are you using? On some archs like amd64, small > mallocs > > > (<= > > > PAGE_SIZE) don't use the kmem_map or kmem_object. > > > > > > -- > > > John Baldwin > > > > > anyway , the error happens only some times... I think there is other > reason. > > My hardware is amd64 > > % uname -ms > > FreeBSD i386 > > i386 always uses kmem for malloc(9). > > -- > John Baldwin ok, and what should be a reason of inconsistent data after remapping ?