Whamcloud - gitweb
LU-13783 sec: support of native Ubuntu 20.04 HWE 5.8 kernel 38/46238/10
authorJames Simmons <jsimmons@infradead.org>
Thu, 17 Feb 2022 13:44:22 +0000 (06:44 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:32:48 +0000 (05:32 +0000)
commitbf2461ba145efdfc7d1516a1608a034b1d6e30a2
tree94912937e959d83b1898a4b0912ad080f4c44ec1
parent5cb722c384077dd2469763a4f70a72bed555c8db
LU-13783 sec: support of native Ubuntu 20.04 HWE 5.8 kernel

For Linux 5.5 kernel a patch to improve nokey names was landed
that removed several variables that Lustre's llite and mdt layer
were using. Rework the code to use other defines that exist.
Second change for Ubuntu is several backports to handle a few
variables changing across different kernel versions. One is the name
change of DCACHE_ENCRYPTED_NAME and the other being
is_chipertext_name. So the simpler approach Ubuntu took was to use
fscrypt_prepare_lookup() and fscrypt_is_nokey_name() to work
around these changes. Lastly the good news is for 5.12 the
stomping of ll_d_ops no longer happens and the special
revalidate_dentry fscrypto function is exported.

Change-Id: I7f70fe9abddf34798e2e01b35099c9a032d92b91
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/46238
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
15 files changed:
libcfs/libcfs/module.c
lustre/autoconf/lustre-core.m4
lustre/include/lustre_crypto.h
lustre/include/lustre_disk.h
lustre/llite/crypto.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/mdt/mdt_handler.c
lustre/obdclass/cl_io.c
lustre/obdclass/obd_mount.c
lustre/tests/sanity-sec.sh
lustre/utils/mount_lustre.c