linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Buffer overflow in SCSI code?
@ 2003-11-23  2:13 jackylam
  0 siblings, 0 replies; only message in thread
From: jackylam @ 2003-11-23  2:13 UTC (permalink / raw)
  To: linux-kernel

Dear all,

    I am not very experience in SCSI. Currently, I try to
play with a ITE8212F PCI IDE RAID card. After compiling and
insert the driver module, there will be a kernel fault when
accessing file greater than 4K. After tracing the problem up
to kernel SCSI level, I find something very strange in the
SCSI buffer allocation.

    Here is the log:
.
.
.
SMalloc: 512 c03af000 [From:00000007]
SMalloc: 512 c03af000 [From:00000007]
Doing sd request, dev = 0x801, block = 62128
sda : real dev = /dev/0, block = 62191
sda : reading 32/32 512 byte blocks.
Adding timer for command d8ef7600 at 3000 (c0217700)
scsi_dispatch_cmnd (host = 1, channel = 0, target = 0,
command = d8ef7658, buffer = c03af000,
bufflen = 16384, done = c02295c0)
.
.
.
    It is showing that the buffer 0xc03af000 is allocated
for 512 bytes only.  However, it is used to hold 16K data in
the following code. And this pointer will finally pass to
the ITE driver.

    Can anyone explain to me that is it correct? Thanks.

Best regards,
Jacky

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-23  2:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-23  2:13 Buffer overflow in SCSI code? jackylam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).