Bug 3252

Summary: cdemu doesn't work and gives some kernel messages
Product: Mageia Reporter: Tico Perez <entidad_universal>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: alexandrbezenkov, anssi.hannula, davidwhodgins, sysadmin-bugs, tmb
Version: 1Keywords: validated_update
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: dkms-vhba CVE:
Status comment:

Description Tico Perez 2011-11-02 23:02:53 CET
Description of problem:

cdemu doesn't work. First time you run cdemu, some kernel messages appear like this:

Message from syslogd@localhost at Nov  2 22:42:15 ...
 kernel:Oops: 0000 [#1] SMP 

Message from syslogd@localhost at Nov  2 22:42:15 ...
 kernel:Stack:

Message from syslogd@localhost at Nov  2 22:42:15 ...
 kernel:Call Trace:

Message from syslogd@localhost at Nov  2 22:42:15 ...
 kernel:Code: 00 48 81 c4 b8 00 00 00 5b 41 5c 41 5d 41 5e 41 5f c9 c3 49 8b 45 30 89 45 a0 49 8b 45 00 8b 80 84 00 00 00 89 45 a4 49 8b 45 50 

Message from syslogd@localhost at Nov  2 22:42:15 ...
 kernel:CR2: 0000000000000404


Next time you try to load an iso image, it completes without error, but there is no emulated disc anywhere.


How reproducible:


Steps to Reproduce:
1. Install cdemu-client,cdemu-daemon and their dependencies.
2. Try to mount a virtual disc with "cdemu load 0 path/to/iso"

More info:
As another side effect, system shutdown becomes unstable once you run the first cdemu command.
Comment 1 Manuel Hiebel 2011-11-02 23:46:34 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

Assignee: bugsquad => anssi.hannula

Comment 2 Alexandr Bezenkov 2011-11-27 17:35:33 CET
*** Bug 3495 has been marked as a duplicate of this bug. ***

CC: (none) => alexandrbezenkov

Anssi Hannula 2011-12-03 18:25:02 CET

Status: NEW => ASSIGNED

Comment 3 Anssi Hannula 2011-12-05 23:11:34 CET
Fixed in cauldron in dkms-vhba-20110915-1.mga2.

Since this bug affects mga1 as well, switching this bug report to track mga1 update release progress.

Updated packages are now available in mga1 core/updates_testing as
dkms-vhba-1.2.1-4.20100822.1.1.mga1 (noarch)

Suggested advisory:
=====================
The VHBA kernel module in dkms-vhba package provided in Mageia 1 causes a kernel error when trying to use CDEmu and renders the kernel in an inconsistent state, possibly causing shutting down the system to hang or other stability issues.

This update resolves that issue.
=====================


Testcase:
===========
1. Install dkms-vhba and cdemu-client.
2. Run as a normal user: cdemu status
Result:
- With a broken dkms-vhba, you'll see the screen filled with a kernel oops.
- With a working dkms-vhba, you'll see
Devices' status:
DEV   LOADED     FILENAME
0     0          N/A


Please test the package in mga1 core/updates_testing.

CC: (none) => anssi.hannula
Version: Cauldron => 1
Assignee: anssi.hannula => qa-bugs
Source RPM: cdemu-client-1.3.0-4.mga1.src.rpm => dkms-vhba

Comment 4 Dave Hodgins 2011-12-07 01:05:46 CET
Testing complete on i586 for the srpm
dkms-vhba-1.2.1-4.20100822.1.1.mga1.src.rpm

[dave@hodgins ~]$ cdemu load any /var/mnt/hd/mageia-dvd-1-i586.iso
[dave@hodgins ~]$ cdemu status
Devices' status:
DEV   LOADED     FILENAME
0     1          /var/mnt/hd/mageia-dvd-1-i586.iso
[dave@hodgins ~]$ cdemu unload 0

When loaded, /dev/sr1 was created, the device notifier showed the
detection of the device, and after selecting open with file manager,
the filesystem was mounted.

CC: (none) => davidwhodgins

Comment 5 Alexandr Bezenkov 2011-12-07 04:38:06 CET
*YAHOO* :)
Comment 6 claire robinson 2011-12-07 10:14:35 CET
Testing x86_64
Comment 7 claire robinson 2011-12-07 11:47:03 CET
Everything works as expected apart from over ssh.

Without being logged in locally cdemu via ssh fails with errors below:

$ cdemu status
ERROR:dbus.proxies:Introspect error on :1.1:/CDEMUD_Daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
ERROR: Failed to acquire daemon interface version (this most likely means your daemon is out-of-date): org.freedesktop.DBus.Error.ServiceUnknown: The name :1.1 was not provided by any .service files
ERROR: Failed to connect to daemon (bus: 'session')!

Once logged in locally it shows

$ cdemu status
Devices' status:
DEV   LOADED     FILENAME
0     0          N/A

Other than that, loaded mga2 iso, confirmed the updated status, unloaded.

Wiki page created with testing procedure.

Is this ssh issue expected behaviour Anssi? It could make it impossible to use on a remote server.
Comment 8 claire robinson 2011-12-20 17:47:43 CET
Anssi, please see the query in comment 7, thankyou :)
Comment 9 Anssi Hannula 2011-12-20 18:10:56 CET
Yes, that is expected; when used outside of session one needs to start cdemud manually.
Comment 10 Dave Hodgins 2011-12-21 01:31:16 CET
Validating the update.

Could someone from the sysadmin team push the srpm
dkms-vhba-1.2.1-4.20100822.1.1.mga1.src.rpm
from Core Updates Testing to Core Updates.

Advisory: The VHBA kernel module in dkms-vhba package provided in Mageia 1
causes a kernel error when trying to use CDEmu and renders the kernel in an
inconsistent state, possibly causing shutting down of the system, a hang, or
other stability issues.

This update resolves that issue.

https://bugs.mageia.org/show_bug.cgi?id=3252

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 11 Anssi Hannula 2011-12-21 05:59:12 CET
There's a mistake in the advisory, it can't cause system shutdown (and likely not hang either), I was talking about a hang during system shutdown (admittedly I was a bit unclear).
Comment 12 Thomas Backlund 2011-12-21 19:04:44 CET
Update pushed with fixed advisory

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED