Re: 2.6.23.1: oops in diskstats_show()

From: Rick Lindsley
Date: Tue Jan 29 2008 - 17:24:03 EST


my kernel 2.6.23.1 oopsed today in diskstats_show(), leaving the
block_subsys_lock mutex locked. I have an Athlon 64 X2 (dual-core),
architecture x86_64. I have not tried with 2.6.24 yet, but it looks
like there was no relevant change in 2.6.24.

Hmm. Yes, this should not happen. Having grabbed the block_subsys_lock
mutex should have been sufficient to keep the disk list stable. And the
evidence you sent along suggests that yes, the gendisk structure may have
gotten cleared after you got a reference to it but before you could get
the data from it.

Right before the crash, I was torturing cryptsetup to experiment with
encryption - I created and deleted device mapper objects in a loop.

Creating and deleting block devices ... yeah, this is probably key to
the problem. Can you provide the command or, more likely, script you
were using to do this?

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