From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 6 16:13:40 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 7BB66106566C for ; Fri, 6 Mar 2009 16:13:40 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from mail-fx0-f158.google.com (mail-fx0-f158.google.com [209.85.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 0E1688FC15 for ; Fri, 6 Mar 2009 16:13:39 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by fxm2 with SMTP id 2so409695fxm.43 for ; Fri, 06 Mar 2009 08:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ixptLAnslINwM+NO2jJA1+f9J6uE6bpFVcP3uTpuA+I=; b=tZCzBWZUSlG8vxzylC9rWDkDwHf3XddPofS59UzptpGcFhK9PajAl+mZ4ZR+KAm7Om lHQy9emOfJdWEqW/9gqSKkl5hIrfy/0ofhyoN433rIRdbgc52AtV7vSMa9pciODdXz7Y OTAODC6DhZRopyhsTcYaAM8a2YUCqg+28vV4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Aie0ShFX1ZBPvtBVVhOgOoPHmpbw6/Qtob7/bwbP3hvkO6/mFTJ8cSeG/YrBFNHY/7 0HAoogQnZj97owMi9kKtIOPq2rtwial6h7Kgpjpyznx5uoqwTTr0PTUO9Wb1qVXwtqbm 5b0dsxZkFfRpELrrqLiDEkeJTBukgnSn74aFI= MIME-Version: 1.0 Received: by 10.86.76.20 with SMTP id y20mr1986341fga.75.1236356018939; Fri, 06 Mar 2009 08:13:38 -0800 (PST) Date: Fri, 6 Mar 2009 17:13:38 +0100 Message-ID: <671bb5fc0903060813s284673e2t4d3c77b0ed6abc54@mail.gmail.com> From: Alexej Sokolov To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Fri, 06 Mar 2009 16:13:40 -0000 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 could be a reason of this problem and how to solve it ? Thanx, Alexej P.S. Whole code of remapping function: http://pastebin.com/m78da0b37