linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 16142] r8169: Kernel Panic when a lot of data is transferred through network interface
@ 2010-06-17  8:07 Borislav Petkov
       [not found] ` <20100617150008.16a5e653@cpc>
  0 siblings, 1 reply; 33+ messages in thread
From: Borislav Petkov @ 2010-06-17  8:07 UTC (permalink / raw)
  To: Hans42Mueller; +Cc: Andrew Morton, linux-ide

Hi,

switching to mail for now.

Ok, this looks almost exactly like
https://bugzilla.kernel.org/show_bug.cgi?id=13399 and I have a theory :)

Hans, can you apply the debug patch below, rebuild your kernel and catch
the _whole_ output this time (not the oops only) and send it to me? It
might be a bit much with all the stack traces so let me know of any
troubles you might have catching it.

Thanks.

--
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 64207df..436304c 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -552,8 +552,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
 	if (!OK_STAT(stat, 0, BAD_R_STAT)) {
 		rc = cdrom_decode_status(drive, stat);
 		if (rc) {
-			if (rc == 2)
+			if (rc == 2) {
+				printk(KERN_EMERG "%s: bad status with a sense rq\n", __func__);
 				goto out_end;
+			}
 			return ide_stopped;
 		}
 	}
@@ -667,8 +669,10 @@ out_end:
 		blk_end_request_all(rq, 0);
 		hwif->rq = NULL;
 	} else {
-		if (sense && uptodate)
+		if (sense && uptodate) {
+			printk(KERN_EMERG "%s: complete failed rq: %p\n", __func__, rq);
 			ide_cd_complete_failed_rq(drive, rq);
+		}
 
 		if (blk_fs_request(rq)) {
 			if (cmd->nleft == 0)
@@ -688,10 +692,13 @@ out_end:
 				rq->resid_len += cmd->last_xfer_len;
 		}
 
+		printk(KERN_EMERG "%s: completing rq %p\n", __func__, rq);
 		ide_complete_rq(drive, uptodate ? 0 : -EIO, blk_rq_bytes(rq));
 
-		if (sense && rc == 2)
+		if (sense && rc == 2) {
+			printk(KERN_EMERG "%s: request sense failure, rq: %p\n", __func__, rq);
 			ide_error(drive, "request sense failure", stat);
+		}
 	}
 	return ide_stopped;
 }
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 172ac92..3317778 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -57,6 +57,9 @@
 int ide_end_rq(ide_drive_t *drive, struct request *rq, int error,
 	       unsigned int nr_bytes)
 {
+
+	dump_stack();
+
 	/*
 	 * decide whether to reenable DMA -- 3 is a random magic for now,
 	 * if we DMA timeout more than 3 times, just stay in PIO
@@ -118,6 +121,8 @@ int ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes)
 	struct request *rq = hwif->rq;
 	int rc;
 
+	dump_stack();
+
 	/*
 	 * if failfast is set on a request, override number of sectors
 	 * and complete the whole request right now
-- 
Regards/Gruss,
    Boris.

^ permalink raw reply related	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2012-07-20 12:55 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-16142-11633@https.bugzilla.kernel.org/>
2010-06-14 22:17 ` [Bug 16142] r8169: Kernel Panic when a lot of data is transferred through network interface bugzilla-daemon
2010-06-15  6:39 ` bugzilla-daemon
2010-06-15 11:17 ` bugzilla-daemon
2010-06-15 11:50 ` bugzilla-daemon
2010-06-15 15:19 ` bugzilla-daemon
2010-06-15 15:20 ` bugzilla-daemon
2010-06-15 15:21 ` bugzilla-daemon
2010-06-15 15:21 ` bugzilla-daemon
2010-06-15 15:22 ` bugzilla-daemon
2010-06-15 15:22 ` bugzilla-daemon
2010-06-15 15:26 ` bugzilla-daemon
2010-06-15 19:12 ` bugzilla-daemon
2010-06-15 19:39 ` bugzilla-daemon
2010-07-03  8:26 ` bugzilla-daemon
2012-07-20 12:55 ` bugzilla-daemon
2010-06-17  8:07 Borislav Petkov
     [not found] ` <20100617150008.16a5e653@cpc>
2010-06-18  7:45   ` Borislav Petkov
2010-06-18 13:08     ` Hans Mueller
2010-06-18 15:02       ` Borislav Petkov
2010-06-18 22:50     ` Hans Mueller
2010-06-19 10:05       ` Borislav Petkov
2010-06-19 11:27         ` Hans Mueller
2010-06-23  8:02           ` Borislav Petkov
2010-06-25 16:58             ` Hans Mueller
2010-06-30  6:54               ` Borislav Petkov
2010-06-30 18:02                 ` Hans Mueller
2010-06-30 18:31                   ` Borislav Petkov
2010-07-03  7:49                     ` Hans Mueller
2010-07-03  8:23                       ` Borislav Petkov
2010-07-03 11:41                         ` Hans Mueller
2010-07-03 11:53                           ` Borislav Petkov
2010-07-05 11:44                             ` Hans Mueller
2010-07-05 12:11                               ` Borislav Petkov

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).