Re: Fwd: crypto accelerator driver problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hamid Nassiby <h.nassiby@xxxxxxxxx> wrote:
> Hi,
> 
> As some good news and additional information, with the following patch
> I no more get
> "UDP bad cheksum" error as I mentioned erlier with Iperf in udp mode.
> But some times I get the following call trace in dmesg after running
> Iperf in UDP mode, more than one time (and ofcourse Iperf stops
> transferring data while it uses 100% of CPU cycles.
> 
> 
> 
> [  130.171909] mydriver-aes: mydriver Crypto-Engine enabled.
> [  134.767846] NET: Registered protocol family 15
> [  200.031846] iperf: page allocation failure. order:0, mode:0x20
> [  200.031850] Pid: 10935, comm: iperf Tainted: P            2.6.36-zen1 #1
> [  200.031852] Call Trace:
> [  200.031860]  [<ffffffff8108ab39>] ? __alloc_pages_nodemask+0x6d3/0x722
> [  200.031864]  [<ffffffff810b454f>] ? virt_to_head_page+0x9/0x30
> [  200.031867]  [<ffffffff810afac2>] ? alloc_pages_current+0xa5/0xce
> [  200.031869]  [<ffffffff810899ad>] ? __get_free_pages+0x9/0x46
> [  200.031872]  [<ffffffff8102bbbf>] ? need_resched+0x1a/0x23
> [  200.031876]  [<ffffffff811a10ad>] ? blkcipher_walk_next+0x68/0x2d9

This means that your box has run out of memory temporarily.
If all errors were handled correctly it should continue at this
point.
 
> --- mydriver1   2010-12-21 15:20:17.000000000 +0330
> +++ mydriver2   2010-12-21 15:24:18.000000000 +0330
> @@ -1,4 +1,3 @@
> -
> static int
> mydriver_cbc_decrypt(struct blkcipher_desc *desc,
>                  struct scatterlist *dst, struct scatterlist *src,
> @@ -14,18 +13,17 @@ mydriver_cbc_decrypt(struct blkcipher_desc
>        err = blkcipher_walk_virt(desc, &walk);
>        op->iv = walk.iv;
>        
> -       while((nbytes = walk.nbytes)) {
> +       

However, your patch removes the error checking (and the loop
condition) which is why it crashes.

Cheers,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux