Subject: PR/34639 CVS commit: src/common/lib/libprop
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Quentin Garnier <cube@netbsd.org>
List: netbsd-bugs
Date: 11/28/2006 18:35:02
The following reply was made to PR kern/34639; it has been noted by GNATS.
From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/34639 CVS commit: src/common/lib/libprop
Date: Tue, 28 Nov 2006 18:30:47 +0000 (UTC)
Module Name: src
Committed By: cube
Date: Tue Nov 28 18:30:47 UTC 2006
Modified Files:
src/common/lib/libprop: prop_kern.c
Log Message:
In _prop_object_copyout_ioctl, uaddr was not initialised, although it is
used by uvm_mmap() as a hint for the virtual address to map memory to. As
a consequence, it tended to fail a lot on some architectures.
We cannot use 0, so instead use the value that would have been used if we
were calling mmap(2) with 0 as the first argument.
Fixes PR#34639 by xtraeme@.
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/common/lib/libprop/prop_kern.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.