[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wrong data in remapped buffer
- To: Alexej Sokolov <bsd_(_dot_)_quest_(_at_)_googlemail_(_dot_)_com>
- Subject: Re: wrong data in remapped buffer
- From: John Baldwin <jhb_(_at_)_freebsd_(_dot_)_org>
- Date: Mon, 9 Mar 2009 16:18:32 -0400
- Cc: freebsd-hackers_(_at_)_freebsd_(_dot_)_org
On Monday 09 March 2009 3:38:55 pm Alexej Sokolov wrote:
> 2009/3/9 John Baldwin <jhb_(_at_)_freebsd_(_dot_)_org>
>
> > 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
_______________________________________________
freebsd-hackers_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org