Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
qemu-kvm doesn't show any error when user supplies a negative port value to -spice
Version-Release number of selected component (if applicable):
$ rpm -q qemu-kvm spice-server
qemu-kvm-0.12.1.2-2.165.el6.x86_64
spice-server-0.8.0-1.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. $ /usr/libexec/qemu-kvm -spice disable-ticketing,port=-3000
Actual results:
do_spice_init: starting 0.8.0
spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
spice_server_add_interface: SPICE_INTERFACE_MOUSE
spice_server_add_interface: SPICE_INTERFACE_QXL
red_worker_main: begin
handle_dev_input: start
Expected results:
something like:
qemu-kvm: -spice disable-ticketing,port=-3000: Parameter 'port' expects a positive number
parse error: disable-ticketing,port=-3000
I verify with the latest spice-server and qemu-kvm,but this issue doesn't
reproduce.
Version-Release number of selected component (if applicable):
# rpm -qa qemu-kvm spice-server
spice-server-0.8.2-3.el6.x86_64
qemu-kvm-0.12.1.2-2.183.el6.x86_64
Steps to Reproduce:
1.when supplying a port that is a negative value.
# /usr/libexec/qemu-kvm -spice disable-ticketing,port=-30
Actual results:
spice port is out of range
2.when supplying a port that is out of range.
# /usr/libexec/qemu-kvm -spice disable-ticketing,port=123456
Actual results:
spice port is out of range
Above, the qemu-kvm has friendly error tips.
Reproduced this issue with qemu-kvm-0.12.1.2-2.180.el6.x86_64,I tried two scenarios.
steps:
1. negative value
# /usr/libexec/qemu-kvm -spice disable-ticketing,port=-30
2. port num out of range
#/usr/libexec/qemu-kvm -spice disable-ticketing,port=123456
Result:
Qemu-kvm can be booted successful without any message about port error.
Verified this issue with fixed version qemu-kvm-0.12.1.2-2.184.el6.x86_64 using steps as same as reproduce.
Actual results:
--snip of output from qemu-kvm--
qemu-kvm can not be booted with friendly message "spice port is out of range".
Above all,this issue has been fixed.
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/RHSA-2011-1531.html