RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1466655 - GRUB2 triple faults on certain hardware
Summary: GRUB2 triple faults on certain hardware
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grub2
Version: 7.4
Hardware: All
OS: All
unspecified
medium
Target Milestone: rc
: ---
Assignee: Peter Jones
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-30 07:33 UTC by Ross Lagerwall
Modified: 2021-01-15 07:39 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 07:39:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ross Lagerwall 2017-06-30 07:33:39 UTC
Description of problem:

On some hardware, when GRUB probes filesystems it may triple fault and reboot the system.

This can be provoked by running "ls -l", or "ls (hd0,msdos2)", or "ls (hd0)", or "search -L garbage", from the GRUB command line (or a GRUB config).

All of these commands result in GRUB probing a partition to determine what it is. In some cases, there is no valid filesystem (or an unsupported one) and therefore GRUB will go through all the filesystems it knows about. The probe for cbfs in at least GRUB 2.02 beta 2 results in a 4 byte memory access to 0xffffffff. This is beyond the end of the segment. On some hardware, this read wraps around to 0x0. On other hardware, this read results in a GP fault (due to enhanced checks). Both of these are valid according to the Intel manual:

    """When the effective limit is FFFFFFFFH (4 GBytes), these accesses may or may not cause the indicated exceptions.
    Behavior is implementation-specific and may vary from one execution to another."""

GRUB was fixed in 2.02 beta 3 to not have this erroneous access:

    commit 855fe6869cc4407569513a231f2a01cb8215e77f
    Author: Vladimir Serbinenko <phcoder>
    Date:   Sun Nov 8 20:34:30 2015 +0100

        cbfs: Check for ptr range sanity.
    
        Triaged by Andrei and enhanced with suggestions by Aaron Durbin
        Also-By: Andrei Borzenkov <arvidjaar>

Please cherry-pick this commit into the grub2 package.


Version-Release number of selected component (if applicable):

All versions of RHEL 7 (I tested up to 7.4 beta).


How reproducible:
Every time.

Steps to Reproduce:
1. At the GRUB menu, press 'c'.
2. Type "ls -l"

Actual results:
A list of disks.

Expected results:
The system crashes and reboots or powers off.

Additional info:
This happens when running RHEL 7 as a VM on recent versions of Xen, but it also happens on some real hardware as well.

Comment 3 RHEL Program Management 2021-01-15 07:39:05 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.