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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070501183230.C7F44DBA1@gherkin.frus.com>
Date:	Tue, 1 May 2007 13:32:30 -0500 (CDT)
From:	rct@...rkin.frus.com (Bob Tracy)
To:	Alan Cox <alan@...rguk.ukuu.org.uk>
CC:	James.Bottomley@...elEye.com, linux-kernel@...r.kernel.org,
	linux-scsi@...r.kernel.org
Subject: Re: BAD_SG_DMA panic in aha1542

Alan Cox wrote:
> The one I sent has a memory leak but it won't matter for basic testing.
> Or you can change the final bit to
> 
> 
>         scsi_normalize_sense((char *)sense, sizeof(*sense), &sshdr);
>         
>         if (zebedee != cgc->buffer) {
>                 if (cgc->data_direction == DMA_FROM_DEVICE)    
>                         memcpy(cgc->buffer, zebedee, cgc->buflen);
>                 kfree(zebedee); /* Time for bed */        
>         }

I changed it, because I'll be living with this for a while I'd bet...

Works fine.  No more BAD_SG_DMA() calls.  Thanks!

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@...s.com
-----------------------------------------------------------------------
-
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