[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number
From: |
Serge Hallyn |
Subject: |
[Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number |
Date: |
Tue, 15 Mar 2011 13:37:50 -0000 |
** Description changed:
+ =========================================
+ SRU Justification:
+ 1. Impact: 'qemu -drive ...,serial=xyz' does not work
+ 2. How addressed: a patch from upstream fixes bug that sizeof was called on
the wrong thing.
+ 3. patch: is in the description
+ 4. to reproduce: use '-drive ...,serial=xyz' option to qemu
+ 5. regression potential: this only changes one line which called sizeof on
the wrong thing, so should not impact any other code.
+ =========================================
+
The -drive ...,serial=xyz option is broken, at least in 0.12. See
Debian bug#573439, http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=573439 for details.
The proposed fix from the original reporter:
--- qemu-kvm-0.12.3+dfsg/vl.c 2010-02-26 11:34:00.000000000 +0900
+++ qemu-kvm-0.12.3+dfsg.old/vl.c 2010-03-11 02:26:00.134217787 +0900
@@ -2397,7 +2397,7 @@
- dinfo->on_write_error = on_write_error;
- dinfo->opts = opts;
- if (serial)
+ dinfo->on_write_error = on_write_error;
+ dinfo->opts = opts;
+ if (serial)
- strncpy(dinfo->serial, serial, sizeof(serial));
+ strncpy(dinfo->serial, serial, sizeof(dinfo->serial));
- QTAILQ_INSERT_TAIL(&drives, dinfo, next);
- if (is_extboot) {
- extboot_drive = dinfo;
+ QTAILQ_INSERT_TAIL(&drives, dinfo, next);
+ if (is_extboot) {
+ extboot_drive = dinfo;
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/584143
Title:
qemu fails to set hdd serial number
Status in QEMU:
Fix Released
Status in “qemu-kvm” package in Ubuntu:
Fix Released
Status in “qemu-kvm” source package in Lucid:
In Progress
Status in “qemu-kvm” source package in Maverick:
In Progress
Status in “qemu-kvm” package in Debian:
Unknown
Bug description:
=========================================
SRU Justification:
1. Impact: 'qemu -drive ...,serial=xyz' does not work
2. How addressed: a patch from upstream fixes bug that sizeof was called on
the wrong thing.
3. patch: is in the description
4. to reproduce: use '-drive ...,serial=xyz' option to qemu
5. regression potential: this only changes one line which called sizeof on
the wrong thing, so should not impact any other code.
=========================================
The -drive ...,serial=xyz option is broken, at least in 0.12. See
Debian bug#573439, http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=573439 for details.
The proposed fix from the original reporter:
--- qemu-kvm-0.12.3+dfsg/vl.c 2010-02-26 11:34:00.000000000 +0900
+++ qemu-kvm-0.12.3+dfsg.old/vl.c 2010-03-11 02:26:00.134217787 +0900
@@ -2397,7 +2397,7 @@
dinfo->on_write_error = on_write_error;
dinfo->opts = opts;
if (serial)
- strncpy(dinfo->serial, serial, sizeof(serial));
+ strncpy(dinfo->serial, serial, sizeof(dinfo->serial));
QTAILQ_INSERT_TAIL(&drives, dinfo, next);
if (is_extboot) {
extboot_drive = dinfo;
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Serge Hallyn, 2011/03/14
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Launchpad Bug Tracker, 2011/03/14
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Launchpad Bug Tracker, 2011/03/14
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Serge Hallyn, 2011/03/15
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Serge Hallyn, 2011/03/15
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Serge Hallyn, 2011/03/15
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Serge Hallyn, 2011/03/15
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number,
Serge Hallyn <=
- [Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number, Serge Hallyn, 2011/03/15