Re: Kernel oops on st module cycling

Joe Lawrence
2013-02-22T15:36:00Z

On Fri, 22 Feb 2013, Jean Delvare wrote:

> Hi Kai, James,
>
> It only takes a few st module rmmod/modprobe cycles to get a kernel
> oops. It was reported to me, and reproduced by me, on kernel 3.0.58 /
> SLES11 SP2, but I was also able to reproduce it on more recent kernels
> (3.4.6 / openSUSE 12.2 and 3.7.6 / openSUSE 12.3 RC1.)
>
> [ ... snip .. ]
>
> Thanks,
> --
> Jean Delvare
> Suse L3

Hi Jean,

I remember finding an st module load/unload kref accounting bug a while
ago: http://thread.gmane.org/gmane.linux.scsi/77539 I replied to the
report with a hack-patch that grabbed an extra reference to avoid the
crash.

There was an attempt at fixing this up in the block layer [1] but that
change was pulled when problems were found with that patch [2].

[1] https://lkml.org/lkml/2012/8/27/354
[2] https://lkml.org/lkml/2012/9/22/113

Maybe this is the same bug?

Hope this helps,

-- Joe