Hi Corentin,

On Thu, Feb 19, 2015 at 02:42:30PM +0100, Corentin LABBE wrote:
> I have some issue with cryptodev 1.7 under a gentoo with a 3.19 kernel.
> I use the cryptodev engine for openssl (1.0.1k)(compiled with the 2 patch 
> found on rt.openssl.org)
> When the module is loaded, I cannot login with ssh on the machine.
> For the moment I cannot see any other problem, my bench/test tool works 
> perfectly with AES/DES for example.

Since I don't use the cryptodev engine driver in openssl, I can hardly
help you there. Also, openssl tests passing but ssh being problematic
sounds strange.

On a side note, it's always preferable to at least include
the mailinglist (cryptodev-linux-devel@gna.org) instead of emailing just
two people.

> I have added some pr_info.

I'll leave that in place due to the added recipient.

Cheers, Phil

> 
> The patch for extra output
> --- ioctl.c.old       2015-02-19 13:55:54.000000000 +0100
> +++ ioctl.c   2015-02-19 13:58:44.000000000 +0100
> @@ -167,6 +167,7 @@
>               ddebug(1, "bad cipher: %d", sop->cipher);
>               return -EINVAL;
>       }
> +     pr_info("Cryptodev: %s\n", alg_name);
> 
>       switch (sop->mac) {
>       case 0:
> @@ -227,6 +228,7 @@
>               ddebug(1, "bad mac: %d", sop->mac);
>               return -EINVAL;
>       }
> +     pr_info("Cryptodev: %s\n", hash_name);
> 
>       /* Create a session and put it to the list. */
>       ses_new = kzalloc(sizeof(*ses_new), GFP_KERNEL);
> @@ -452,6 +454,7 @@
>       struct todo_list_item *tmp, *tmp_next;
>       struct crypt_priv *pcr;
>       int i;
> +     pr_info("Cryptodev: open\n");
> 
>       pcr = kzalloc(sizeof(*pcr), GFP_KERNEL);
>       if (!pcr)
> @@ -506,6 +509,7 @@
>       struct crypt_priv *pcr = filp->private_data;
>       struct todo_list_item *item, *item_safe;
>       int items_freed = 0;
> +     pr_info("Cryptodev: release\n");
> 
>       if (!pcr)
>               return 0;
> 
> dmesg output after the ssh try
> [254566.508809] cryptodev: driver 1.7 loaded.
> [254572.181674] Cryptodev: open
> [254572.181853] Cryptodev: cbc(des)
> [254572.181866] Cryptodev: (null)
> [254572.181990] Cryptodev: cbc(des3_ede)
> [254572.182002] Cryptodev: (null)
> [254572.182067] Cryptodev: cbc(aes)
> [254572.182078] Cryptodev: (null)
> [254572.182125] Cryptodev: cbc(aes)
> [254572.182134] Cryptodev: (null)
> [254572.182173] Cryptodev: cbc(aes)
> [254572.182183] Cryptodev: (null)
> [254572.182222] Cryptodev: cbc(blowfish)
> [254572.182231] Cryptodev: (null)
> [254572.203326] Cryptodev: (null)
> [254572.203349] Cryptodev: md5
> [254572.203431] Cryptodev: (null)
> [254572.203441] Cryptodev: sha1
> [254572.203477] Cryptodev: (null)
> [254572.203487] Cryptodev: sha256
> [254572.203521] Cryptodev: (null)
> [254572.203530] Cryptodev: sha384
> [254572.203566] Cryptodev: (null)
> [254572.203575] Cryptodev: sha512
> [254572.203717] Cryptodev: cbc(des)
> [254572.203729] Cryptodev: (null)
> [254572.203806] Cryptodev: cbc(des3_ede)
> [254572.203816] Cryptodev: (null)
> [254572.203878] Cryptodev: cbc(aes)
> [254572.203890] Cryptodev: (null)
> [254572.203934] Cryptodev: cbc(aes)
> [254572.203943] Cryptodev: (null)
> [254572.203982] Cryptodev: cbc(aes)
> [254572.203991] Cryptodev: (null)
> [254572.204029] Cryptodev: cbc(blowfish)
> [254572.204038] Cryptodev: (null)
> [254572.225149] Cryptodev: (null)
> [254572.225173] Cryptodev: md5
> [254572.225256] Cryptodev: (null)
> [254572.225268] Cryptodev: sha1
> [254572.225305] Cryptodev: (null)
> [254572.225315] Cryptodev: sha256
> [254572.225347] Cryptodev: (null)
> [254572.225356] Cryptodev: sha384
> [254572.225390] Cryptodev: (null)
> [254572.225399] Cryptodev: sha512
> [254572.225448] Cryptodev: cbc(des)
> [254572.225457] Cryptodev: (null)
> [254572.225530] Cryptodev: cbc(des3_ede)
> [254572.225541] Cryptodev: (null)
> [254572.225598] Cryptodev: cbc(aes)
> [254572.225608] Cryptodev: (null)
> [254572.225653] Cryptodev: cbc(aes)
> [254572.225662] Cryptodev: (null)
> [254572.225700] Cryptodev: cbc(aes)
> [254572.225710] Cryptodev: (null)
> [254572.225748] Cryptodev: cbc(blowfish)
> [254572.225757] Cryptodev: (null)
> [254572.246936] Cryptodev: (null)
> [254572.246959] Cryptodev: md5
> [254572.247045] Cryptodev: (null)
> [254572.247055] Cryptodev: sha1
> [254572.247093] Cryptodev: (null)
> [254572.247102] Cryptodev: sha256
> [254572.247135] Cryptodev: (null)
> [254572.247144] Cryptodev: sha384
> [254572.247178] Cryptodev: (null)
> [254572.247187] Cryptodev: sha512
> [254572.247447] Cryptodev: cbc(des)
> [254572.247461] Cryptodev: (null)
> [254572.247547] Cryptodev: cbc(des3_ede)
> [254572.247557] Cryptodev: (null)
> [254572.247623] Cryptodev: cbc(aes)
> [254572.247634] Cryptodev: (null)
> [254572.247680] Cryptodev: cbc(aes)
> [254572.247689] Cryptodev: (null)
> [254572.247729] Cryptodev: cbc(aes)
> [254572.247738] Cryptodev: (null)
> [254572.247777] Cryptodev: cbc(blowfish)
> [254572.247786] Cryptodev: (null)
> [254572.268850] Cryptodev: (null)
> [254572.268873] Cryptodev: md5
> [254572.268961] Cryptodev: (null)
> [254572.268973] Cryptodev: sha1
> [254572.269009] Cryptodev: (null)
> [254572.269019] Cryptodev: sha256
> [254572.269052] Cryptodev: (null)
> [254572.269062] Cryptodev: sha384
> [254572.269095] Cryptodev: (null)
> [254572.269105] Cryptodev: sha512
> [254572.271396] Cryptodev: (null)
> [254572.271417] Cryptodev: sha1
> [254572.271556] Cryptodev: (null)
> [254572.271568] Cryptodev: sha1
> [254572.271654] Cryptodev: (null)
> [254572.271664] Cryptodev: sha1
> [254572.271749] Cryptodev: (null)
> [254572.271760] Cryptodev: sha1
> [254572.271843] Cryptodev: (null)
> [254572.271854] Cryptodev: sha1
> [254572.279764] Cryptodev: (null)
> [254572.279791] Cryptodev: sha1
> [254572.279975] Cryptodev: (null)
> [254572.279989] Cryptodev: sha1
> [254572.280072] Cryptodev: (null)
> [254572.280084] Cryptodev: sha1
> [254572.280155] Cryptodev: (null)
> [254572.280165] Cryptodev: sha1
> [254572.280232] Cryptodev: (null)
> [254572.280241] Cryptodev: sha1
> [254572.280306] Cryptodev: (null)
> [254572.280316] Cryptodev: sha1
> [254572.280381] Cryptodev: (null)
> [254572.280390] Cryptodev: sha1
> [254572.280454] Cryptodev: (null)
> [254572.280464] Cryptodev: sha1
> [254572.280528] Cryptodev: (null)
> [254572.280538] Cryptodev: sha1
> [254572.280602] Cryptodev: (null)
> [254572.280611] Cryptodev: sha1
> [254572.280676] Cryptodev: (null)
> [254572.280685] Cryptodev: sha1
> [254572.280749] Cryptodev: (null)
> [254572.280759] Cryptodev: sha1
> [254572.280823] Cryptodev: (null)
> [254572.280833] Cryptodev: sha1
> [254572.280896] Cryptodev: (null)
> [254572.280906] Cryptodev: sha1
> [254572.280970] Cryptodev: (null)
> [254572.280980] Cryptodev: sha1
> [254572.281043] Cryptodev: (null)
> [254572.281053] Cryptodev: sha1
> [254572.281117] Cryptodev: (null)
> [254572.281127] Cryptodev: sha1
> [254572.281190] Cryptodev: (null)
> [254572.281200] Cryptodev: sha1
> [254572.281264] Cryptodev: (null)
> [254572.281274] Cryptodev: sha1
> [254572.281337] Cryptodev: (null)
> [254572.281347] Cryptodev: sha1
> [254572.281411] Cryptodev: (null)
> [254572.281421] Cryptodev: sha1
> [254572.281485] Cryptodev: (null)
> [254572.281494] Cryptodev: sha1
> [254572.281558] Cryptodev: (null)
> [254572.281568] Cryptodev: sha1
> [254572.281631] Cryptodev: (null)
> [254572.281641] Cryptodev: sha1
> [254572.281705] Cryptodev: (null)
> [254572.281714] Cryptodev: sha1
> [254572.281778] Cryptodev: (null)
> [254572.281788] Cryptodev: sha1
> [254572.281851] Cryptodev: (null)
> [254572.281861] Cryptodev: sha1
> [254572.281924] Cryptodev: (null)
> [254572.281934] Cryptodev: sha1
> [254572.281997] Cryptodev: (null)
> [254572.282007] Cryptodev: sha1
> [254572.282071] Cryptodev: (null)
> [254572.282080] Cryptodev: sha1
> [254572.282144] Cryptodev: (null)
> [254572.282154] Cryptodev: sha1
> [254572.282217] Cryptodev: (null)
> [254572.282227] Cryptodev: sha1
> [254572.282290] Cryptodev: (null)
> [254572.282300] Cryptodev: sha1
> [254572.282364] Cryptodev: (null)
> [254572.282374] Cryptodev: sha1
> [254572.282439] Cryptodev: (null)
> [254572.282448] Cryptodev: sha1
> [254572.282512] Cryptodev: (null)
> [254572.282521] Cryptodev: sha1
> [254572.282585] Cryptodev: (null)
> [254572.282595] Cryptodev: sha1
> [254572.282660] Cryptodev: (null)
> [254572.282670] Cryptodev: sha1
> [254572.282733] Cryptodev: (null)
> [254572.282742] Cryptodev: sha1
> [254572.282806] Cryptodev: (null)
> [254572.282816] Cryptodev: sha1
> [254572.282879] Cryptodev: (null)
> [254572.282889] Cryptodev: sha1
> [254572.282953] Cryptodev: (null)
> [254572.282963] Cryptodev: sha1
> [254572.283026] Cryptodev: (null)
> [254572.283036] Cryptodev: sha1
> [254572.283100] Cryptodev: (null)
> [254572.283109] Cryptodev: sha1
> [254572.283172] Cryptodev: (null)
> [254572.283182] Cryptodev: sha1
> [254572.283246] Cryptodev: (null)
> [254572.283255] Cryptodev: sha1
> [254572.283319] Cryptodev: (null)
> [254572.283328] Cryptodev: sha1
> [254572.283393] Cryptodev: (null)
> [254572.283403] Cryptodev: sha1
> [254572.283466] Cryptodev: (null)
> [254572.283476] Cryptodev: sha1
> [254572.283540] Cryptodev: (null)
> [254572.283549] Cryptodev: sha1
> [254572.283614] Cryptodev: (null)
> [254572.283624] Cryptodev: sha1
> [254572.283687] Cryptodev: (null)
> [254572.283697] Cryptodev: sha1
> [254572.283761] Cryptodev: (null)
> [254572.283771] Cryptodev: sha1
> [254572.283836] Cryptodev: (null)
> [254572.283845] Cryptodev: sha1
> [254572.283902] Cryptodev: (null)
> [254572.283912] Cryptodev: sha1
> [254572.283968] Cryptodev: (null)
> [254572.283978] Cryptodev: sha1
> [254572.284032] Cryptodev: (null)
> [254572.284042] Cryptodev: sha1
> [254572.284097] Cryptodev: (null)
> [254572.284106] Cryptodev: sha1
> [254572.284161] Cryptodev: (null)
> [254572.284171] Cryptodev: sha1
> [254572.284226] Cryptodev: (null)
> [254572.284236] Cryptodev: sha1
> [254572.284291] Cryptodev: (null)
> [254572.284300] Cryptodev: sha1
> [254572.284355] Cryptodev: (null)
> [254572.284365] Cryptodev: sha1
> [254572.284419] Cryptodev: (null)
> [254572.284429] Cryptodev: sha1
> [254572.284484] Cryptodev: (null)
> [254572.284494] Cryptodev: sha1
> [254572.284548] Cryptodev: (null)
> [254572.284558] Cryptodev: sha1
> [254572.284612] Cryptodev: (null)
> [254572.284622] Cryptodev: sha1
> [254572.284675] Cryptodev: (null)
> [254572.284685] Cryptodev: sha1
> [254572.284740] Cryptodev: (null)
> [254572.284750] Cryptodev: sha1
> [254572.284805] Cryptodev: (null)
> [254572.284814] Cryptodev: sha1
> [254572.284868] Cryptodev: (null)
> [254572.284877] Cryptodev: sha1
> [254572.284935] Cryptodev: (null)
> [254572.285086] Cryptodev: sha1
> [254572.285190] Cryptodev: (null)
> [254572.285211] Cryptodev: sha1
> [254572.285281] Cryptodev: (null)
> [254572.285302] Cryptodev: sha1
> [254572.285367] Cryptodev: (null)
> [254572.285387] Cryptodev: sha1
> [254572.285453] Cryptodev: (null)
> [254572.285473] Cryptodev: sha1
> [254572.285539] Cryptodev: (null)
> [254572.285559] Cryptodev: sha1
> [254572.285621] Cryptodev: (null)
> [254572.285641] Cryptodev: sha1
> [254572.285707] Cryptodev: (null)
> [254572.285718] Cryptodev: sha1
> [254572.285775] Cryptodev: (null)
> [254572.285786] Cryptodev: sha1
> [254572.290487] Cryptodev: (null)
> [254572.290511] Cryptodev: sha1
> [254572.325147] Cryptodev: (null)
> [254572.325176] Cryptodev: sha1
> [254572.325388] Cryptodev: (null)
> [254572.325402] Cryptodev: sha1
> [254572.325511] Cryptodev: (null)
> [254572.325523] Cryptodev: sha1
> [254572.325587] Cryptodev: (null)
> [254572.325597] Cryptodev: sha1
> [254572.325694] Cryptodev: (null)
> [254572.325705] Cryptodev: sha1
> [254572.325826] Cryptodev: (null)
> [254572.325838] Cryptodev: sha1
> [254572.325926] Cryptodev: (null)
> [254572.325937] Cryptodev: sha1
> [254572.325994] Cryptodev: (null)
> [254572.326004] Cryptodev: sha1
> [254572.326056] Cryptodev: (null)
> [254572.326067] Cryptodev: sha1
> [254572.326119] Cryptodev: (null)
> [254572.326128] Cryptodev: sha1
> [254572.326296] Cryptodev: (null)
> [254572.326308] Cryptodev: sha1
> [254572.326370] Cryptodev: (null)
> [254572.326381] Cryptodev: sha1
> [254572.326438] Cryptodev: (null)
> [254572.326448] Cryptodev: sha1
> [254572.326502] Cryptodev: (null)
> [254572.326512] Cryptodev: sha1
> [254572.326566] Cryptodev: (null)
> [254572.326576] Cryptodev: sha1
> [254572.326630] Cryptodev: (null)
> [254572.326639] Cryptodev: sha1
> [254572.326693] Cryptodev: (null)
> [254572.326703] Cryptodev: sha1
> [254572.326757] Cryptodev: (null)
> [254572.326766] Cryptodev: sha1
> [254572.326819] Cryptodev: (null)
> [254572.326829] Cryptodev: sha1
> [254572.326883] Cryptodev: (null)
> [254572.326892] Cryptodev: sha1
> [254572.326945] Cryptodev: (null)
> [254572.326955] Cryptodev: sha1
> [254572.327008] Cryptodev: (null)
> [254572.327018] Cryptodev: sha1
> [254572.327071] Cryptodev: (null)
> [254572.327081] Cryptodev: sha1
> [254572.327134] Cryptodev: (null)
> [254572.327144] Cryptodev: sha1
> [254572.327197] Cryptodev: (null)
> [254572.327207] Cryptodev: sha1
> [254572.327260] Cryptodev: (null)
> [254572.327270] Cryptodev: sha1
> [254572.327323] Cryptodev: (null)
> [254572.327332] Cryptodev: sha1
> [254572.327386] Cryptodev: (null)
> [254572.327395] Cryptodev: sha1
> [254572.327448] Cryptodev: (null)
> [254572.327458] Cryptodev: sha1
> [254572.327511] Cryptodev: (null)
> [254572.327521] Cryptodev: sha1
> [254572.327574] Cryptodev: (null)
> [254572.327583] Cryptodev: sha1
> [254572.327636] Cryptodev: (null)
> [254572.327646] Cryptodev: sha1
> [254572.327699] Cryptodev: (null)
> [254572.327709] Cryptodev: sha1
> [254572.327762] Cryptodev: (null)
> [254572.327771] Cryptodev: sha1
> [254572.327824] Cryptodev: (null)
> [254572.327833] Cryptodev: sha1
> [254572.327886] Cryptodev: (null)
> [254572.327896] Cryptodev: sha1
> [254572.327949] Cryptodev: (null)
> [254572.327958] Cryptodev: sha1
> [254572.328012] Cryptodev: (null)
> [254572.328021] Cryptodev: sha1
> [254572.328074] Cryptodev: (null)
> [254572.328084] Cryptodev: sha1
> [254572.328136] Cryptodev: (null)
> [254572.328146] Cryptodev: sha1
> [254572.328199] Cryptodev: (null)
> [254572.328208] Cryptodev: sha1
> [254572.328262] Cryptodev: (null)
> [254572.328271] Cryptodev: sha1
> [254572.328324] Cryptodev: (null)
> [254572.328334] Cryptodev: sha1
> [254572.328388] Cryptodev: (null)
> [254572.328398] Cryptodev: sha1
> [254572.328451] Cryptodev: (null)
> [254572.328461] Cryptodev: sha1
> [254572.328514] Cryptodev: (null)
> [254572.328524] Cryptodev: sha1
> [254572.328577] Cryptodev: (null)
> [254572.328587] Cryptodev: sha1
> [254572.328640] Cryptodev: (null)
> [254572.328650] Cryptodev: sha1
> [254572.328703] Cryptodev: (null)
> [254572.328712] Cryptodev: sha1
> [254572.328766] Cryptodev: (null)
> [254572.328775] Cryptodev: sha1
> [254572.328828] Cryptodev: (null)
> [254572.328838] Cryptodev: sha1
> [254572.328891] Cryptodev: (null)
> [254572.328901] Cryptodev: sha1
> [254572.328954] Cryptodev: (null)
> [254572.328964] Cryptodev: sha1
> [254572.329017] Cryptodev: (null)
> [254572.329026] Cryptodev: sha1
> [254572.329080] Cryptodev: (null)
> [254572.329089] Cryptodev: sha1
> [254572.329142] Cryptodev: (null)
> [254572.329151] Cryptodev: sha1
> [254572.329205] Cryptodev: (null)
> [254572.329214] Cryptodev: sha1
> [254572.329267] Cryptodev: (null)
> [254572.329277] Cryptodev: sha1
> [254572.329330] Cryptodev: (null)
> [254572.329340] Cryptodev: sha1
> [254572.329393] Cryptodev: (null)
> [254572.329403] Cryptodev: sha1
> [254572.329456] Cryptodev: (null)
> [254572.329465] Cryptodev: sha1
> [254572.329518] Cryptodev: (null)
> [254572.329527] Cryptodev: sha1
> [254572.378842] audit: type=1326 audit(1424351817.165:14): auid=0 uid=22 
> gid=22 ses=9 pid=22247 comm="sshd" exe="/usr/sbin/sshd" sig=31 arch=40000028 
> syscall=54 compat=0 ip=0xb6c0909c code=0x0
> [254572.380822] Cryptodev: release

_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to