From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 7D6F07EE1D for ; Fri, 30 Jun 2017 18:46:29 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=antronbachin@gmail.com; spf=Pass smtp.mailfrom=antronbachin@gmail.com; spf=None smtp.helo=postmaster@mail-it0-f50.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of antronbachin@gmail.com) identity=pra; client-ip=209.85.214.50; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="antronbachin@gmail.com"; x-sender="antronbachin@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of antronbachin@gmail.com designates 209.85.214.50 as permitted sender) identity=mailfrom; client-ip=209.85.214.50; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="antronbachin@gmail.com"; x-sender="antronbachin@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-it0-f50.google.com) identity=helo; client-ip=209.85.214.50; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="antronbachin@gmail.com"; x-sender="postmaster@mail-it0-f50.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3Agvbs8xPt6YDOv49ZpUAl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0K/z9pMbcNUDSrc9gkEXOFd2CrakV1KyO6+jJYi8p2d65qncMcZhBBVcuqP?= =?us-ascii?q?49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6?= =?us-ascii?q?JvjvGo7Vks+7y/2+94fdbghMhjexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfO?= =?us-ascii?q?pWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnM?= =?us-ascii?q?VhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iS?= =?us-ascii?q?cHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzcaTAc9MHXmpBRtheWDBdAo2y?= =?us-ascii?q?aIsPCvAOPeder4Lgo1cDoh+zCQyqCejyyDFHm2X20LUm3OsuDA/I3A4vEdwNvn?= =?us-ascii?q?Tastv7M7wfXvqpwKnN1zjDb+9a1DX75YPVch4hu/aMXbdofMfNz0kvCwTFjlON?= =?us-ascii?q?ooH4JTyayuQNs2md7+F9Uu+gkWgnqx1rojiowMcjkZPGiZ4VylDF8yV024k1Jd?= =?us-ascii?q?iiR056Zd6oCodftyafN4ZvRM4pXm9muCE/yrIcuJ67ejAHyJUhxx7FavyIaZKE?= =?us-ascii?q?4hz5VOqJLjd4hW5leLKihxmp60Sv1ur8Vsys3FdKtCVFkt7MtncX2xPP7ciHT+?= =?us-ascii?q?Nx8Vq/1jmU1gDc8OdELVozlarBJJ4t2qQ/lpoJsUvdEC/2g1/6g7ORdkUh/OWj?= =?us-ascii?q?9ufpYq3+q5OCK4N5jhvyP6cul8ClH+g0LwcDU3Kb9OigzLHv40z0TKlXgvAzjK?= =?us-ascii?q?XUv4zWKMEHqaO4HwNZzoMu5hWkADi7zNgVmHoKIE5HdR+HioXlJV/OL+38APq6?= =?us-ascii?q?nligjCtnyvPDM7H/DZjCMGXMnbH8drhn8UFc0hA8zdVH6pJUFL4BJPXzV1f0tN?= =?us-ascii?q?PCDx85NxW4w+f7CNlhz48eV2KCDrODPKPdtl+I4e0vI+2Sa4MPpDn9LP0l6+bv?= =?us-ascii?q?jX8/h1AdYbGk0YULZH28BPhrIEWUbWDyjtscHmoGpAozQPDyhF2HSzFTZnKyX6?= =?us-ascii?q?wm5jE8DYKrFZ3MRoaxgLyb2ye7GIZZaXpaBVCMEHfocZ6JW/gJaC2II89hliYI?= =?us-ascii?q?WqSmS48kzR2urhP1y6J7LurI/S0VrZ3i1Nxr6O3JkhEz9Sd5DsWc02GIVG50hH?= =?us-ascii?q?kHSyU33KB5u0x9y02M3bJ2g/xCDdZT/e9GUh8mNZ7AyOx3E8z9VRjEfteNUVqm?= =?us-ascii?q?RtSmASotTt8q2N8PY0N9G824gRzZ3iqqBaUVl72RC5Au/KLcxSu5G8Eo6WvC1a?= =?us-ascii?q?Bpq1A5S89LfTmkm6p+/k7XDpHAl0Gxk6eyK+ISxnie2n2EyD+nul1fVkZaWK7F?= =?us-ascii?q?XHZXMkLQsc7+4EnLRL+vD5woNwJAzYiJLa4cOY6htklPWPq2YIeWWGm2gWrlQE?= =?us-ascii?q?vRyw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CsAAD+f1ZZhjLWVdFCGhoBAQEBAgEBA?= =?us-ascii?q?QEIAQEBARYBAQEDAQEBCQEBAYJEIYEsgQ6fTSKCQYZZjGGCESEBCoVwAoMZQRY?= =?us-ascii?q?BAQEBAQEBAQEBARIBAQEICwsIKC+CMySCQQEBAQECAQEiHQEbEgsBAwELBgULD?= =?us-ascii?q?Q0aAwICIwUMAQUBCgERBhMSigQBAw0IAQ8ypXE/jAqCBAUBHIMIBYNbChknAwp?= =?us-ascii?q?WgyoBAQEBAQEBAQEBAQEBAQEBAQEBAQEVAgYJAQiDFYVYC4JugwAmgXGCKT0wg?= =?us-ascii?q?jEFh3UMiQdGhVeHVYdEhk2FbYIMVogvNIZViTCHDSEUgnMzgRUPFwiBMzEhI14?= =?us-ascii?q?ICgEHgWGBBoIDHyWBa1gBiSkBAQE?= X-IPAS-Result: =?us-ascii?q?A0CsAAD+f1ZZhjLWVdFCGhoBAQEBAgEBAQEIAQEBARYBAQE?= =?us-ascii?q?DAQEBCQEBAYJEIYEsgQ6fTSKCQYZZjGGCESEBCoVwAoMZQRYBAQEBAQEBAQEBA?= =?us-ascii?q?RIBAQEICwsIKC+CMySCQQEBAQECAQEiHQEbEgsBAwELBgULDQ0aAwICIwUMAQU?= =?us-ascii?q?BCgERBhMSigQBAw0IAQ8ypXE/jAqCBAUBHIMIBYNbChknAwpWgyoBAQEBAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEVAgYJAQiDFYVYC4JugwAmgXGCKT0wgjEFh3UMiQdGhVe?= =?us-ascii?q?HVYdEhk2FbYIMVogvNIZViTCHDSEUgnMzgRUPFwiBMzEhI14ICgEHgWGBBoIDH?= =?us-ascii?q?yWBa1gBiSkBAQE?= X-IronPort-AV: E=Sophos;i="5.40,287,1496095200"; d="scan'208,217";a="281465648" Received: from mail-it0-f50.google.com ([209.85.214.50]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 30 Jun 2017 18:46:28 +0200 Received: by mail-it0-f50.google.com with SMTP id m84so27727851ita.0; Fri, 30 Jun 2017 09:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=SdG8F4dV5GZ+dW6VeUgLdenf6KQzxeeUe6zZjiM6eYo=; b=A9iayMjfVkobO9qmdnWAWARFTQGuc2AxDEzfH2DDX1VJ3QGL3BEDjAeNOH9lZ0XTBL cj7mc63P6HtcZEUiyFBvs4wYEeNoIAhgx38GyfDtE1cwmDcIfoV909+WMeMFpIDHCfOG kiwv5OSUk1aTIXVuY/vN45KsjORMa5ATt9ah8l0OgAGi1xsD0jzOjk1uGwYvreTj9qM2 Z13wbrg5g4WxXoj9tCcivuRDYJf1lOiwjniG6Rur/546rqWuoVzTEfA7NCQrBRWO7tiL 0YnDeD1VFod/zwot3mmnoM+skFFBjPdKY3CGhgOix4FApnVDnfJAEI7xq65xIK8r0QkS TCCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=SdG8F4dV5GZ+dW6VeUgLdenf6KQzxeeUe6zZjiM6eYo=; b=i3LAc2aT5DnmsRJfwnwtqwJUSB30uxCCfgzENzsRDK5RP4Znw5l8trR0ZZcT2744kj RyrTMw1Vl48ylXzGIc7LZ8RPDmGEh6dTtELgLD5Ds0Y0G9vJ/0+yPalKRgUT+Bz3NsU6 Kz36jGzh65DgItZXrpO+fuPB0ppzMxujYWn9lC9MHSvwYxd5FkA3FzbB2Q4+S7pMGnsG TX/qWLvEOiyTrQcoeOFOCQWjvjl6R1g5YQNHPd8V9aqFa8HLksN9uDvhCDGwTqDGnxsm 3Rmd83DhaH/2t5c4TmtDIL8FoiikwXykHkjXaOZfAqReK/Wp306eTBCZsfnikEPUFeAV M7Og== X-Gm-Message-State: AIVw1117X+0ADk0N5bfsA7ClYhSONNTADB0wgVxReDNGyL79MTd3rF83 Uq40mzO/vH0XVg== X-Received: by 10.36.219.132 with SMTP id c126mr8710056itg.73.1498841186573; Fri, 30 Jun 2017 09:46:26 -0700 (PDT) Received: from ?IPv6:2601:240:c600:8bd0:8075:2fd9:1008:24ed? ([2601:240:c600:8bd0:8075:2fd9:1008:24ed]) by smtp.gmail.com with ESMTPSA id m2sm2238026iti.26.2017.06.30.09.46.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 09:46:25 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_E3C6758C-CA9C-4E98-B069-05B029000067" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Anton Bachin In-Reply-To: Date: Fri, 30 Jun 2017 11:46:24 -0500 Cc: Gabriel Scherer , Xavier Leroy , OCaml Mailing List X-Mao-Original-Outgoing-Id: 520533984.820068-255edb049b82e366ff881426350e285a Message-Id: <49E937AA-CACC-4525-9AF2-113AB4B47B69@gmail.com> References: <0ea087b1-7267-eee6-3dd5-55a760d8f4cd@inria.fr> To: Julia Lawall X-Mailer: Apple Mail (2.3273) Subject: Re: [Caml-list] [IMPORTANT] Intel Skylake / Kaby Lake hardware bug affects OCaml programs --Apple-Mail=_E3C6758C-CA9C-4E98-B069-05B029000067 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 In what I=E2=80=99ve read about the bug, there is no requirement that two v= irtual cores be running OCaml code (or rather, the malfunctioning instructi= on sequence). Is that accurate? If so, it shouldn=E2=80=99t matter whether = the OCaml code is parallelized or not. As far as I know, the users reporting in Lwt were not running Lwt or OCaml = in parallel. > El jun. 30, 2017, a las 11:30, Julia Lawall > escribi=C3=B3: >=20 >=20 >=20 > On Fri, 30 Jun 2017, Gabriel Scherer wrote: >=20 >> Here is my list of affected OCaml projects known so far (it seems >> surprisingly less rare than I thought at first): >>=20 >> - an (unnamed) industrial user noticed the issue in Spring 2016, as >> reported by Xavier on the bugtracker: >> https://caml.inria.fr/mantis/view.php?id=3D7452#c17109 >>=20 >> - ahrefs noticed issues in late 2016, as reported by Joris >> Giovannangeli on the bugtracker issue or his longer piece >> https://tech.ahrefs.com/skylake-bug-a-detective-story-ab1ad2beddcd >>=20 >> - Lwt users were also affected (first report from Sebastien Mondet in >> February 2017): >> https://github.com/ocsigen/lwt/issues/315 >>=20 >> - Julia Lawall reported segfaults from a downstream user on the caml-lis= t, >> that seem extreley likely to be related to this issue (they >> disappear with hyperthreading disabled) >> https://sympa.inria.fr/sympa/arc/caml-list/2017-06/msg00115.html >>=20 >> At this point it seems reasonable to assume that any >> computation-intensive OCaml program that is run in parallel may be >> affected. >=20 > The Coccinelle code is compiled with Parmap, but I don't think that Parmap > is invoked in the failing execution. I could check on this. >=20 > julia >=20 >=20 >>=20 >> On Fri, Jun 30, 2017 at 10:15 AM, Xavier Leroy > wrote: >>> Clarification: >>>=20 >>>> Possible fixes include: >>>>=20 >>>> - Apply the microcode update recently released by Intel [...] >>>=20 >>> Contradicting what I wrote before, microcode updates are available both= for Skylake and for Kaby Lake processors. It's only how to apply those up= dates that differs slightly between Skylake and Kaby Lake. Again, see the e= xcellent instructions at >>> https://lists.debian.org/debian-devel/2017/06/msg00308.html >>>=20 >>> Sorry for the confusion. >>>=20 >>> - Xavier Leroy >>>=20 >>> -- >>> Caml-list mailing list. Subscription management and archives: >>> https://sympa.inria.fr/sympa/arc/caml-list >>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >>> Bug reports: http://caml.inria.fr/bin/caml-bugs >>=20 >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >>=20 >=20 > --=20 > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs --Apple-Mail=_E3C6758C-CA9C-4E98-B069-05B029000067 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
In wh= at I=E2=80=99ve read about the bug, there is no requirement that two virtua= l cores be running OCaml code (or rather, the malfunctioning instruction se= quence). Is that accurate? If so, it shouldn=E2=80=99t matter whether the O= Caml code is parallelized or not.

