** Description changed:

- The version of qemu-kvm that's in Precise fails to lock the pidfile like
- it did in all previous versions, possibly leading to data corruption as
- it might run twice on the same disk images (depending on the
- configuration).
+ ============================
+ SRU Justification:
+ 1. Impact: two kvm processes can start (conflicting) with the same pidfile
+ 2. Development fix: keep the pidfile locked for duration of qemu-kvm process
+ 3. Stable fix: same as development fix (cherry-pick the patch)
+ 4. Test case:
+   $ kvm -vnc :1 -pidfile abab &
+   $ kvm -vnc :2 -pidfile abab
+   With the patch, the second kvm will exit with the message:
+ Could not acquire pid file: Resource temporarily unavailable
+   Without the patch the second kvm will run, overwriting the pid of the first.
+ 5. Regression potential: as mentioned in the patch description, coverity may
+ complain about the open fd being a leak.
+ 
+ ============================
+ The version of qemu-kvm that's in Precise fails to lock the pidfile like it 
did in all previous versions, possibly leading to data corruption as it might 
run twice on the same disk images (depending on the configuration).
  
  Upstream has already fixed this bug in
  
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=93dd748b789202af4f5be75412c58ee1ed481b29
  (patch attached).
  
  Please apply this patch to the Precise version. Thanks!
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: qemu-kvm 1.0+noroms-0ubuntu13
  ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
  Uname: Linux 3.2.0-26-generic x86_64
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  Date: Tue Jul 10 22:49:05 2012
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: 
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
  MachineType: Gigabyte Technology Co., Ltd. GA-880GMA-UD2H
  ProcEnviron:
-  TERM=xterm
-  PATH=(custom, user)
-  LANG=nl_NL.UTF-8
-  SHELL=/bin/zsh
+  TERM=xterm
+  PATH=(custom, user)
+  LANG=nl_NL.UTF-8
+  SHELL=/bin/zsh
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-26-generic 
root=/dev/mapper/sys-root ro rw 
rootflags=logbufs=8,logbsize=256k,noatime,nobarrier hugepages=2060 quiet splash 
vt.handoff=7
  SourcePackage: qemu-kvm
  UpgradeStatus: Upgraded to precise on 2012-07-07 (3 days ago)
  dmi.bios.date: 06/10/2010
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F3
  dmi.board.name: GA-880GMA-UD2H
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: 
dmi:bvnAwardSoftwareInternational,Inc.:bvrF3:bd06/10/2010:svnGigabyteTechnologyCo.,Ltd.:pnGA-880GMA-UD2H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-880GMA-UD2H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: GA-880GMA-UD2H
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

** Also affects: qemu-kvm (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Also affects: qemu-kvm (Ubuntu Quantal)
   Importance: Medium
       Status: Triaged

** Changed in: qemu-kvm (Ubuntu Quantal)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1023159

Title:
  Locking fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1023159/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to