[ofa-general] Race condition in core/sysfs.c (kernel panic) when unloading the driver

Jack Morgenstein jackm at dev.mellanox.co.il
Sun Feb 22 00:15:45 PST 2009


On Sunday 22 February 2009 09:15, Roland Dreier wrote:
>  > I ran on RHEL5.2 ...
> 
> I suspect that at some point in the 2+ years since 2.6.18 more locking
> was added to sysfs so that this race no longer exists.  You could try
> and see if my test (add a sleep to the show method and make sure you
> remove the low-level driver during that window) results in an instant
> crash with the RHEL 5.2 kernel.
> 
>  - R.

You're right -- your test does crash the RHEL5.2 kernel, with the appropriate
stack dump (page fault for query_pkey low-level driver function).

I'll try to determine in which kernel this was fixed.

- Jack




More information about the general mailing list