Bug 2094045

Summary: mm: Fix stall observed when xfs calls alloc_pages_bulk_array()
Product: Red Hat Enterprise Linux 9 Reporter: Eric Sandeen <esandeen>
Component: kernelAssignee: Joel Savitz <jsavitz>
kernel sub component: Memory Management QA Contact: Li Wang <liwan>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: arozansk, ddutile, liwan
Version: 9.0Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-5.14.0-126.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:07:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Sandeen 2022-06-06 16:29:08 UTC
Description of problem:

A bug was reported on the kernel.org bugzilla at https://bugzilla.kernel.org/show_bug.cgi?id=216007 in which XFS was observed to stall or hang when extracting a large number of files from a tar archive.

Eventually, the behavior change was bisected to

c9fa563072e13337713a441cf30171feb4e96e6d is the first bad commit
commit c9fa563072e13337713a441cf30171feb4e96e6d
Author: Dave Chinner <dchinner>
Date:   Tue Jun 1 13:40:36 2021 +1000

    xfs: use alloc_pages_bulk_array() for buffers

which landed upstream in v5.14.  Subsequent debugging identified a flaw in alloc_pages_bulk_array() itself, introduced in:

387ba26fb1cb ("mm/page_alloc: add a bulk page allocator")

A patch was submitted upstream to resolve this, at

https://lore.kernel.org/all/20220526091210.GC3441@techsingularity.net/

("mm/page_alloc: Always attempt to allocate at least one page during bulk allocation")

It would be good to fix this in RHEL9 once the patch lands upstream, maybe even considering 9.0.z.

Thanks,
-Eric

Comment 4 Joel Savitz 2022-06-10 00:15:45 UTC
Oops, double comment due to my attempt to correct a typo. Pls ignore

Comment 17 errata-xmlrpc 2022-11-15 11:07:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: kernel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8267