Cyrix coma bug

The Cyrix coma bug is a design flaw in Cyrix 6x86 (introduced in 1996), 6x86L, and early 6x86MX processors that allows a non-privileged program to hang the computer.

Discovery

According to Andrew Balsa, around the time of the discovery of the F00F bug on Intel Pentium, Serguei Shtyliov from Moscow found a flaw in a Cyrix processor while developing an IDE disk driver in assembly language. Alexandr Konosevich, from Omsk, further researched the bug and coauthored an article with Uwe Post in the German technology magazine c't, calling it the "hidden CLI bug" (CLI is the instruction that disables interrupts in the x86 architecture). Balsa, as a member on the Linux kernel mailing list, confirmed that the following C program (which uses inline x86-specific assembly language) could be compiled and run by an unprivileged user:

unsigned char c[4] = {0x36, 0x78, 0x38, 0x36};
int main()
{
  asm (
  "        movl    $c, %ebx\n"
  "again:  xchgl   (%ebx), %eax\n"
  "        movl    %eax, %edx\n"
  "        jmp     again\n"
  );
}

Execution of this program renders the processor completely useless until it is rebooted, as it enters an infinite loop that cannot be interrupted. This allows any user with access to a Cyrix system with this bug to perform a denial-of-service attack.

It is similar to execution of a Halt and Catch Fire instruction, although the coma bug is not any one particular instruction.

Analysis

What causes the bug is not an interrupt mask, nor are interrupts being explicitly disabled. Instead, an anomaly in the Cyrix's instruction pipeline prevents interrupts from being serviced for the duration of the loop; since the loop never ends, interrupts will never be serviced. The xchg[1] instruction is atomic, meaning that other instructions are not allowed to change the state of the system while it is executed. In order to ensure this atomicity, the designers at Cyrix made the xchg uninterruptible. Due to pipelining and branch predicting, however, another xchg enters the pipeline before the previous one completes, causing a deadlock.

Workarounds

A fix for unintentional instances of the bug is to insert another instruction in the loop, the nop instruction being a good candidate. Cyrix suggested serializing the xchg opcode, thus bypassing the pipeline. However, these techniques will not serve to prevent deliberate attacks.

One can also prevent the bug by disabling implicit bus locking normally done by xchg instruction. This is accomplished by setting bit four (mask of 0x10) in the configuration register, CCR1.

See also

Notes

  1. ^ xchgl in the source code means Exchange (Long)

Read other articles:

Dr. Ir.Pramono AnungM.M.Sekretaris Kabinet Indonesia ke-10PetahanaMulai menjabat 12 Agustus 2015PresidenJoko WidodoWakil PresidenMuhammad Jusuf Kalla Ma'ruf AminPendahuluAndi WidjajantoWakil Ketua Dewan Perwakilan Rakyat Bidang Industri dan PembangunanMasa jabatan2 Oktober 2009 – 1 Oktober 2014Menjabat bersama Priyo Budi Santoso Muhammad Anis Matta Mohamad Sohibul Iman Marwoto Mintohardjono Taufik KurniawanPresidenSusilo Bambang YudhoyonoWakil PresidenMuhammad Jusuf...

San Gregorio Barbarigo en Tre Fontane Título cardenalicio de presbíteroSancti Gregorii Barbadici ad Aquas SalviasTítulo italiano San Gregorio Barbarigo alle Tre FontaneCreación 5 de marzo de 1973 por el Papa Pablo VITitular actual Désiré TsarahazanaFecha de nombramiento 28 de junio de 2018 por Francisco Escudo de Désiré Tsarahazana Ficha en catholic-hierarchy.org[editar datos en Wikidata] San Gregorio Barbarigo en Tre Fontane es un título cardenalicio de la Iglesia católic...

