Bug 2007890
| Summary: | [RHEL9] blktests block/009 failure | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Ming Lei <minlei> |
| Component: | kernel | Assignee: | Ming Lei <minlei> |
| kernel sub component: | Block Layer | QA Contact: | Zhang Yi <yizhan> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | aquini, esandeen, jmoyer, longman, minlei, mm-maint, storage-qe, yizhan |
| Version: | 9.0 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2001733 | Environment: | |
| Last Closed: | 2022-04-17 06:17:49 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: | |||
| Bug Depends On: | 2001733 | ||
| Bug Blocks: | |||
|
Description
Ming Lei
2021-09-26 00:14:55 UTC
The following patch aimed at v5.15 should address the issue: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?h=block-5.15&id=f278eb3d8178f9c31f8dfad7e91440e603dd7f1a Hi Ming,
This issue may happen a data corruption because the fallocate() can read invalid page caches, right?
So it would be better if the patch can be backported to rhel9 kernel by the GA.
I believe the patch is already merged in v5.15.
f278eb3d8178 block: hold ->invalidate_lock in blkdev_fallocate
$ git describe --contain f278eb3d8178
v5.15-rc3~10^2
$
Thanks,
Masa
(In reply to Masayoshi Mizuma (Fujitsu) from comment #2) > Hi Ming, > > This issue may happen a data corruption because the fallocate() can read > invalid page caches, right? > So it would be better if the patch can be backported to rhel9 kernel by the > GA. > > I believe the patch is already merged in v5.15. > > f278eb3d8178 block: hold ->invalidate_lock in blkdev_fallocate > > $ git describe --contain f278eb3d8178 > v5.15-rc3~10^2 > $ > That depends on 730633f0b7f9 ("mm: Protect operations adding pages to page cache with invalidate_lock") and related patch series. Cc our mm and vfs guys. Thanks, (In reply to Ming Lei from comment #3) [...] > That depends on 730633f0b7f9 ("mm: Protect operations adding pages to page > cache > with invalidate_lock") and related patch series. > We'll be pulling in commit 730633f0b7f9 (and its MM friends) through Bug 2023396 work on the MR for the aforementioned BZ is wrapping up and we intend to soon have it pushed to gitlab. This BZ can be set to depend on 2023396 if commit 730633f0b7f9 is its only requirement. -- Rafael |