Whamcloud - gitweb
LU-13783 sec: support of native Ubuntu 20.04 HWE 5.8 kernel 70/47670/3
authorJames Simmons <jsimmons@infradead.org>
Thu, 23 Jun 2022 06:30:11 +0000 (23:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 5 Jul 2022 22:13:34 +0000 (22:13 +0000)
commitb2608aff6654f329c19414377a898f2d0201435c
tree7b32b97ddc96d1c3774cd1d2fc726ab1bc845418
parent59994aba261d2540e97c3463dc2a7f87c95d0a16
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.

Lustre-change: https://review.whamcloud.com/46238
Lustre-commit: bf2461ba145efdfc7d1516a1608a034b1d6e30a2

Change-Id: I7f70fe9abddf34798e2e01b35099c9a032d92b91
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47670
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@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