Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RYjp3-000305-Ti for mharc-grub-devel@gnu.org; Thu, 08 Dec 2011 14:40:01 -0500 Received: from eggs.gnu.org ([140.186.70.92]:45228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjp1-0002zN-2p for grub-devel@gnu.org; Thu, 08 Dec 2011 14:39:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYjoz-0006b3-R4 for grub-devel@gnu.org; Thu, 08 Dec 2011 14:39:59 -0500 Received: from etmail.acmepacket.com ([216.41.24.6]:14203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjoz-0006aw-NZ; Thu, 08 Dec 2011 14:39:57 -0500 Received: from MAIL1.acmepacket.com (10.0.0.21) by etmail.acmepacket.com (216.41.24.6) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 8 Dec 2011 14:39:56 -0500 Received: from MAIL2.acmepacket.com ([169.254.2.175]) by Mail1.acmepacket.com ([169.254.1.150]) with mapi id 14.01.0270.001; Thu, 8 Dec 2011 14:39:56 -0500 From: Iain Barker To: "bug-grub@gnu.org" Subject: HP root-caues analysis for GRUB "Red screen of death" on DL120/DL360 G7 servers Thread-Topic: HP root-caues analysis for GRUB "Red screen of death" on DL120/DL360 G7 servers Thread-Index: Acy1vs2foTFMJmEjRdWDrAJTs4MKWw== Date: Thu, 8 Dec 2011 19:39:56 +0000 Message-ID: <6F28EE1C9AAED6468989841A3FB66CB44980B21C@Mail2.acmepacket.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.0.30] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAQAAAWE= X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Received-From: 216.41.24.6 Cc: "grub-devel@gnu.org" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 19:40:00 -0000 I am posting the following information with permission from HP support, in = the hope that it may be useful for future GRUB developer reference. Summary: When using GRUB to chain-load from one device to another device (e.g. USB t= o HDD), the HP BIOS used in DL120/DL360 and other G7 servers reports "Illeg= al Opcode" and a red crashdump screen. This failure did not occur on previ= ous generation (G6) servers of the same models, which used AMI/Phoenix BIOS= . References: Acme Packet opened HP support case 4635415916 for additional clarification = in reference to the public HP customer advisory number c02695572 http://bizsupport1.austin.hp.com/bizsupport/TechSupport/Document.jsp?object= ID=3Dc02695572&lang=3Den&cc=3Dus&taskId=3D101&prodSeriesId=3D4091408&prodTy= peId=3D15351 Root cause analysis: HP level3 engineering identified the root cause as follows: _start_quoted_text_ HP Level-3 engineering have found that the HP BIOS on the DL120 G7 is not c= ausing the red screen. GRUB loads its own INT13 handler in the interrupt = vector table, so it will now intercept all int13 calls. Some time after it= does that, GRUB does some type of memory copy operation which overrides th= e data at the address where Grub stores the INT13 handler code. As a resu= lt, on the next Int13 call in grub, the interrupt handler is no longer ther= e so the processor just starts to execute whatever data overwrote where the= int13 handler code was. =20 =20 Here is how the red screen happens: When the processor executes an illegal = instruction (like when it tries to execute whatever is in the overwritten i= nt13 handler), the processor causes and interrupt which the BIOS then handl= es by printing the red screen with the register dump and the message. So o= ur BIOS just prints out the red screen, but the cause of the red screen is = Grub. =20 =20 The specific scenario which leads to this is identified as follows: 1) Grub installs its own INT13 handler 2) Near the end of the chain loading process, Grub loads an image of the Li= nux kernel into memory which wipes out their Int13 handler. 3) Right before grub transfers control to the kernel to boot, grub makes a = call to a function to turn off the floppy drive. 4) The call to the floppy code then makes an Int13 call to the handler whic= h has been overwritten by the kernel and thereby results in the red screen. =A0 The problem seems to be that Grub made assumptions about the memory layout = in our system which is not accurate.=A0 HP systems that use HP developed BI= OSes instead of outsourced (AMI) BIOSes use more of a memory area called EB= DA than a typical system does.=A0=A0 As a result, Grub assumes there's memo= ry that it could safely use instead of properly calculating an area of safe= memory to use. That's probably why Grub worked=A0 on the other systems and= fails on G7.=A0=20 _end quoted text_ Regards, Iain Barker - Platform Engineering, Acme Packet. [yoshac@member.fsf.org]