As far as I know, the users reporting in Lwt were not runn= ing Lwt or OCaml in parallel.

El jun. 30, 2017, a las 11:30, Julia Lawal= l <julia.lawall@lip6.= fr> escribi=C3=B3:



<= span style=3D"font-family: Menlo-Regular; font-size: 13px; font-style: norm= al; font-variant-caps: normal; font-weight: normal; letter-spacing: normal;= text-align: start; text-indent: 0px; text-transform: none; white-space: no= rmal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; displ= ay: inline !important;" class=3D"">On Fri, 30 Jun 2017, Gabriel Scherer wro= te:

Her= e is my list of affected OCaml projects known so far (it seems
surprisingly less rare than I thought at first):

- an (unnamed) industrial user noticed the issue in Spring 2016, asreported by Xavier on the bugtracker:
 h= ttps://caml.inria.fr/mantis/view.php?id=3D7452#c17109
- ahrefs noticed issues in late 2016, as reported by Joris
Giovannangeli on the bugtracker issue or his longer piece
 https://tech.ahrefs.com/skylake-bug-a-detective= -story-ab1ad2beddcd

- Lwt users were also = affected (first report from Sebastien Mondet in
February 2017= ):
 https://github.com/ocsigen/lwt/issues/315
- Julia Lawall reported segfaults from a downstream user on th= e caml-list,
 that seem extreley likely to be related to= this issue (they
disappear with hyperthreading disabled)
 https://sympa.inria.fr/sympa/arc/caml-list/20= 17-06/msg00115.html

At this point it seems= reasonable to assume that any
computation-intensive OCaml pr= ogram that is run in parallel may be
affected.
=

The Coccinelle code is compiled w= ith Parmap, but I don't think that Parmap
is invoked in the failing execution.  I could check on this.<= br style=3D"font-family: Menlo-Regular; font-size: 13px; font-style: normal= ; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; t= ext-align: start; text-indent: 0px; text-transform: none; white-space: norm= al; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D"">
julia



On Fri, Jun 30, 2017 at 10:15 AM, Xavier Leroy = <xavier.leroy@inria.= fr> wrote:
Clarif= ication:

= Possible fixes include:

- Apply the microcode = update recently released by Intel [...]

Contradicting what I wrote before, microcode updates are available b= oth for Skylake and for Kaby Lake processors.  It's only how to apply = those updates that differs slightly between Skylake and Kaby Lake. Again, s= ee the excellent instructions at
https://lists.debian= .org/debian-devel/2017/06/msg00308.html

So= rry for the confusion.

- Xavier Leroy

--
Caml-list mailing list.  Subscri= ption management and archives:
https://sympa.inria.fr/sympa/arc/caml-l= ist
Beginner's list: http://groups.yahoo.com/group/ocaml_= beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

--
Caml-list mailing l= ist.  Subscription management and archives:
https://sympa.inria.f= r/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/= group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs<= br class=3D"">

-- 
Caml-list mailing list.  Subscription management and archive= s:
https://sympa.inria.fr/sympa/arc/caml-list<= /a>
Beginner's list: 
http://grou= ps.yahoo.com/group/ocaml_beginners
Bug repo= rts: http://caml.inria.fr/bin/caml-bugs
= --Apple-Mail=_E3C6758C-CA9C-4E98-B069-05B029000067--