[Kernel-packages] [Bug 1790832] Re: crypto/vmx - Backport of Fix sleep-in-atomic bugs patch for 18.04
I finally tested the deb packages and it's working fine. Thanks! -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1790832 Title: crypto/vmx - Backport of Fix sleep-in-atomic bugs patch for 18.04 Status in The Ubuntu-power-systems project: Incomplete Status in linux package in Ubuntu: In Progress Status in linux source package in Xenial: In Progress Status in linux source package in Bionic: In Progress Status in linux source package in Cosmic: In Progress Bug description: == Comment: #0 - Paulo Flabiano Smorigo Please include the following commit in order to fix the sleep-in-atomic bugs in AES-CBC and AES-XTS VMX implementations [1]: 0522236 crypto: vmx - Fix sleep-in-atomic bugs [1] https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/commit/?id=0522236d4f9c5ab2e79889cb020d1acbe5da416e To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-systems/+bug/1790832/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1732978] Re: Ubuntu 17.10: Include patch "crypto: vmx - Use skcipher for ctr fallback"
Did a test with ipsec using kernel 4.13.0-16_4.13.0-16.19 and it's working fine. Thanks! -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1732978 Title: Ubuntu 17.10: Include patch "crypto: vmx - Use skcipher for ctr fallback" Status in The Ubuntu-power-systems project: Incomplete Status in linux package in Ubuntu: In Progress Status in linux source package in Artful: In Progress Bug description: == Comment: #0 - Paulo Flabiano Smorigo - 2017-11-17 10:29:14 == Ubuntu 17.10 uses linux kernel 4.13 witch has a problem with the fallback cipher for CTR mode. The commit bellow fixes this problem by using the new structure for the generic ciphers. Please add it to the kernel package. https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/commit/?id=e666d4e9ceec94c0a88c94b7db31d56474da43b3 == Comment: #1 - VIPIN K. PARASHAR - 2017-11-17 13:38:05 == (In reply to comment #0) > Ubuntu 17.10 uses linux kernel 4.13 witch has a problem with the fallback > cipher for CTR mode. The commit bellow fixes this problem by using the new > structure for the generic ciphers. Please add it to the kernel package. > > https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/ > commit/?id=e666d4e9ceec94c0a88c94b7db31d56474da43b3 Which is commit e666d4e9ceec94 commit e666d4e9ceec94c0a88c94b7db31d56474da43b3 Author: Paulo Flabiano Smorigo Date: Mon Oct 16 20:54:19 2017 -0200 crypto: vmx - Use skcipher for ctr fallback Signed-off-by: Paulo Flabiano Smorigo Signed-off-by: Herbert Xu Its available with 4.14 kernel. Hello Canonical, Please include commit e666d4e9ceec94 - "crypto: vmx - Use skcipher for ctr fallback" with Ubuntu 17.10 kernel. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-systems/+bug/1732978/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1666483] Re: ecryptfs fails to load block cipher on ppc64el
https://git.kernel.org/cgit/linux/kernel/git/herbert/crypto-2.6.git/commit/?id=c96d0a1c47abd5c4fa544dcedb5fac4d020ac58b https://git.kernel.org/cgit/linux/kernel/git/herbert/crypto-2.6.git/commit/?id=5839f555fa576be57371686265206398d9ea1480 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1666483 Title: ecryptfs fails to load block cipher on ppc64el Status in linux package in Ubuntu: Fix Committed Status in linux source package in Zesty: Fix Committed Bug description: Specifically, this is not an ecryptfs issue. ecryptfs attempts to load the CBC AES block cipher and the ppc64el specific vmx_crypto crypto driver gets loaded. However, this is using the older blkcipher API rather than the newer skcipher API as introduced by the following commit in 4.10: commit 79c65d179a40e145287e59b33dc782a7c4bf0986 Author: Herbert Xu Date: Tue Nov 22 20:08:39 2016 +0800 crypto: cbc - Convert to skcipher This patch converts cbc over to the skcipher interface. It also rearranges the code to allow it to be reused by drivers. We see the following error: Feb 20 16:57:53 gulpin kernel: Failed to allocate transformation for 'cbc(aes)': -2 Feb 20 16:57:53 gulpin kernel: ecryptfs_init_crypt_ctx: cryptfs: init_crypt_ctx(): Error initializing cipher [cbc(aes)] Feb 20 16:57:53 gulpin kernel: ecryptfs_new_file_context: Error initializing cryptographic context for cipher [aes]: rc = [-2] Feb 20 16:57:53 gulpin kernel: ecryptfs_initialize_file: Error creating new file context; rc = [-2] Feb 20 16:57:53 gulpin kernel: Failed to allocate transformation for 'cbc(aes)': -2 Loading the software based cbc crypto before starting ecryptfs rather than the optimized vmx_crypto allows ecryptfs to run correctly. So, this core issue is that we need vmx_crypto updated to the newer crypto API to resolve this issue To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1666483/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1666483] Re: ecryptfs fails to load block cipher on ppc64el
I sent the fixes to lkml. I will update here when they get it upstream. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1666483 Title: ecryptfs fails to load block cipher on ppc64el Status in linux package in Ubuntu: Fix Committed Status in linux source package in Zesty: Fix Committed Bug description: Specifically, this is not an ecryptfs issue. ecryptfs attempts to load the CBC AES block cipher and the ppc64el specific vmx_crypto crypto driver gets loaded. However, this is using the older blkcipher API rather than the newer skcipher API as introduced by the following commit in 4.10: commit 79c65d179a40e145287e59b33dc782a7c4bf0986 Author: Herbert Xu Date: Tue Nov 22 20:08:39 2016 +0800 crypto: cbc - Convert to skcipher This patch converts cbc over to the skcipher interface. It also rearranges the code to allow it to be reused by drivers. We see the following error: Feb 20 16:57:53 gulpin kernel: Failed to allocate transformation for 'cbc(aes)': -2 Feb 20 16:57:53 gulpin kernel: ecryptfs_init_crypt_ctx: cryptfs: init_crypt_ctx(): Error initializing cipher [cbc(aes)] Feb 20 16:57:53 gulpin kernel: ecryptfs_new_file_context: Error initializing cryptographic context for cipher [aes]: rc = [-2] Feb 20 16:57:53 gulpin kernel: ecryptfs_initialize_file: Error creating new file context; rc = [-2] Feb 20 16:57:53 gulpin kernel: Failed to allocate transformation for 'cbc(aes)': -2 Loading the software based cbc crypto before starting ecryptfs rather than the optimized vmx_crypto allows ecryptfs to run correctly. So, this core issue is that we need vmx_crypto updated to the newer crypto API to resolve this issue To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1666483/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1596557] Re: Upstream patch "crypto: vmx - IV size failing on skcipher API" for Ubuntu 16.04
I enabled proposed and VMX is working fine using 4.4.0-30.49. Thanks! -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1596557 Title: Upstream patch "crypto: vmx - IV size failing on skcipher API" for Ubuntu 16.04 Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Fix Committed Status in linux source package in Yakkety: Fix Released Bug description: There is a missing patch for 16.04. Recently, we asked the inclusion of 3 patches for the next kernel 16.04 release and all them were accepted: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1592481 I was checking the xenial-next and it's missing a commit from December last year that was merged after 4.4. The commit is 0d3d054b43719: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0d3d054b43719ef33232677ba27ba6097afdafbc It's an important commit since without it the CBC and CTR will fail the sanity check. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1596557/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1592481] Re: VMX kernel crypto module exhibits poor performance in Ubuntu 16.04
Verified. Working fine. Thanks! -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1592481 Title: VMX kernel crypto module exhibits poor performance in Ubuntu 16.04 Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Fix Released Status in linux source package in Yakkety: Fix Released Bug description: ---Problem Description--- Pre-sales customer with loaner P8 observes slow performance of VMX-accelerated kernel crypto, multiple times slower then Haswell. ---uname output--- Linux crimini9 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:30:22 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux Machine Type = unknown ---Steps to Reproduce--- Run cryptsetup benchmark with the VMX crypto module modprobed. Original customer cryptsetup benchmark results on Ubuntu 16.04: Intel i5 core 2500k overclocked at 4.5 GHz w/ 4 cores: aes-xts 256b 1884,2 MiB/s 1952,0 MiB/s aes-cbc 256b 509,1 MiB/s 1724,2 MiB/s Results for xeon e5-2680 at 2.80 Ghz: aes-cbc 256b 392.6 MiB/s 2062.0 MiB/s aes-xts 256b 3853.0 MiB/s 4793.0 MiB/s Results from intel i7 3770 at 3.40 GHz: aes-xts?? 256b??7787.0 MiB/s??7962.0 MiB/s aes-cbc?? 256b?? 662.0 MiB/s??3779.0 MiB/s Power 8 at 4.15Ghz and vmx-crypto loaded (s822L, 16c, powervm) aes-xts 256b 410.7 MiB/s 413.9 MiB/s aes-cbc 256b 300.6 MiB/s 358.7 MiB/s Mirroring to Canonical for their awareness as IBM purses a fix for inclusion in a 16.04 SRU. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1592481/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1613295] Re: AES-XTS poor performance in Ubuntu 16.04
Working as expected. 20 times faster. :) root@xenial:~# uname -a Linux xenial 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:40:06 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux root@xenial:~# cryptsetup benchmark -c aes-xts # Tests are approximate using memory only (no storage IO). # Algorithm | Key | Encryption | Decryption aes-xts 256b 129.1 MiB/s 129.4 MiB/s root@xenial:~# modprobe vmx_crypto root@xenial:~# cryptsetup benchmark -c aes-xts # Tests are approximate using memory only (no storage IO). # Algorithm | Key | Encryption | Decryption aes-xts 256b 2453.1 MiB/s 2521.1 MiB/s /etc/crypo for vmx modules: ghash p8_ghash vmx_crypto 1000 1 passed no shash16 16 xts(aes) p8_aes_xts vmx_crypto 2000 1 passed no blkcipher16 32 64 16 ctr(aes) p8_aes_ctr vmx_crypto 2000 1 passed no blkcipher116 32 16 cbc(aes) p8_aes_cbc vmx_crypto 2000 1 passed no blkcipher16 16 32 16 aesp8_aes vmx_crypto 1000 1 passed no cipher 16 16 32 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1613295 Title: AES-XTS poor performance in Ubuntu 16.04 Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Fix Committed Status in linux source package in Yakkety: Fix Released Bug description: == Comment: #0 - Paulo Flabiano Smorigo - 2016-07-21 09:57:49 == ---Problem Description--- Pre-sales customer observed slow performance of XTS using our system, multiple times slower then Haswell. We work to support it on VMX and managed to increase the performance by 20 times. ---uname output--- N/A ---Additional Hardware Info--- N/A Machine Type = P8 ---Debugger--- A debugger is not configured ---Steps to Reproduce--- N/A Contact Information = Paulo Flabiano Smorigo Stack trace output: no Oops output: no System Dump Info: The system is not configured to capture a system dump. *Additional Instructions for Paulo Flabiano Smorigo : -Post a private note with access information to the machine that the bug is occuring on. -Attach sysctl -a output output to the bug. == Comment: #1 - Paulo Flabiano Smorigo - 2016-07-21 10:02:19 == The necessary patches: http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=11c6e16ee13ab68b8ff04c17ab41611a4fcc5c81 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=c07f5d3da643329f38ff7c2ef2252723453dd9c4 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=16dee78005be9908197c707393a3b6a61a14b4fb To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1613295/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1613295] Re: AES-XTS poor performance in Ubuntu 16.04
** Tags removed: verification-needed-xenial ** Tags added: verification-done -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1613295 Title: AES-XTS poor performance in Ubuntu 16.04 Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Fix Committed Status in linux source package in Yakkety: Fix Released Bug description: == Comment: #0 - Paulo Flabiano Smorigo - 2016-07-21 09:57:49 == ---Problem Description--- Pre-sales customer observed slow performance of XTS using our system, multiple times slower then Haswell. We work to support it on VMX and managed to increase the performance by 20 times. ---uname output--- N/A ---Additional Hardware Info--- N/A Machine Type = P8 ---Debugger--- A debugger is not configured ---Steps to Reproduce--- N/A Contact Information = Paulo Flabiano Smorigo Stack trace output: no Oops output: no System Dump Info: The system is not configured to capture a system dump. *Additional Instructions for Paulo Flabiano Smorigo : -Post a private note with access information to the machine that the bug is occuring on. -Attach sysctl -a output output to the bug. == Comment: #1 - Paulo Flabiano Smorigo - 2016-07-21 10:02:19 == The necessary patches: http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=11c6e16ee13ab68b8ff04c17ab41611a4fcc5c81 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=c07f5d3da643329f38ff7c2ef2252723453dd9c4 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=16dee78005be9908197c707393a3b6a61a14b4fb To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1613295/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1613295] Re: AES-XTS poor performance in Ubuntu 16.04
Canonical, Can you include commit 901d3d4fee83e9407d91e7178048e2fed6c91f6b in order to fix a problem found by Li Zhong? I tested and it's working fine. Thanks! -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1613295 Title: AES-XTS poor performance in Ubuntu 16.04 Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Fix Released Status in linux source package in Yakkety: Fix Released Bug description: == Comment: #0 - Paulo Flabiano Smorigo - 2016-07-21 09:57:49 == ---Problem Description--- Pre-sales customer observed slow performance of XTS using our system, multiple times slower then Haswell. We work to support it on VMX and managed to increase the performance by 20 times. ---uname output--- N/A ---Additional Hardware Info--- N/A Machine Type = P8 ---Debugger--- A debugger is not configured ---Steps to Reproduce--- N/A Contact Information = Paulo Flabiano Smorigo Stack trace output: no Oops output: no System Dump Info: The system is not configured to capture a system dump. *Additional Instructions for Paulo Flabiano Smorigo : -Post a private note with access information to the machine that the bug is occuring on. -Attach sysctl -a output output to the bug. == Comment: #1 - Paulo Flabiano Smorigo - 2016-07-21 10:02:19 == The necessary patches: http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=11c6e16ee13ab68b8ff04c17ab41611a4fcc5c81 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=c07f5d3da643329f38ff7c2ef2252723453dd9c4 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=16dee78005be9908197c707393a3b6a61a14b4fb To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1613295/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1613295] Re: AES-XTS poor performance in Ubuntu 16.04
Tested using 4.4.0-39-generic. Working fine, thanks. ** Tags removed: verification-needed-xenial ** Tags added: verification-done-xenial -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1613295 Title: AES-XTS poor performance in Ubuntu 16.04 Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Fix Committed Status in linux source package in Yakkety: Fix Released Bug description: == Comment: #0 - Paulo Flabiano Smorigo - 2016-07-21 09:57:49 == ---Problem Description--- Pre-sales customer observed slow performance of XTS using our system, multiple times slower then Haswell. We work to support it on VMX and managed to increase the performance by 20 times. ---uname output--- N/A ---Additional Hardware Info--- N/A Machine Type = P8 ---Debugger--- A debugger is not configured ---Steps to Reproduce--- N/A Contact Information = Paulo Flabiano Smorigo Stack trace output: no Oops output: no System Dump Info: The system is not configured to capture a system dump. *Additional Instructions for Paulo Flabiano Smorigo : -Post a private note with access information to the machine that the bug is occuring on. -Attach sysctl -a output output to the bug. == Comment: #1 - Paulo Flabiano Smorigo - 2016-07-21 10:02:19 == The necessary patches: http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=11c6e16ee13ab68b8ff04c17ab41611a4fcc5c81 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=c07f5d3da643329f38ff7c2ef2252723453dd9c4 http://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=16dee78005be9908197c707393a3b6a61a14b4fb To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1613295/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp