From owner-freebsd-scsi Thu Mar 28 02:53:50 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA16391 for freebsd-scsi-outgoing; Thu, 28 Mar 1996 02:53:50 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA16357 Thu, 28 Mar 1996 02:53:35 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id MAA28840; Thu, 28 Mar 1996 12:52:49 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id LAA14534; Thu, 28 Mar 1996 11:52:48 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id LAA24351; Thu, 28 Mar 1996 11:08:51 +0100 (MET) From: J Wunsch Message-Id: <199603281008.LAA24351@uriah.heep.sax.de> Subject: Re: Panic in sc_done To: current@FreeBSD.org, scsi@FreeBSD.org Date: Thu, 28 Mar 1996 11:08:50 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199603272203.BAA00333@astral.msk.su> from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Mar 28, 96 01:03:39 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= wrote: > I just got page fault: > sc_done+0x35: testb $0x40,0x5(%ecx) > sc_err1 This is here: /* * an EOF condition results in a VALID resid.. */ if(xs->flags & SCSI_EOF) { ^^^^^^^^^ xs->resid = xs->datalen; xs->flags |= SCSI_RESID_VALID; } Looks weird. sc_err1() does always evaluate xs->error first, so this should already break if xs is an invalid pointer. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)