Re: kernfs/rtc: circular dependency between kernfs and ops_lock

From: Alessandro Zummo
Date: Mon Mar 31 2014 - 06:44:10 EST


On Mon, 31 Mar 2014 11:52:36 +0200
Lars-Peter Clausen <lars@xxxxxxxxxx> wrote:

> It's the same bug, device_unregister(&rtc->dev) will try to unregister all
> sysfs files attached to the device and that function is still called with
> the rtc mutex held.

rtc-cmos tries to unregister the rtc device in the probe function,
which should not be done.

the last patches fixes it. I'll keep trying to trigger the bug on my systems.

--

Best regards,

Alessandro Zummo,
Tower Technologies - Torino, Italy

http://www.towertech.it

--
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/