Florida Governor William Bloxham William Dunnington Bloxham (* 9. Juli 1835 im Leon County, Florida-Territorium; † 15. März 1911 in Tallahassee, Florida) war ein US-amerikanischer Politiker und von 1881 bis 1885 bzw. 1897 bis 1901 der 13. und 17. Gouverneur des Bundesstaates Florida. Inhaltsverzeichnis 1 Frühe Jahre und politische Karriere 2 Gouverneur von Florida 3 Weiterer Lebensweg 4 Weblinks Frühe Jahre und politische Karriere William Bloxham absolvierte im Jahr 1855 das College of W...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2023) يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. ...

Thai football club Football clubNonthaburi F.C. นนทบุรี เอฟซีFull nameNonthaburi Football Club สโมสรฟุตบอลจังหวัดนนทบุรีNickname(s)The CrowsShort nameNBFCFounded2010; 13 years ago (2010)GroundNonthaburi Province StadiumNonthaburi, ThailandCapacity10,000ChairmanItthipol SangpraphaiManagerJeerawat Thong-lueLeagueThai League T3 Home colours Away colours Nonthaburi Football Club (Thai: สโมสรฟุ

طول الرابطة هو عبارة عن المسافة بين نواتي ذرتين مكوّنتين لرابطة كيميائية في جزيء. يتعلق طول الرابطة برتبتها، إذ أنه كلما ازداد عدد الإلكترونات المشاركة في تشكيل الرابطة الكيميائية كانت أقصر. على هذا الأساس فإنه في المركبات العضوية تكون طول الرابطة كربون-كربون في ألكاينات أ

By2

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: By2 – berita · surat kabar · buku · cendekiawan · JSTORBy2By2 di 2012 Taipei Samsung Running FestivalInformasi latar belakangNama lainBY2AsalTaipei, TaiwanGenrePop, Pop dansa, Pop MandarinTahun aktif2008...

Akikah (bahasa Arab: عقيقة, transliterasi: Aqiqoh) adalah pengurbanan hewan dalam syariat Islam, sebagai bentuk rasa syukur umat Islam terhadap Allah Subhanahu wa ta'ala mengenai bayi yang dilahirkan.[1] Hukum akikah menurut pendapat yang paling kuat adalah sunah muakadah, dan ini adalah pendapat jumhur ulama menurut hadis.[2][3] Kemudian ada ulama yang menjelaskan bahwa akikah sebagai penebus adalah artinya akikah itu akan menjadikan terlepasnya kekangan jin yang...

Овідіу Чернаутяну Основна інформаціяДата народження 23 серпня 1974(1974-08-23) (49 років)Місце народження Котошані, РумуніяРоки активності 1994 — тепер. часГромадянство Норвегія і РумуніяПрофесії співак, піаніст, автор пісень, музичний продюсерІнструменти фортепіано&#...

Daftar ini belum tentu lengkap. Anda dapat membantu Wikipedia dengan mengembangkannya. Ms. MarvelPoster PromosiGenre Drama Pahlawan super PembuatBisha K. AliBerdasarkanMarvel ComicsNegara asalAmerika SerikatBahasa asliBahasa InggrisJmlh. episode6ProduksiProduser eksekutif Kevin Feige Louis D'Esposito Victoria Alonso Sana Amanat Adil El ArbiBilall Fallah Bisha K. Ali Brad Winderbaum Lokasi produksi - Atlanta, Georgia - New Jersey - Thailand Sinematografi Robrecht Heyvaert Carmen Cabana Jules O...

2013 Maldivian filmFathis Handhuvaruge FeshunOfficial film posterDirected byAli ShifauWritten byIbrahim WaheedScreenplay byIbrahim WaheedProduced byMohamed AliStarringYoosuf ShafeeuFathimath FareelaAhmed NimalCinematographyIbrahim WisanEdited byAli ShifauMusic byAyyuman ShareefProductioncompanyDark Rain EntertainmentRelease date April 5, 2013 (2013-04-05) Running time121 minutesCountryMaldivesLanguageDhivehiBudgetMVR 900,000 Fathis Handhuvaruge Feshun 3D is a 2013 Maldivian rom...

← 2016  2024 → Eleição municipal de Vitória de Santo Antão em 2020 15 de novembro de 2020 Candidato Paulo Roberto Aglailson Júnior Partido MDB PSB Natural de Vitória de Santo Antão, PE Recife, PE Vice Professor Edmo Neves (PTB) Henrique Queiroz (Avante) Votos 40.665 26.532 Porcentagem 55,43% 36,16% Prefeito de Vitória de Santo Antão Titular Aglailson Júnior PSB Eleito Paulo Roberto MDB A eleição municipal do município de Vitória de Santo Antão em 2020 ocorreu no d...

English politician Sir William Whitmore, 2nd Baronet (6 April 1637 – 30 March 1699) was an English politician who sat in the House of Commons from 1661 to 1699. Apley Hall-seat of the Whitmore family. Whitmore was the eldest son of Sir Thomas Whitmore, 1st Baronet of Apley Hall, Shropshire and his wife Elizabeth Acton, daughter of Sir William Acton, 1st Baronet (1570-1651). He succeeded in 1653 to the baronetcy on the death of his father, who had been MP for Bridgnorth.[1] In 16...

Village in Cornwall, England This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Portloe – news · newspapers · books · scholar · JSTOR (June 2010) (Learn how and when to remove this template message) 50°13′09″N 4°53′30″W / 50.2191°N 4.8917°W / 50.2191; -4.8917 The Cornish flag...

Painting by the workshop of Hieronymus Bosch This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Adoration of the Magi Bosch, Philadelphia – news · newspapers · books · scholar · JSTOR (February 2018) (Learn how and when to remove this template message) The Adoration of the MagiArtistHieronymus BoschYearc. ...

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (نوفمبر 2019) دوري كرة القدم الإسكتلندي الدرجة الثانية 1928–29 تفاصيل الموسم دوري كرة القدم الاسكتلندي الدرجة الثانية...

Attempt to redevelop Washington DC Union Station 38°53′50″N 77°00′23″W / 38.89731°N 77.00626°W / 38.89731; -77.00626 The National Visitor Center was an ill-fated[1] attempt to repurpose Washington, D.C.'s Union Station as an information center for tourists visiting the United States Capitol and other Washington attractions. It opened for the Bicentennial celebrations in 1976, but it never was able to attract enough crowds to sustain its operating co...

French television series SimonLogoGenrePreschoolCreated byStéphanie BlakeDirected byJulien CayotVoices ofLoti BaileyHayden ConnetiKeith FaulknerRudy GreatorexHari PatelLuke HalliwellJacob PrestonJoanna RuizMili PatelAlex StarkeComposerSéverinCountry of originFranceOriginal languagesFrenchEnglishNo. of seasons4No. of episodes284ProductionExecutive producersEric GarnetAnne De GalardRunning time5 minutesProduction companyGO-N ProductionsOriginal releaseNetworkFrance 5ReleaseDecember 17, 2016&#...

Zip ComicsCover of Zip Comics 1 (Feb 1940) Art by Charles Biro.Publication informationPublisherMLJ Magazines IncSchedule10–11 times a yearFormatOngoing seriesPublication dateFebruary 1940 – Summer 1944No. of issues47Main character(s)Steel SterlingZambini the MagicianScarlet AvengerNevada JonesKalthar the Giant ManWar Eagles of the DevilCaptain ValorMr SatanWilburThe WebGinger Zip Comics was the name of an American anthology comic book series published by MLJ Magazines ...

Japanese manga series Astral ProjectNorth American cover the first manga volume of Astral Project月の光(Tsuki No Hikari)GenreMystery, supernatural[1] MangaWritten byMarginalIllustrated bySyuji TakeyaPublished byEnterbrainEnglish publisherNA: CMX MangaMagazineComic BeamDemographicSeinenOriginal run2005 – 2007Volumes4[1] Astral Project (Japanese: 月の光, Hepburn: Tsuki No Hikari) is a Japanese manga series written by Marginal and illustrated by Takeya Syuj...