From owner-svn-src-head@freebsd.org Thu Jan 5 10:12:55 2017 Return-Path: Delivered-To: svn-src-head@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 F0628C9F6E1; Thu, 5 Jan 2017 10:12:55 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (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 BD3BE176A; Thu, 5 Jan 2017 10:12:55 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pg0-x242.google.com with SMTP id b1so40273980pgc.1; Thu, 05 Jan 2017 02:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=6qmZ2GqvMQhr9k19osjgbl2xBMdGWhCwebhVmtCm/mc=; b=dO9M19zIYzUBAM9PNuhbWLT3z5V+FOmFih/c4is9sQp/P5AMT2Dyh0nbu0tfuhwD+G 1Q65ks8aO8Orw79XGmnHaD8kMmrcl4rAbHx8HK+tqF6DED0lc8OnKYWqCJu3zHsY3E/4 GvVFijZCSwWcEQxFx3iZYqj5omoOgWkz3M642wb9rjDrzYFmEOjwufB73KdNZL4VN26y 99oeZ0bGUmkFD4NYHG1kuuD2MZQxf8KYsqoxT0pAZ4cugFnZG6Pgl1x3jib9oG2vhB5/ SuIu44o3XdRt7HBHXeoPGniD61EYHSGXpBzDyQvZSFajBeHPBKc+neGuy3N/5UEoqrhz t/fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=6qmZ2GqvMQhr9k19osjgbl2xBMdGWhCwebhVmtCm/mc=; b=A1IQcD/BDdxpezW+e3RGNZuQAExeYBLM29R1ojmwkBPdSxpGkuAUl0lu5cTr3tTXGq HCt9lwyt62iilJkC5e5wLXB6tc/1pdjL/Y86jblQiaU9o3MpEoWAUfhf7eZwJA2Cfoza 1qgDGZ689DqPWSguoYL5fflK03Qk2AJmzmQbAz9MRrGokyzfSbGddD+wNKnoM76rfI0i iPACCOGnT3Z8VeKhyNq4SfGpCBqAp5XXAAU1FTlwVig+n7LbbCaEFdpp/HmHJqECA2Ob UYDpqKiBVO5zbayhVZByEwpjGnTZaXOuR1nqiSXLFCobF/btTVJIAf7MPJ+xAu1NfONA 7YCg== X-Gm-Message-State: AIkVDXJhZMD3fFbxnpKjq/69XM0SGmEK0xhxwzZlLLhxJaOGC2rqHJv/ZQJXXRR/UpVk8A== X-Received: by 10.84.241.8 with SMTP id a8mr149590551pll.74.1483611175163; Thu, 05 Jan 2017 02:12:55 -0800 (PST) Received: from [192.168.20.12] (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id s17sm3454955pgo.27.2017.01.05.02.12.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Jan 2017 02:12:54 -0800 (PST) Subject: Re: svn commit: r311287 - head/lib/libc/x86/sys Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_725FD605-BAB0-4628-B686-A32BF9085BB6"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail From: "Ngie Cooper (yaneurabeya)" In-Reply-To: <201701041610.v04GAq8n068859@repo.freebsd.org> Date: Thu, 5 Jan 2017 02:12:52 -0800 Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-Id: <9DCD3DCE-D1B9-428D-8BD8-E199C37BFC64@gmail.com> References: <201701041610.v04GAq8n068859@repo.freebsd.org> To: Konstantin Belousov X-Mailer: Apple Mail (2.3124) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2017 10:12:56 -0000 --Apple-Mail=_725FD605-BAB0-4628-B686-A32BF9085BB6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 4, 2017, at 08:10, Konstantin Belousov wrote: >=20 > Author: kib > Date: Wed Jan 4 16:10:52 2017 > New Revision: 311287 > URL: https://svnweb.freebsd.org/changeset/base/311287 >=20 > Log: > __vdso_gettc(): be extra careful with /dev/hpet mappings, never unmap > the mapping which might be accessed by other threads. >=20 > If a pointer to the /dev/hpet register page mapping was stored into > the hpet_dev_map, other threads might access the page at any time. > Never unmap it, instead, keep track of mappings for all hpet units in > smal array. Store pointer to the newly mapped registers page using > CAS, to detect parallel mappings. >=20 > It appeared relatively easy to demonstrate the problem by arranging > two threads which perform gettimeofday(2) concurently, first time in > the process address space, when HPET is used for timecounter. >=20 > PR: 215715 > Sponsored by: The FreeBSD Foundation > MFC after: 1 week Thank you very much for the work! I=E2=80=99ll try to reproduce the bug = again with the ATF test. -Ngie --Apple-Mail=_725FD605-BAB0-4628-B686-A32BF9085BB6 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJYbhwlAAoJEPWDqSZpMIYVeUMP/A3suUEFM3GkD0rdvgkP8Qhz i8U//978pUHMk2eSEkM0DIllSDnuPawLeQrHRXzesdQUf0v6pGTVDE+4avguZYXW 6ydHVIHZchneA7KkT6uCor03SkN4mxl+GlFbVVQj5YjDUQmazEBJ1GGIqqGLAr0B xZsaKLABLjNSBZLiyFBQBhWmuS7TS4uMPIAURnWYnpnu1rNJ9Xk+56H/3a9NWsHu +RxsYgwK4/h6ClSZUylFoYmzWYr9kThnHK14dX6iGp4iwylGpnhdmLD940Yg67SZ HdLXg+9njYJY5fXk4ihiC7mShmtktzw8lvkZS3AohnE/5bMSuAQtw3X+vcx3DIbq PUxJsfA8NhcXIN7zVBKMyhySCAcz3BrzQcJ78LxDeWXLEiRAM82noOqZSNlZqbKM N1P8kIwjfZCVYVww5/p6gm34hDnrDg3gfDEIPKcA4J5W9xWFCHb6AihWtWfViqCM EY7+lGk1Ln0BQ+/UTQ4VDq0cQWExjGrKrbmteXtkNVNw634O/oolxgElkgioGX/L TI/0ORViI3FvqTjSiOYzxXe70SbV4r+s0GRTPtGLr0vK+9pji8PAMrQZbL3kFcrA 7TYlG2NPzSKLbUPAcqljq26TIHXZDE8TVh3TIq8r5rytL6pNX0BzLrx1KYb7lOsU ZZ3iB1OMHEKqsUSBog0A =ASqr -----END PGP SIGNATURE----- --Apple-Mail=_725FD605-BAB0-4628-B686-A32BF9085BB6--