Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 30 Oct 2001 11:57:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 30 Oct 2001 11:57:30 -0500 Received: from mailout6-0.nyroc.rr.com ([24.92.226.125]:23779 "EHLO mailout6.nyroc.rr.com") by vger.kernel.org with ESMTP id ; Tue, 30 Oct 2001 11:57:12 -0500 Message-ID: <022401c16164$21a945d0$1a01a8c0@allyourbase> From: "Dan Maas" To: "David S. Miller" Cc: In-Reply-To: Subject: Re: SCSI tape crashes (was Re: BUG() in asm/pci.h:142 with 2.4.13) Date: Tue, 30 Oct 2001 11:58:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > Can people try out this patch? I believe this will fix the bug. > + tb->sg[0].page = NULL; > if (tb->sg[segs].address == NULL) { For the sake of making this clear to other kernel hackers (I got bitten by it too) - starting with 2.4.13 you must zero out the fields of struct scatterlist that you are not using. i.e. it is no longer sufficient to simply set sg.address and sg.length, because junk might still be present in the new sg.page field, and pci_map_*() will BUG() if both sg.address and sg.page are non-zero. Regards, Dan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/