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 1442908 - Guest hang when running a wrong command in Uefishell
Summary: Guest hang when running a wrong command in Uefishell
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ovmf
Version: 7.4
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Laszlo Ersek
QA Contact: FuXiangChun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-18 01:56 UTC by FuXiangChun
Modified: 2018-01-09 02:03 UTC (History)
5 users (show)

Fixed In Version: ovmf-20170228-4.gitc325e41585e3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 22:22:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2056 0 normal SHIPPED_LIVE new packages: OVMF 2017-08-01 19:34:11 UTC

Description FuXiangChun 2017-04-18 01:56:15 UTC
Description of problem:
Boot a guest with ovmf and enable Secure boot. Then executing a wrong command in Uefishell environment. Guest will hang.

Version-Release number of selected component (if applicable):
3.10.0-653.el7.x86_64
qemu-kvm-rhev-debuginfo-2.9.0-0.el7.mrezanin201703210848.x86_64
OVMF-20170228-3.gitc325e41585e3.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1./usr/libexec/qemu-kvm -M q35 -cpu Opteron_G5 -nodefaults -rtc base=utc -m 4G -smp 8,sockets=2,cores=4,threads=1 -enable-kvm -name rhel7.4 -uuid 990ea161-6b67-47b2-b803-19fb01d30d12 -global driver=cfi.pflash01,property=secure,value=on -device ahci,id=ahci0 -drive file=/usr/share/OVMF/UefiShell.iso,if=none,cache=none,snapshot=off,aio=native,media=cdrom,id=cdrom1 -device ide-cd,drive=cdrom1,id=ide-cd1,bus=ahci0.1,bootindex=1 \

-drive file=/usr/share/OVMF/OVMF_CODE.secboot.fd,if=pflash,format=raw,unit=0 \
-drive file=/home/ovmf/guest/OVMF_VARS.fd,if=pflash,format=raw,unit=1 \

-k en-us -debugcon file:/home/test/ovmf.log -global isa-debugcon.iobase=0x402 -serial unix:/tmp/console,server,nowait -boot menu=on -qmp tcp::4446,server,nowait \

-drive file=/home/ovmf/guest/rhel7.4-ovmf.qcow2,if=none,id=drive0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads -device virtio-scsi-pci,id=scsi1 -device scsi-hd,id=virtio-disk0,drive=drive0,bus=scsi1.0,bootindex=2 \

-vnc :1 -monitor stdio -drive file=/home/RHEL-7.4-20170330.1-Server-x86_64-dvd1.iso,if=none,media=cdrom,format=raw,id=drive-ide1-0-1 -device ide-drive,drive=drive-ide1-0-1,id=ide1-0-1,bus=ide.1,unit=0,bootindex=3 \

-device virtio-net-pci,netdev=tap10,mac=08:9e:01:c2:6d:6e,disable-legacy=on,disable-modern=off -netdev tap,id=tap10 -vga qxl

2. Performe keys enrollment:
   Shell> fs1:
   FS1:\> EnrollDeafultKeys.efi
3. FS1:\>cd boot\efi
   FS1:\boot\efi\>dh -d -v -p SimpleNetwork|more

Actual results:
Guest hang.

Expected results:
print warning/error message. But guest works.

Additional info:
command works:
FS1:\boot\efi\>dh -d -v -p SimpleNetwork

Comment 2 FuXiangChun 2017-04-18 01:58:29 UTC
I will test previous ovmf version later. and update result to bz.

Comment 3 Laszlo Ersek 2017-04-25 13:58:39 UTC
Posted upstream series:
Subject: [PATCH 0/2] ShellPkg/Shell: fix double free in pipeline processing
Message-Id: <20170425135727.4862-1-lersek>
URL: https://lists.01.org/pipermail/edk2-devel/2017-April/010198.html

Comment 4 Laszlo Ersek 2017-04-26 10:54:53 UTC
Upstream commits:
1 1bd0bf153ebf ShellPkg/Shell: clean up bogus member types in SPLIT_LIST
2 227fe49d5d4f ShellPkg/Shell: eliminate double-free in RunSplitCommand()

Comment 7 Miroslav Rezanina 2017-04-28 08:23:31 UTC
Fix included in ovmf-20170228-4.gitc325e41585e3.el7

Comment 9 FuXiangChun 2017-05-02 08:29:08 UTC
I verified this bug with OVMF-20170228-4.gitc325e41585e3.el7.noarch.  This problem is gone.

Comment 10 errata-xmlrpc 2017-08-01 22:22:15 UTC
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.

https://access.redhat.com/errata/RHEA-2017:2056


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