* BUG or virtualbox issue?
@ 2008-12-26 11:31 Udo van den Heuvel
2008-12-26 19:42 ` Rik van Riel
0 siblings, 1 reply; 2+ messages in thread
From: Udo van den Heuvel @ 2008-12-26 11:31 UTC (permalink / raw)
To: linux-kernel
Hello,
Just started virtualbox for the first time on x86_64 Phenom system; is
this a kernel issue or something for the VirtualBox people?
Dec 26 12:20:01 surfplank2 kernel: BUG: using smp_processor_id() in
preemptible [00000000] code: VirtualBox/26774
Dec 26 12:20:01 surfplank2 kernel: caller is RTMpCpuId+0x9/0x10 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: Pid: 26774, comm: VirtualBox Not
tainted 2.6.28 #3
Dec 26 12:20:01 surfplank2 kernel: Call Trace:
Dec 26 12:20:01 surfplank2 kernel: [<ffffffff8036c964>]
debug_smp_processor_id+0xd4/0xe0
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa03976a9>]
RTMpCpuId+0x9/0x10 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa03a59c3>]
g_abExecMemory+0x6403/0x180000 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa03a46a8>]
g_abExecMemory+0x50e8/0x180000 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa03aedb7>]
g_abExecMemory+0xf7f7/0x180000 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa03af232>]
g_abExecMemory+0xfc72/0x180000 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa03af0e7>]
g_abExecMemory+0xfb27/0x180000 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa0392a9d>]
supdrvIOCtl+0xfbd/0x1e00 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa0395f55>]
rtMemAlloc+0x85/0xf0 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffffa038e2d4>]
VBoxDrvLinuxIOCtl+0x114/0x1f0 [vboxdrv]
Dec 26 12:20:01 surfplank2 kernel: [<ffffffff802bb75f>] vfs_ioctl+0x2f/0xa0
Dec 26 12:20:01 surfplank2 kernel: [<ffffffff802bb84c>]
do_vfs_ioctl+0x7c/0x470
Dec 26 12:20:01 surfplank2 kernel: [<ffffffff802bbce1>] sys_ioctl+0xa1/0xb0
Dec 26 12:20:01 surfplank2 kernel: [<ffffffff8020b8cb>]
system_call_fastpath+0x16/0x1b
Udo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG or virtualbox issue?
2008-12-26 11:31 BUG or virtualbox issue? Udo van den Heuvel
@ 2008-12-26 19:42 ` Rik van Riel
0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2008-12-26 19:42 UTC (permalink / raw)
To: Udo van den Heuvel; +Cc: linux-kernel
Udo van den Heuvel wrote:
> Hello,
>
> Just started virtualbox for the first time on x86_64 Phenom system; is
> this a kernel issue or something for the VirtualBox people?
>
> Dec 26 12:20:01 surfplank2 kernel: BUG: using smp_processor_id() in
> preemptible [00000000] code: VirtualBox/26774
> Dec 26 12:20:01 surfplank2 kernel: caller is RTMpCpuId+0x9/0x10 [vboxdrv]
> Dec 26 12:20:01 surfplank2 kernel: Pid: 26774, comm: VirtualBox Not
> tainted 2.6.28 #3
Looks like the virtualbox code forgot to switch off
preemption before calling smp_processor_id().
This is broken, because the thread could get de-scheduled
and re-scheduled onto another CPU, which means the code
could end up using the wrong smp processor ID.
--
All rights reversed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-26 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-26 11:31 BUG or virtualbox issue? Udo van den Heuvel
2008-12-26 19:42 ` Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox