Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 27 Dec 2001 05:44:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 27 Dec 2001 05:44:20 -0500 Received: from swazi.realnet.co.sz ([196.28.7.2]:42909 "HELO netfinity.realnet.co.sz") by vger.kernel.org with SMTP id ; Thu, 27 Dec 2001 05:44:05 -0500 Date: Thu, 27 Dec 2001 12:42:50 +0200 (SAST) From: Zwane Mwaikambo X-X-Sender: To: Jens Axboe Cc: Linux Kernel Subject: Re: BUG and Kernel Panic on 2.5.2-pre1 with loop and cdrom In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Sorry the previous emails didn't help much, here is a properly decoded oops as well as a printout of the values before the BIO_BUG_ON. ll_rw_blk.c static int end_bio_bh_io_sync(struct bio *bio, int nr_sectors) { struct buffer_head *bh = bio->bi_private; printk(KERN_DEBUG "%s: nr_sectors=%d bh->b_size=%d\n", __FUNCTION__, nr_sectors, (bh->b_size >> 9)); BIO_BUG_ON(nr_sectors != (bh->b_size >> 9)); <== BUG tripped here bh->b_end_io(bh, test_bit(BIO_UPTODATE, &bio->bi_flags)); bio_put(bio); return 0; } Jan 1 02:01:02 mondecino kernel: loop: loaded (max 8 devices) Jan 1 02:01:02 mondecino kernel: VFS: Disk change detected on device fd(2,0) Jan 1 02:01:02 mondecino kernel: end_bio_bh_io_sync: nr_sectors=8 bh->b_size=8 Jan 1 02:01:02 mondecino last message repeated 3 times Jan 1 02:01:03 mondecino kernel: end_bio_bh_io_sync: nr_sectors=2 bh->b_size=2 Jan 1 02:01:03 mondecino kernel: end_bio_bh_io_sync: nr_sectors=8 bh->b_size=8 invalid operand: 0000 CPU: 0 EIP: 0010:[] Not tainted EFLAGS: 00010286 eax: 00000020 ebx: c88db1a4 ecx: c0304cc4 edx: 000025e1 esi: cae38c64 edi: cae95000 ebp: 00000000 esp: c8adff9c ds: 0018 es: 0018 ss: 0018 Process loop0 (pid: 697, stackpage=c8adf000) Stack: c02e1c03 00000554 cae38c64 cae38f64 c014dd33 cae38c64 00000000 cc9170a2 cae38c64 00000001 00000000 cae95000 cae38f64 cae38c64 00000000 00000000 00000000 c1560018 00000f00 ca13bf30 00000000 c0107286 cae95000 cc916e80 Call Trace: [] [] [] [] Code: 0f 0b 58 5a 8b 46 0c 83 e0 01 50 53 ff 53 34 56 e8 b6 14 f4 >>EIP; c020c065 <===== Trace; c014dd33 Trace; cc9170a2 <[loop]loop_thread+222/280> Trace; c0107286 Trace; cc916e80 <[loop]loop_thread+0/280> Code; c020c065 00000000 <_EIP>: Code; c020c065 <===== 0: 0f 0b ud2a <===== Code; c020c067 2: 58 pop %eax Code; c020c068 3: 5a pop %edx Code; c020c069 4: 8b 46 0c mov 0xc(%esi),%eax Code; c020c06c 7: 83 e0 01 and $0x1,%eax Code; c020c06f a: 50 push %eax Code; c020c070 b: 53 push %ebx Code; c020c071 c: ff 53 34 call *0x34(%ebx) Code; c020c074 f: 56 push %esi Code; c020c075 10: e8 b6 14 f4 00 call f414cb <_EIP+0xf414cb> c114d530 <_end+d6c100/c444c30> - 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/