Re: please revert commit 53f1b1433da7eac2607a4a0898a221a4485fd732(rtc: push the BKL down into the driver ioctl method)

From: Alan Cox
Date: Fri Jul 25 2008 - 11:06:19 EST


On Fri, 25 Jul 2008 22:26:38 +0800
"Jeff Chua" <jeff.chua.linux@xxxxxxxxx> wrote:

> 53f1b1433da7eac2607a4a0898a221a4485fd732 is first bad commit
> commit 53f1b1433da7eac2607a4a0898a221a4485fd732
> Author: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
> Date: Wed Jul 23 21:30:32 2008 -0700
>
> rtc: push the BKL down into the driver ioctl method
>
>
> This commit is breaking vmware-6.0.4. Upon booting linux (guest) on
> vmware, the whole vmware environment crashed

Having reviewed the patch and the trace I believe you need to take this
up with vmware. All the patch does is slightly alter where the locking is
done. I suspect vmware are blindly calling into the rtc_fops ioctl method
directly in which case they just got burned.

One way to check this would be to add a .ioctl method back which was
simply

rtc_test_ioctl(...)
{
printk("VMWare caught with pants down\n");
}

if it prints that instead of or while crashing you know who is guilty.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/