lkml.org 
[lkml]   [1998]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/scsi/scsi access causes segfault
  Date: Wed, 28 Oct 1998 09:49:38 +0100
From: Dick Streefland <dick_streefland@tasking.com>

On Monday 1998-10-26 10:01, David Woodhouse wrote:
|
| Dick.Streefland@inter.NL.net said:
| >
| > echo "scsi add-single-device 0 0 6 0" > /proc/scsi/scsi
| > This used to work with 2.0 kernels, but when I do this with a 2.1.117
| > or 2.1.125 kernel, the shell dies with a Segmentation fault:
|
| I had it working in recent 2.1.x kernels. I think it was working in 2.1.108.
| Could you try a couple of kernels between .108 and .117, and see when the
| problem started?

OK, I did a binary search, and found out that the problem started in
2.1.116. The problem seems to be that in that version, 27 functions of
the BusLogic driver are declared with the "__init" attribute. I'm not
sure which of these functions are needed for /proc support, but when I
revert the patch to drivers/scsi/BusLogic.h, the problem goes away.

BTW: I found another "bug" in the the Buslogic driver:
/*
BugLogic_ProcDirectoryInfo implements /proc/scsi/BusLogic/<N>.
~~~
*/

I'll look into this. /proc/scsi/scsim however, shouldn't require any support
from the driver, so offhand I don't see why the __init declarations should make
a difference.

Leonard

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.053 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site