Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1204843
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Kernel crashes in VirtualBox module after commit 2ecd9d29abb1 |
| Date | 2015-08-11 09:50 +0200 |
| Message-ID | <pWctQ-73V-23@gated-at.bofh.it> (permalink) |
| References | <pW3gS-21h-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Aug 10, 2015 at 04:49:49PM -0500, Larry Finger wrote: > A problem with the VirtualBox kernel module vboxdrv.ko has been bisected to > commit 2ecd9d29abb1 "sched, preempt_notifier: separate notifier registration > from static_key inc/dec". The affected kernels crash is various ways. The > most instructive includes a warning issued at kernel/sched/core.c:2342 in > prempt_notifier_register() for "registering prempt_notifier while notifiers > disabled" The call from vboxdrv is as follows: > > /* > * Register the callback. > */ > preempt_disable(); > pThis->fEnabled = true; > preempt_notifier_register(&pThis->LnxPreemptNotifier); > preempt_enable(); > > As I have no reason to suspect the kernel after this patch, I would like > some suggestions regarding the best method to patch/fix the VirtualBox code. You have to call preempt_notifier_inc() when creating your virtual box instance _before_ creating your vCPU threads which will register the preempt_notifiers. You also have to call a matching preempt_notifier_dec() when destroying your virtual box instance. The patch you refer adds these calls in kvm_create_vm()/kvm_destroy_vm(). Mirror that and things should work again. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Kernel crashes in VirtualBox module after commit 2ecd9d29abb1 Larry Finger <Larry.Finger@lwfinger.net> - 2015-08-11 00:00 +0200 Re: Kernel crashes in VirtualBox module after commit 2ecd9d29abb1 Peter Zijlstra <peterz@infradead.org> - 2015-08-11 09:50 +0200
csiph-web