[8166] in linux-scsi channel archive
Bug/Race condition in proc fs handling
daemon@ATHENA.MIT.EDU (Matthew Dharm)
Tue Feb 22 20:56:43 2000
Date: Tue, 22 Feb 2000 12:35:17 -0800 (PST)
From: Matthew Dharm <mdharm-scsi@one-eyed-alien.net>
To: The Linux SCSI list <linux-scsi@vger.rutgers.edu>
Message-ID: <Pine.LNX.4.10.10002221230540.29847-100000@ziggy.one-eyed-alien.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
I think I've found some sort of bug (a race condition, actually) which
can cause a kernel oops.
The test platform is 2.3.47, with SCSI compiled into the kernel.
Apparently, if the system has probed and found a new SCSI device, but has
not yet gotten the results from the INQUIRY command back, then doing a
'cat /proc/scsi/scsi' will cause an kernel oops. After the results of the
INQUIRY are available, the command will function just fine.
I only discovered this because I'm working on the USB Mass Storage driver,
which appears as a SCSI host. Unfortunately, what happened was that it
took a long time for my driver to complete the INQUIRY request, and when I
did the cat, I got an OOPS.
I hope this is enough of a bug report... please let me know if there is
more information that you need.
Matt Dharm
--
Matthew Dharm Home: mdharm@one-eyed-alien.net
Engineer, Qualcomm, Inc. Work: mdharm@qualcomm.com
What, are you one of those Microsoft-bashing Linux freaks?
-- Customer to Greg
User Friendly, 2/10/1999
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu