From owner-freebsd-stable@freebsd.org Tue Dec 18 08:34:28 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AB55134627C for ; Tue, 18 Dec 2018 08:34:28 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A3D1786754 for ; Tue, 18 Dec 2018 08:34:27 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id E37743C475F; Tue, 18 Dec 2018 08:34:25 +0000 (UTC) Date: Tue, 18 Dec 2018 08:34:25 +0000 From: Brooks Davis To: Kurt Lidl Cc: freebsd-stable@freebsd.org Subject: Re: Address Collision using i386 4G/4G Memory Split Message-ID: <20181218083425.GA20811@spindle.one-eyed-alien.net> References: <38ad0d50-c776-9deb-d56b-db8db548cefc@tu-dortmund.de> <064a6212-40df-2dad-32fb-4cade922c65d@pix.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: <064a6212-40df-2dad-32fb-4cade922c65d@pix.net> User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: A3D1786754 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.991,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2018 08:34:28 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 17, 2018 at 03:58:05PM -0500, Kurt Lidl wrote: > Alexander Lochmann writes: > > According to git commit e3089a (https://reviews.freebsd.org/D1463) > > FreeBSD 12.0 i386 uses separate address spaces for kernel and user > > space. So basically two memory areas, one in each space, can have the > > same address. > > Is this possible with FreeBSD 12.0? Is this likely to happen? >=20 > If the userspace program and the kernel address happen to overlap, the=20 > system will deal with it. There's not anything to worry about. As to > whether or not it's likely to happen -- I'm not sure about that. I > expect the default stack and heap space locations for a fresh process > have changed due to this change, but it should not matter. 4/4 does potentially alter the failure modes of buggy code that tries to read directly from userspace addresses. For example, correct calls to the sysctls fixed in r342125 may panic prior to the fix because the addresses in question aren't mapped in kernel space. They might also fail or behave bizarrely if the page is mapped and the value from the kernel page is used. -- Brooks --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcGLERAAoJEKzQXbSebgfAqN4H/1yXiglpEIFNTJ033cpdthEk fFORpvHlJoC67PZ86//mvSJ0/MbB0MuCualwFW8HV4Hj9KA7579R2f+aYFcjUxaz 9vmXnwtgLPZRKEXcQp+mTX/DQYBzVvNXY2Qfxq21D9k65XYCsomlBT812PQyl22p mkxZTCLma1bKfr0MAJdmx2RpPhftGm8FQZKdVDhcoZ3AN0a7LdnyeRAO6xb00t8P NexWaIybeb3cLavuVGF6tbb38a5jFTIdklU5j46PtrXAt6n8bpNURHnIpeNQFHYF fias0aIZKqSm1z3wok/OIrCe2CAKwEU/v6FKpobFKgqPqjprCdPu86dUWunqGLw= =BLPX -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--