Fixing a Last Resort AG in xfs_filestream_pick_ag
CVE-2024-50216
What is CVE-2024-50216?
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix finding a last resort AG in xfs_filestream_pick_ag
When the main loop in xfs_filestream_pick_ag fails to find a suitable AG it tries to just pick the online AG. But the loop for that uses args->pag as loop iterator while the later code expects pag to be set. Fix this by reusing the max_pag case for this last resort, and also add a check for impossible case of no AG just to make sure that the uninitialized pag doesn't even escape in theory.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
Linux f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 < 77ddc732416b017180893cbb2356e9f0a414c575
Linux f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6
Linux f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6