Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 2003 21:12:58 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        earthman <earthman@inbox.ru>, freebsd-hackers@freebsd.org
Subject:   Re: user malloc from kernel
Message-ID:  <20030929191258.GC520@garage.freebsd.pl>
In-Reply-To: <20030929155613.GB551@straylight.oblivion.bg>
References:  <16244.53594.942762.784390@canoe.dclg.ca> <20030927115306.R34638@woozle.rinet.ru> <3F759589.9070700@mindspring.com> <811112091.20030929172247@inbox.ru> <20030929154741.GB520@garage.freebsd.pl> <20030929155613.GB551@straylight.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help

--DSayHWYpDlRfCAAQ
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 29, 2003 at 06:56:13PM +0300, Peter Pentchev wrote:
+> I mean, won't the application's memory manager attempt to allocate the
+> next chunk of memory right over the region that you have stolen with
+> this brk(2) invocation?  Thus, when the application tries to write into
+> its newly-allocated memory, it will overwrite the data that the kernel
+> has placed there, and any attempt to access the kernel's data later will
+> fail in wonderfully unpredictable ways :)

I'm not sure if newly allocated memory will overwrite memory allocated
in kernel, but for sure process is able to write to this memory.

Sometime ago I proposed model which will allow to remove all copyin(9)
calls and many copyout(9), but I'm not so skilled in VM to implement it.

--=20
Pawel Jakub Dawidek                       pawel@dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net

--DSayHWYpDlRfCAAQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iQCVAwUBP3iEOj/PhmMH/Mf1AQFkAgQAp5ZMnup/3Wi/eg/4IucKCGFDCniCuVdT
YmncfReoV+Maofp5PqSk050QXNQxgfHn1I2mZQ03fcp2Y8u8CuJnB1wW1o6AOeYv
JPtS6wwC3u4iOxclm2FHwVoyrL0B1lpoVDfDtxJZhPhj3aEs3zqgm/9JKWP6BiWh
cb2DG8Zor9Q=
=WNzp
-----END PGP SIGNATURE-----

--DSayHWYpDlRfCAAQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030929191258.GC520>