From owner-svn-src-all@freebsd.org Thu Aug 24 01:45:56 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1106DDCC9C8 for ; Thu, 24 Aug 2017 01:45:56 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93E15649A6 for ; Thu, 24 Aug 2017 01:45:55 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-wm0-x235.google.com with SMTP id l19so10408894wmi.1 for ; Wed, 23 Aug 2017 18:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C3ylXMMp73LoOi1oZX2U5T28YsmZTR50Y42ubNMoV/s=; b=WryNm53mPkQPnlLOXJke9qR3r4xylYjZMQ5m34XuaoQtsVJ6bUFu8MtneDA+D50dX7 2DDTP1siEodB7mMt135du/2TM9PT33w9mAavbgGINHO9OUYdHsO7udFIq4tnOu5sLEkC GtElL+CnawWiQPLe8Lch17uyCQSiiqW318tFAIiRR3WyyrUo2gewZNDixSTCx1GzMjpE Qm9tR5A1EGxESNYdUQIxQSb2a2eGvw8EaekYU1KUykphDZphwNnWmAuXXa3gni5N3CAx w8cpf1eU7Zrqy4rPhnAfGfw4WWiwo1U6hV3L6hXrfYHu3QO04ied3lcDTDLwqQacYm3X X+EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C3ylXMMp73LoOi1oZX2U5T28YsmZTR50Y42ubNMoV/s=; b=VZ+wCym69oDo297PJh4/VqwUNJljOYRr0sGHwsgaiLNHYvrno91/coTd/k29C/o5xl Xp0Go5euZ58lgl0w45tx9GBZJPlHL0OujDFfBYf7xN8BFB1ywXRr9WolBcdPQxCpMPZ4 zz2CvHMlwqUb663y46wOis7an9BN8njZlUtIkpteHMLPDjyQ4uEeEDSx7kz/647FhY7v aR6OAmifoCxDnt3otUECaSu9xae/iI9po3AMHcT6W5PWrYvJs3TTok38KwQ7UhRwfStV qNhaQ3Lc4rfRIcASPObp5MgDiCBOe71VrFiBkdrj5/plINsW9jqoxADSrMIfQWmrPmvJ X8zw== X-Gm-Message-State: AHYfb5hbBfUKXmmmFg9s69HLiyuHX3iEmVWiUHHFRRBEAADFHuUMM02O vqI88bMJW/YlnVkg X-Received: by 10.28.178.130 with SMTP id b124mr2745430wmf.164.1503539153903; Wed, 23 Aug 2017 18:45:53 -0700 (PDT) Received: from mutt-hbsd (pool-100-16-230-154.bltmmd.fios.verizon.net. [100.16.230.154]) by smtp.gmail.com with ESMTPSA id 3sm2177888wmi.46.2017.08.23.18.45.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2017 18:45:53 -0700 (PDT) Date: Wed, 23 Aug 2017 21:45:50 -0400 From: Shawn Webb To: Konstantin Belousov Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r322763 - head/lib/libc/amd64/sys Message-ID: <20170824014550.z7su35lezsmfyzw7@mutt-hbsd> References: <201708211739.v7LHdD6k023805@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pf7xt3lyykoqli3k" Content-Disposition: inline In-Reply-To: <201708211739.v7LHdD6k023805@repo.freebsd.org> X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT FreeBSD 12.0-CURRENT X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20170714 (1.8.3) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2017 01:45:56 -0000 --pf7xt3lyykoqli3k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 21, 2017 at 05:39:13PM +0000, Konstantin Belousov wrote: > Author: kib > Date: Mon Aug 21 17:39:12 2017 > New Revision: 322763 > URL: https://svnweb.freebsd.org/changeset/base/322763 >=20 > Log: > Optimize libc to get and set TLS using the RDFSBASE and RDGSBASE > instructions, if supported both by CPU and kernel. > =20 > Reviewed by: jhb (previous version) > Tested by: pho (previous version) > Sponsored by: The FreeBSD Foundation > MFC after: 3 weeks > Differential revision: https://reviews.freebsd.org/D12023 >=20 > Added: > head/lib/libc/amd64/sys/amd64_detect_rdfsgsbase.c (contents, props ch= anged) > head/lib/libc/amd64/sys/amd64_detect_rdfsgsbase.h (contents, props ch= anged) > Modified: > head/lib/libc/amd64/sys/Makefile.inc > head/lib/libc/amd64/sys/amd64_get_fsbase.c > head/lib/libc/amd64/sys/amd64_get_gsbase.c > head/lib/libc/amd64/sys/amd64_set_fsbase.c > head/lib/libc/amd64/sys/amd64_set_gsbase.c Hey kib, This commit breaks booting in UEFI mode under bhyve. The VM gets stuck when the kernel launches /sbin/init. Here's a screenshot of a verbose boot at a recent HEAD: https://imgur.com/PiJhfll Note, the screenshot depicts HardenedBSD, not FreeBSD. Another user attempting to boot a recent vanilla FreeBSD 12-CURRENT/amd64 snapshot reported to me the same behavior, though, so the issue is certainly not specific to HardenedBSD. Reverting just this commit enabled booting in a bhyve VM again. Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --pf7xt3lyykoqli3k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlmeL8wACgkQaoRlj1JF bu5N/g//bOpZRqzHMIZp5ljqG5McGvfhjHwpUmdxqCLjT2nVEs6+qKjQQP1QnpQV caHrBmwoxhDiXQg7tdFykxBu3gMKMqAYuoM36RUYjcfpSRHQhScUXU67/IhpRaTQ Y2RYsPW7IZ3T4CIeqU3ICgwV1P6hE+Oc3a2oBFYb49ASRiNCXwPYAFY+JzrLKdAl nn0edjdT/ELnA2QfBya7t0PzKtitix8Eelw+fSAwxj3+sDa4kd3BC9zZwlrCHxu+ Y0Sm8Y2N0aSZjEdgJFIoVf4vRJX+OaMpx0tEuGcF6jxysS+nBZYZclyMGS0obdzw iutBaFpa8B8VZa1H6y3GGw1q+IeHfX7VjLHsjnLgr0HM/EyJuVvIczbTzMGcMLE0 c8AxGEr7cNqHyY/Qiex0Dne3cWbsAP00lThTZHJjSV2QMJY+EfaFc5bECvCoqejG EfMQI+L02lduMj6jSLwQRmc7VqyXyeJtS64ZtVTwNUwTf3DNeDcZNnkQn7OTijvb 01accHIHLGMFFAArAE8LJZbAsIk76lDo0pHhcmbY7xH8hZa3TIInHd4DsfI136rZ U08HLWL5RqWS10eRzAR5eoSDHZVH6S42leh08b/j31Sre9X3suPaiCzMzlNlJi5q wqFjRKKmcFfcV540tuWhBP86WpotjJdmZeAj5amIEYL/1VmvXmk= =3J8K -----END PGP SIGNATURE----- --pf7xt3lyykoqli3k--