[LU-14651] Linux kernel 5.12 support Created: 29/Apr/21  Updated: 25/Dec/23  Resolved: 26/Jan/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.0
Fix Version/s: Lustre 2.15.0

Type: Improvement Priority: Major
Reporter: James A Simmons Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: None
Environment:

Any system running 5.12 kernel.


Issue Links:
Related
is related to LU-12511 Prepare lustre for adoption into the ... Open
is related to LU-15220 Linux kernel 5.14 support Resolved
Rank (Obsolete): 9223372036854775807

 Description   

The 5.12 Linux kernel has just been released. Moving the native Linux client to this version exposed various kernel API changes:

1) Support of IDMAPPED mounts. The impact on Lustre is struct user_namespace is passed to all VFS operations.  You can read about this feature at - https://lwn.net/Articles/842423

2) fscrypto API has been reworked.

3) Linux kernel will not build UAPI headers with our CONF_T_* values.

4) rdma_reject() returns an error string to print out.

5) setsockopt uses a new sockptr_t abstract to handle both userland and kernel space at the same tim.



 Comments   
Comment by Gerrit Updater [ 29/Apr/21 ]

James Simmons (jsimmons@infradead.org) uploaded a new patch: https://review.whamcloud.com/43494
Subject: LU-14651 uapi: rename CONFIG_T_* to CFG_T_*
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8bab4d03a3335bc6e36b439dba918f714fe0970d

Comment by Gerrit Updater [ 19/May/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43494/
Subject: LU-14651 uapi: rename CONFIG_T_* to MGS_CFG_T_*
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4d5a2eba617780eadf172cb5c1fc28d5ab023a97

Comment by Andreas Dilger [ 11/Sep/21 ]

Is there more to be done for the 5.12 kernel to work on the client? it would be good to add this to lustre/Changelog.

Comment by Jian Yu [ 05/Nov/21 ]

Hi James,

1) Support of IDMAPPED mounts. The impact on Lustre is struct user_namespace is passed to all VFS operations. You can read about this feature at - https://lwn.net/Articles/842423

Are you working on this? I'm also hitting this issue and working on it.

Comment by Gerrit Updater [ 09/Dec/21 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45805
Subject: LU-14651 libcfs: use namespace CRYPTO_INTERNAL
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a984bc88e72480a8e666fafc16aed1f68c73644e

Comment by Gerrit Updater [ 24/Dec/21 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45938
Subject: LU-14651 llite: extend inode methods with user namespace arg
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b393991277c997fc3d152144c9888359a8ff8fdf

Comment by Gerrit Updater [ 06/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45805/
Subject: LU-14651 libcfs: use namespace CRYPTO_INTERNAL
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 67e1017da0e5c71367336ccb77c4cb6f1fbc0e88

Comment by Gerrit Updater [ 12/Jan/22 ]

"James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/46054
Subject: LU-14651: uapi: fix gcc11 -Werror=stringop-overread
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 606273981d5ebabd4155bc5ab0fce5cad0c86854

Comment by James A Simmons [ 12/Jan/22 ]

With the patches in this ticket I can get Ubuntu 21 5.13 kernel clients working.

Comment by Gerrit Updater [ 12/Jan/22 ]

"James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/46070
Subject: LU-14651 build: remove KALLSYMS build requirement
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2901a756a1496e809627ad0d2e195256b8afbd4f

Comment by Gerrit Updater [ 20/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45938/
Subject: LU-14651 llite: extend inode methods with user namespace arg
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0feec5a3c7d4518d5c563739124b202a6a0a99f7

Comment by Gerrit Updater [ 26/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46070/
Subject: LU-14651 build: remove KALLSYMS build requirement
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8e04e4ff8a1d0807d107a65a2c1bf76aea9b4ce5

Comment by Peter Jones [ 26/Jan/22 ]

Landed for 2.15

Comment by Jian Yu [ 11/Feb/22 ]

Hi simmonsja,

With the patches in this ticket I can get Ubuntu 21 5.13 kernel clients working.

After building Lustre codes on an Ubuntu 20.04 VirtualBox vm node with kernel 5.13.0-27-generic, I hit the following error while loading Lustre client module :

# modprobe lustre
modprobe: ERROR: could not insert 'lustre': Exec format error

kernel: [187850.110155] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 00000000cab2976e, val ffffffffc110f9f8

Have you ever hit the above issue?

Comment by James A Simmons [ 09/Jun/22 ]

No I never hit this issue before. Are you still hitting it?

Comment by Jian Yu [ 12/Jun/22 ]

No I never hit this issue before. Are you still hitting it?

The issue is fixed in LU-15939.

Comment by Gerrit Updater [ 07/Jul/22 ]

"James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/47900
Subject: LU-14651 ldiskfs: add 5.11 kernel support
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: fcef425d3bf1236f6a3af7994b306f8425fff453

Comment by Gerrit Updater [ 03/Aug/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47900/
Subject: LU-14651 ldiskfs: add 5.11 kernel support
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7919255685d2080d619df71eecfa1545211b4ddb

Comment by Gerrit Updater [ 19/Dec/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53503
Subject: LU-14651 build: fix build for el7.9 kernels
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cc03199c61df217f7da249d9f9f3419e0333c671

Comment by Gerrit Updater [ 19/Dec/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53504
Subject: LU-14651 build: fix build for el7.9 kernels
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 17f8509fb0779aea1e8f4dc8b2158bd763805e08

Comment by Gerrit Updater [ 20/Dec/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/53503/
Subject: LU-14651 build: fix build for el7.9 kernels
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7815835d21a5c0b6dbc58d9bc9dd823d4952f86f

Comment by Gerrit Updater [ 20/Dec/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/53504/
Subject: LU-14651 build: fix build for el7.9 kernels
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 531b666e4011464939b41fed75653b34b7f78f3e

Comment by Gerrit Updater [ 25/Dec/23 ]

"Xing Huang <hxing@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53549
Subject: LU-14651 llite: extend inode methods with user namespace arg
Project: fs/lustre-release
Branch: b2_14
Current Patch Set: 1
Commit: 03a4dadc28a029aad031501d2a25481d8011e8d4

Generated at Sat Feb 10 03:11:36 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.