lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090329201337.GA9962@liondog.tnic>
Date:	Sun, 29 Mar 2009 22:13:37 +0200
From:	Borislav Petkov <petkovbb@...glemail.com>
To:	Michael Roth <mroth@...sie.de>
Cc:	linux-kernel@...r.kernel.org,
	Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
Subject: Re: Bug in 2.6.29 ide-cd: Kernel freeze: bisected + unacceptable
	workaround

Hi Michael,

On Sun, Mar 29, 2009 at 09:25:30PM +0200, Michael Roth wrote:
>
> commit 1e91477aa335fc1c97eb15649ed1a1714cc758ec
> Author: Borislav Petkov <petkovbb@...il.com>
> Date:   Tue Jan 6 17:20:57 2009 +0100
> 
>     ide-cd: start DMA before sending the actual packet command
> 
>     as it is done for all other IDE ATAPI devices.
> 
>     There should be no functionality change resulting from this patch.
> 
>     Signed-off-by: Borislav Petkov <petkovbb@...il.com>
>     Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
> 
> 
> I tried to revert this patch in 2.6.29 but the revert produced a merge
> conflict and I don't have the knowledge to resolve this conflict.

Well, its kinda strange that this piece of code could be the problem
since the bits it touches are gone (this'll explain the confict when
attempting to revert the patch.) Can we please see a dmesg of a working
kernel on your machine and also is it possible to catch any kernel
output of the crash, any oops or something when your machine freezes -
the more the better. Probably over a serial console would be best but
photographed with a digicam and uploaded somewhere as a screenshot would
do too.

> So as a quick workaround I disabled ide-cd in my kernel config:
> 
> # CONFIG_BLK_DEV_IDECD is not set
> 
> which does the trick but is of course no solution. (I'm writing
> this email with 2.6.29 and disabled ide-cd.)

You could also try the following patch to see whether that is of any
help:

---
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index e9d042d..99fb0b0 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -567,10 +567,7 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
 			timeout, expiry);
 
 	/* Begin DMA, if necessary */
-	if (dev_is_idecd(drive)) {
-		if (drive->dma)
-			hwif->dma_ops->dma_start(drive);
-	} else {
+	if (!dev_is_idecd(drive)) {
 		if (pc->flags & PC_FLAG_DMA_OK) {
 			pc->flags |= PC_FLAG_DMA_IN_PROGRESS;
 			hwif->dma_ops->dma_start(drive);
@@ -581,6 +578,12 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
 	if ((drive->atapi_flags & IDE_AFLAG_ZIP_DRIVE) == 0)
 		hwif->tp_ops->output_data(drive, NULL, rq->cmd, cmd_len);
 
+	/* Begin DMA, if necessary */
+	if (dev_is_idecd(drive)) {
+		if (drive->dma)
+			hwif->dma_ops->dma_start(drive);
+	}
+
 	return ide_started;
 }

--

Thanks.

-- 
Regards/Gruss,
    Boris.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