[LU-16222] RHEL 8.7 support Created: 06/Oct/22  Updated: 16/Nov/22  Resolved: 02/Nov/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0, Lustre 2.12.10, Lustre 2.15.2

Type: Improvement Priority: Minor
Reporter: Jian Yu Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File ext4-pdirop.patch    
Issue Links:
Related
is related to LU-16304 kernel update [RHEL8.7 4.18.0-425.3.1... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

Red Hat Enterprise Linux 8.7 Beta release is available:
https://access.redhat.com/announcements/6977526
Kernel version: 4.18.0-423.el8



 Comments   
Comment by Jian Yu [ 11/Oct/22 ]

The following ldiskfs patches have conflicts with kernel 4.18.0-423.el8:
- rhel8.3/ext4-misc.patch
- rhel8.3/ext4-mballoc-extra-checks.patch
- rhel7.6/ext4-mballoc-pa-free-mismatch.patch
- rhel8.4/ext4-pdirop.patch
- rhel8.3/ext4-corrupted-inode-block-bitmaps-handling-patches.patch
- rhel8/ext4-mballoc-skip-uninit-groups-cr0.patch
- rhel8.1/ext4-mballoc-prefetch.patch
- rhel8.5/ext4-filename-encode.patch

Comment by Jian Yu [ 11/Oct/22 ]

The main conflict is in ext4-pdirop.patch.
RHEL 8.7 kernel 4.18.0-423.el8 contains the following change from Linux kernel 5.18:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3ba733f879c2a88910744647e41edeefbc0d92b2

commit 3ba733f879c2a88910744647e41edeefbc0d92b2
Author:     Jan Kara <jack@suse.cz>
AuthorDate: Wed May 18 11:33:29 2022 +0200
Commit:     Theodore Ts'o <tytso@mit.edu>
CommitDate: Tue May 24 15:34:13 2022 -0400

    ext4: avoid cycles in directory h-tree
    
    A maliciously corrupted filesystem can contain cycles in the h-tree
    stored inside a directory. That can easily lead to the kernel corrupting
    tree nodes that were already verified under its hands while doing a node
    split and consequently accessing unallocated memory. Fix the problem by
    verifying traversed block numbers are unique.
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Jan Kara <jack@suse.cz>
    Link: https://lore.kernel.org/r/20220518093332.13986-2-jack@suse.cz
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>

The change made ext4-pdirop.patch have conflicts in dx_probe() in fs/ext4/namei.c.
Hi bzzz, I'm not sure if I can understand the pdirops codes in a short time and resolve the conflicts correctly. Could you please help with creating an updated ext4-pdirop.patch against kernel 5.18? I will incorporate the patch into RHEL 8.7 support patch.

Comment by James A Simmons [ 11/Oct/22 ]

I think this patch is needed for Ubuntu platform as well.

Comment by Alex Zhuravlev [ 12/Oct/22 ]

yujian where can I find : 4.18.0-423 source RPM ?

Comment by Jian Yu [ 12/Oct/22 ]

Hi bzzz, I just uploaded it to /scratch/kernel-source/ on trevis cluster:

/scratch/kernel-source/kernel-4.18.0-423.el8.src.rpm
Comment by Alex Zhuravlev [ 13/Oct/22 ]

@Jian, please try the patch attached.

Comment by Jian Yu [ 14/Oct/22 ]

Thank you bzzz. The attached patch can be applied without conflict. I'm resolving the conflicts in other patches.

Comment by Gerrit Updater [ 15/Oct/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/48879
Subject: LU-16222 kernel: RHEL 8.7 client and server support
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 36b582790b483f7aa9dfea262b566165b1ce450d

Comment by Gerrit Updater [ 25/Oct/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/48941
Subject: LU-16222 tests: full group testing on RHEL 8.7
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: aabfa3b40033baa5c0511775e97d89af301d3b95

Comment by Gerrit Updater [ 31/Oct/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/48993
Subject: LU-16222 kernel: RHEL 8.7 client and server support
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: b240f50394566698376f280ddd1a438262b078cf

Comment by Gerrit Updater [ 01/Nov/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49002
Subject: LU-16222 kernel: RHEL 8.7 client support
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: f5da03e27ff9b8f1eec48401fc1ee1f307e199f6

Comment by Gerrit Updater [ 02/Nov/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48879/
Subject: LU-16222 kernel: RHEL 8.7 client and server support
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 293844d132b79a1d256ed4200d5dbd8bb790bfb4

Comment by Peter Jones [ 02/Nov/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 08/Nov/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48993/
Subject: LU-16222 kernel: RHEL 8.7 client and server support
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 29aa9f6e0c1d1affe11ca33d2e26122d0c66c713

Comment by Gerrit Updater [ 09/Nov/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49002/
Subject: LU-16222 kernel: RHEL 8.7 client support
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 60c2827ed495ba5061838aa42f7144fabc0311ad

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