VirtualBox

Ticket #4368 (closed defect: obsolete)

Opened 5 years ago

Last modified 5 months ago

Lockdep recursive-locking warning from vboxdrv

Reported by: bgilbert Owned by:
Priority: minor Component: other
Version: VirtualBox 3.0.0 Keywords:
Cc: Guest type: other
Host type: other

Description (last modified by frank) (diff)

I'm running a vanilla 2.6.29 kernel with debugging features enabled, and it produces a lockdep recursive-locking warning when I start a VM under VirtualBox 3.0.0. VBox.log and kernel backtrace are attached. This also occurs on a 2.6.24 kernel I tested with, though with a slightly different backtrace.

Attachments

dmesg Download (2.0 KB) - added by bgilbert 5 years ago.
Kernel backtrace
VBox.log Download (60.8 KB) - added by bgilbert 5 years ago.

Change History

Changed 5 years ago by bgilbert

Kernel backtrace

Changed 5 years ago by bgilbert

comment:1 Changed 5 years ago by bird

This isn't a real problem, it's just an issue showing up because we don't play ball with the locking correctness validator (lockdep).

RTSpinlockAcquire is used for all kinds of spinlocks and it has no way of indicating to lockdep that it's a nested lock acquisition. Actually, the caller in this case, SUPR0ObjAddRefEx, has no idea that it's called from under a spinlock... We could perhaps try always use spin_lock_irqsave_nested/spin_lock_nested, but I'm not sure that will make lockdep happier and it's a bit of a hazzle to test this. Good suggestions and testing is welcome.

comment:2 Changed 5 months ago by frank

  • Status changed from new to closed
  • Resolution set to obsolete
  • Description modified (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use