[LU-8602] Support GSS crypto code with linux 4.6 kernels Created: 12/Sep/16 Updated: 17/Nov/18 Resolved: 17/Nov/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | James A Simmons | Assignee: | James A Simmons |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Any system using GSS and a linux kernel 4.6 and above. |
||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||||||||||
| Description |
|
Currently the GSS code for Lustre directly uses the linux crypto API. This code uses struct crypto_hash which has now been removed in newer kernels for struct crypto_ahash. Libcfs crypto API has moved to this new kernel API but it doesn't have support for the algos that GSS wants to use. So the first question to ask is does GSS move to libcfs crypto API and we expand support in the libcfs crypto API to AES and DEC or do we ignore libcfs crypto API and just use the linux crypto api directly and use the newer ahash api. |
| Comments |
| Comment by Peter Jones [ 12/Sep/16 ] |
|
Thanks for your efforts here James |
| Comment by Gerrit Updater [ 20/Oct/16 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: http://review.whamcloud.com/23289 |
| Comment by James A Simmons [ 20/Oct/16 ] |
|
Now that the GSS code has settled down I have create the linux 4.6 port. Its only a compile test since I don't have a GSS security setup to really test. |
| Comment by Gerrit Updater [ 31/Jan/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/23289/ |
| Comment by Gerrit Updater [ 01/Aug/17 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/28309 |
| Comment by Gerrit Updater [ 17/Dec/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25199/ |
| Comment by Olaf Faaland [ 30/Jan/18 ] |
|
There is an bug in the autoconf code for LC_CONFIG_GSS; if LC_HAVE_CRYPTO_HASH sets enable_gss to no, but gss_conf_test==success, enable_gss is set back to yes and the build fails. Should I submit a patch? That code will go away when "gss: Properly port gss to newer crypto api" is landed, but I assume the latter will not be backported to 2.10 whereas the autoconf fix could be. |
| Comment by Gerrit Updater [ 31/Jan/18 ] |
|
Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/31095 |
| Comment by Gerrit Updater [ 06/Feb/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31095/ |
| Comment by Jeremy Filizetti [ 06/Feb/18 ] |
|
The patch at https://review.whamcloud.com/31095 breaks the ability to build SSK due to a script error: checking for krb5_derive_key in -lgssapi_krb5... no This is due to the second part of the if statement after the &&: This should probably be |
| Comment by Gerrit Updater [ 07/Feb/18 ] |
|
Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/31191 |
| Comment by Gerrit Updater [ 14/Feb/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31191/ |
| Comment by Peter Jones [ 11/Oct/18 ] |
|
James Have you tried this recently? How does GSS behave with Ubuntu 18.04 clients? Peter |
| Comment by Gerrit Updater [ 26/Oct/18 ] |
|
Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/33493 |
| Comment by Gerrit Updater [ 06/Nov/18 ] |
|
Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/33592 |
| Comment by James A Simmons [ 09/Nov/18 ] |
|
Sebastien I got everything to work on Ubuntu/Debian |
| Comment by Gerrit Updater [ 13/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/28309/ |
| Comment by Gerrit Updater [ 13/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33493/ |
| Comment by Gerrit Updater [ 17/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33592/ |