caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [IMPORTANT] Intel Skylake / Kaby Lake hardware bug affects OCaml programs
@ 2017-06-30 13:51 Xavier Leroy
  2017-06-30 14:15 ` Xavier Leroy
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Xavier Leroy @ 2017-06-30 13:51 UTC (permalink / raw)
  To: OCaml Mailing List

Dear OCaml users,

It was recently made public that Intel processors of the Skylake and Kaby Lake families have a nasty hardware bug concerning hyperthreading.  See, for example
https://arstechnica.com/information-technology/2017/06/skylake-kaby-lake-chips-have-a-crash-bug-with-hyperthreading-enabled/

I wanted to draw the attention of all OCaml users to this issue, because this hardware bug is triggered by the OCaml runtime under fairly common conditions.  Random crashes caused by this bug were observed at Ahrefs and another industrial user of OCaml, and also by users of Coccinelle and of Coq.  (*)

Your OCaml installation may be affected if the following three conditions are met:

1- You're using an Intel processor of the Skylake or Kaby Lake family.
   (AMD processors and older Intel processors are not affected.)
   
2- The processor support hyperthreading (HT) and hyperthreading is enabled in the BIOS.

3- The OCaml runtime system was compiled with certain versions of GCC.
   (We don't know exactly which versions of GCC triggers the issue, but
    it seems that it is never triggered by clang-generated code.
    In particular, this means that Mac OS X users should be safe.)

See https://lists.debian.org/debian-devel/2017/06/msg00308.html for help in determining if your processor is vulnerable, and for instructions on how to address the issue.  Possible fixes include:

- Apply the microcode update recently released by Intel for Skylake processors.  (No such update exists yet for Kaby Lake processors.)
- Disable hyperthreading in the BIOS.
- Reinstall OCaml using clang instead of GCC.

Kind regards,

- Xavier Leroy

(*) It is likely that we OCaml folks were the first to pinpoint this Intel bug.  For more information, see the narratives at
https://caml.inria.fr/mantis/view.php?id=7452
https://medium.com/ahrefs/skylake-bug-a-detective-story-ab1ad2beddcd

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-07-22  7:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 13:51 [Caml-list] [IMPORTANT] Intel Skylake / Kaby Lake hardware bug affects OCaml programs Xavier Leroy
2017-06-30 14:15 ` Xavier Leroy
2017-06-30 15:17   ` Gabriel Scherer
2017-06-30 15:31     ` Emilio Jesús Gallego Arias
2017-06-30 16:30     ` Julia Lawall
2017-06-30 16:46       ` Anton Bachin
2017-06-30 17:03         ` Xavier Leroy
2017-07-05  1:01     ` Johannes Kanig
2017-06-30 15:28   ` Mark Shinwell
2017-06-30 15:19 ` Maxime Dénès
2017-06-30 15:38   ` Anton Bachin
2017-07-21 13:00 ` David MENTRÉ
2017-07-22  7:27   ` Gabriel Scherer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).