From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 9 19:38:57 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 8BFC01065691 for ; Mon, 9 Mar 2009 19:38:57 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from mail-ew0-f166.google.com (mail-ew0-f166.google.com [209.85.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id C276F8FC13 for ; Mon, 9 Mar 2009 19:38:56 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by ewy10 with SMTP id 10so939036ewy.43 for ; Mon, 09 Mar 2009 12:38:55 -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=hi4LQqO3/NiJmvN8+QozCZW+soBNsJLHnIPDN606j6s=; b=Pmt0fVgkPoPt4GTveNziz3Z6Qs+WOcMhCltUbugiLaQpCgAfzWPauAruwRo0BKAFkB K41mptxS4kng4RX/I7Fdp1P9bwxzEJjeB7iKQtm3CfI71aSZU+TgbwiG827Egngk0//N TmetYaTctLzYUktJFLQNus0kUR5+Zm1OuRp/s= 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=LNjnlwB8fyqlUBA6Kj3IVD0vDCZe00c2DDOW75A92nIzyo9Nr2jOgEhvK05WK7oCgs +atXKrmuf2I/Gn46Hk9r+5S6+Y+01c011JoRiE39umWUKY4rhzvqFRhHzBgDJR20xGKp hE73G+qaCquHhnes0VBn4BgJqpbXhRPgD5+L8= MIME-Version: 1.0 Received: by 10.210.21.6 with SMTP id 6mr2745685ebu.74.1236627535749; Mon, 09 Mar 2009 12:38:55 -0700 (PDT) In-Reply-To: <200903090821.25871.jhb@freebsd.org> References: <671bb5fc0903060813s284673e2t4d3c77b0ed6abc54@mail.gmail.com> <200903090821.25871.jhb@freebsd.org> Date: Mon, 9 Mar 2009 20:38:55 +0100 Message-ID: <671bb5fc0903091238q2c4e4bd7m661333a509395b61@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: Mon, 09 Mar 2009 19:38:58 -0000 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