Skip to contentSkip to conversation

kernel BUG

DISCUSSION Eric Weiss 1 participant 1 message Jun 28, 2002

lore
Share & tools
lore

Eric Weiss

author
#0 lore raw
Quoted 8 lines · Chaoyang Deng

Hi,

I am working on an iSCSI target driver with a Fibre Channel disk. After I updated my OS to linux7.3 with kernel 2.4.18-3, I got problem: my driver will crash my box. I am not sure if it is a bug in my code or in the Qlogic Fibre Channel driver or in the kernel. Could anyone give me a hint?

The BUG() is popping in include/asm/pci.h:pci_map_sg(). If either sg_list.address or sg_list.page is not NULL, or both are NULL the BUG() is called. The reason for this is around 2.4.13-pre2 bounce buffers along with a nasty memcpy where added in linux/drivers/scsi/scsi_lib.c:scsi_io_completion() to scatterlists for HighMemIO support, along with two extra members (page & offset) to struct scatterlist in include/linux/scatterlist.h.

Eric Weiss

___________________________________________________________

http://webmail.unixpunx.org - Free mail for hackers, free mail for the punks.