linux-3.2.0-25.40: unregister netdevice change breaks VirtualBox

Bug #1009156 reported by Richard Hansen
70
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Virtualbox
Fix Released
Unknown
linux (Ubuntu)
Invalid
Medium
Unassigned
virtualbox (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
High
Unassigned

Bug Description

After upgrading from linux 3.2.0-24.39 to 3.2.0-25.40, my computer will no longer shut down after using a VirtualBox virtual machine. The following is printed every 10 seconds when it tries to unload the VirtualBox networking modules:

    unregister_netdevice: waiting for vboxnet0 to become free. Usage count = -1

To shut down, I have to hold down on the power button for 5 seconds to power off.

This bug has been reported to VirtualBox. A fix for their network driver has been committed to their svn repository, but a release with the fix is not yet available:
    https://www.virtualbox.org/ticket/10624
    https://www.virtualbox.org/changeset/41548/vbox

It looks like the culprit is the kernel changes to net/dev/core.c between 3.2.16 and 3.2.18.

I'm guessing this is a bug in VirtualBox that was only exposed when the kernel code changed, but it might be a bug in the kernel that the VirtualBox devs had to work around. Either way, I'm guessing lots of people will experience this issue if the new kernel hits -updates.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu9
Architecture: amd64
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=UUID=2c47e61e-2732-41d2-ad4f-ca1dafcd0062
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
MachineType: System76, Inc. Gazelle Professional
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-25-generic root=/dev/mapper/hostname-root ro quiet splash
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-25-generic N/A
 linux-backports-modules-3.2.0-25-generic N/A
 linux-firmware 1.79
StagingDrivers: mei
Tags: precise staging
Uname: Linux 3.2.0-25-generic x86_64

[Impact]
Unable to unload vbox kernel modules.
Shutting down the computer no longer works.
Forcing shutdown is only possible with SysRq keys.

[Test Case]
- Make sure you are running kernel 3.2.0-25
- Start a virtual machine with a host only networking device
- Shutdown the VM and quit the main VirtualBox window
- Check with "ifconfig" that a vboxnetX device is active
- Run "sudo service virtualbox stop"
- Command should exit normally

Richard Hansen (rhansen)
no longer affects: linux (Fedora)
Richard Hansen (rhansen)
summary: - 3.2.0-25.40: unregister netdevice change breaks VirtualBox
+ linux-3.2.0-25.40: unregister netdevice change breaks VirtualBox
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1009156

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in virtualbox:
status: Unknown → New
Revision history for this message
Richard Hansen (rhansen) wrote : AcpiTables.txt

apport information

tags: added: apport-collected precise staging
description: updated
Revision history for this message
Richard Hansen (rhansen) wrote : AlsaDevices.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : AplayDevices.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : ArecordDevices.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : BootDmesg.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : CRDA.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card1.Codecs.codec.1.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card1.Codecs.codec.2.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Card1.Codecs.codec.3.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : IwConfig.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Lspci.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : Lsusb.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : PciMultimedia.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : ProcEnviron.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : ProcModules.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : PulseList.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : UdevDb.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : UdevLog.txt

apport information

Revision history for this message
Richard Hansen (rhansen) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Richard Hansen (rhansen) wrote :

bug #1003534 is the linux-3.2.0-25.40 release tracking bug

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtualbox - 4.1.16-dfsg-2

---------------
virtualbox (4.1.16-dfsg-2) unstable; urgency=low

  * Fix vboxnet device unregistration on kernel >= 3.2.18. (LP: #1009156)
    - Add 37-fix-unregister-netdevice.patch, backported from upstream.
  * Switch from python-central to dh_python2. (Closes: #617143)

 -- Felix Geyer <email address hidden> Sun, 10 Jun 2012 21:32:09 +0200

Changed in virtualbox (Ubuntu):
status: New → Fix Released
Felix Geyer (debfx)
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello a7x, or anyone else affected,

Accepted virtualbox into precise-proposed. The package will build now and be available in a few hours. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: removed: regression-proposed
Changed in virtualbox (Ubuntu Precise):
importance: Undecided → High
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu Precise):
status: New → Confirmed
Revision history for this message
Richard Hansen (rhansen) wrote :

Both 4.1.12-dfsg-2ubuntu0.1 and a manually backported version of 4.1.16-dfsg-2 work for me.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Michele Mordenti (micmord) wrote :

4.1.12-dfsg-2ubuntu0.1 works on "precise"

Changed in virtualbox:
status: New → Fix Released
Revision history for this message
Richard Hansen (rhansen) wrote :

Upstream has released 4.1.18, which includes the fix.

Revision history for this message
Hannes Erven (hannes-erven) wrote :

It also appears you can't update the virtualbox packages after having used Virtualbox in the current boot session for the same reasons.

Most vbox* modules can still be unloaded with rmmod -f, but vboxnetadp even withstands rmmod -v -w -f vboxnetadp .

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtualbox - 4.1.12-dfsg-2ubuntu0.1

---------------
virtualbox (4.1.12-dfsg-2ubuntu0.1) precise-proposed; urgency=low

  * Fix vboxnet device unregistration on kernel >= 3.2.18. (LP: #1009156)
    - Add 37-fix-unregister-netdevice.patch, backported from upstream.
 -- Felix Geyer <email address hidden> Tue, 12 Jun 2012 22:59:06 +0200

Changed in virtualbox (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
abiru (a1-abiru) wrote :

I'm having the same issue on Ubuntu 11.10.
Does somebody knows how to work around this issue?

Revision history for this message
penalvch (penalvch) wrote :

As per VirtualBox upstream, this was a bug in it https://www.virtualbox.org/ticket/12264#comment:12 .
Invalid -> linux (Ubuntu)

no longer affects: linux (Ubuntu Precise)
Changed in linux (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.