Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 679581 - "grubby --info=ALL" segfaults with dual boot parameters in grub.conf
"grubby --info=ALL" segfaults with dual boot parameters in grub.conf
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mkinitrd (Show other bugs)
5.6
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Brian Lane
Release Test Team
:
Depends On:
Blocks: 726828
  Show dependency treegraph
 
Reported: 2011-02-22 17:07 EST by Kendrick Gay
Modified: 2013-03-07 18:31 EST (History)
5 users (show)

See Also:
Fixed In Version: mkinitrd-5.1.19.6-73
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 00:33:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
commit 173351118ccb5b3595168a701fa7b4c1b9804106 (850 bytes, patch)
2011-03-01 19:55 EST, Brian Lane
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0157 normal SHIPPED_LIVE mkinitrd bug fix update 2012-02-20 09:54:17 EST

  None (edit)
Description Kendrick Gay 2011-02-22 17:07:02 EST
Description of problem:
When using grubby to parse boot parameters, it segfaults:

[root@gss-rhel5u5-32 ~]# grep -v ^# /etc/grub.conf 
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=5 serial console
title Red Hat Enterprise Linux Server (2.6.18-194.26.1.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-194.26.1.el5 ro root=/dev/vg0/root console=ttyS0,115200 rhgb quiet
	initrd /initrd-2.6.18-194.26.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-194.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/vg0/root console=ttyS0,115200 rhgb quiet
	initrd /initrd-2.6.18-194.el5.img
title Other
       rootnoverify (hd0,0)
       chainloader +1
[root@gss-rhel5u5-32 ~]# grubby --info=ALL
boot=/dev/vda
index=0
kernel=/vmlinuz-2.6.18-194.26.1.el5
args="ro console=ttyS0,115200 rhgb quiet"
root=/dev/vg0/root
initrd=/boot/initrd-2.6.18-194.26.1.el5.img
index=1
kernel=/vmlinuz-2.6.18-194.el5
args="ro console=ttyS0,115200 rhgb quiet"
root=/dev/vg0/root
initrd=/boot/initrd-2.6.18-194.el5.img
index=2
Segmentation fault

Version-Release number of selected component (if applicable):
mkinitrd-5.1.19.6-68.el5

How reproducible:
Setup dual boot system with Windows, then run "grubby --info=ALL" in RHEL

Steps to Reproduce:
1. Verify GRUB parameters for Windows in grub.conf
2. Run "grubby --info=ALL"
3. Observe segfault once parameters for Windows boot are accessed
  
Actual results:
grubby segfaults with Windows boot definitions in grub.conf

Expected results:
grubby ignores Windows boot definitions in grub.conf, or returns "non linux entry", as it does in later versions (grubby-7.0.x).

Additional info:
Comment 2 Brian Lane 2011-03-01 19:55:05 EST
Created attachment 481756 [details]
commit 173351118ccb5b3595168a701fa7b4c1b9804106

This patch from the grubby repo will fix this.
Comment 4 RHEL Product and Program Management 2011-08-05 08:32:18 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 6 Pavel Holica 2011-12-21 04:34:35 EST
Reproduced on RHEL5.7 Client x86_64
Verified on RHEL5.8-Client-20111214.0.
Comment 7 errata-xmlrpc 2012-02-21 00:33:58 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0157.html

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