selftests/mm/memory-failure: check that fsync() reports hard-poisoned dirty page-cache
Subsystems (4)
Andrew Morton
maintainerPATCH 1/9 selftests/mm/memory-failure: check that fsync() reports hard-poisoned dirty page-cache
From: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: check that fsync() reports hard-poisoned dirty page-cache
Date: Mon, 23 Nov 2026 23:18:44 -0800
MADV_HWPOISON on a dirty page-cache page records -EIO in the mapping. The test currently requires close() to succeed but never checks whether the error was reported. Filesystems with ->flush() may return EIO from close(), while those without it can leave the error unnoticed.
Require fsync() to return EIO after hard poisoning. It consumes the mapping error before close(), allowing the NFS skip to go. The clean and dirty page-cache cases also skip tmpfs, ramfs and hugetlbfs because they have no backing store from which to reread a poisoned clean page.
With the complete selftest patch stack under x86_64 QEMU, ext4, FUSE and NFSv4.2 reported 10 passes; NILFS2 reported 9 passes and 1 skip. The FUSE server used for this test was a minimal server, not virtiofs.
tools/testing/selftests/mm/memory-failure.c | 38 ++++++++++++++---- 1 file changed, 30 insertions(+), 8 deletions(-)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache +30 -8
@@ -300,6 +300,29 @@ static int get_fs_type(int fd)return ret ?0 : (int )fs.f_type; } +/* +* The page-cache tests need a filesystem which keeps its data on backing +* store. When a clean page is poisoned the kernel drops it and the data is +* read back in. When a dirty page is poisoned the data is lost, and the +* kernel records -EIO in the mapping for fsync() to report. +* +* tmpfs and ramfs keep their data only in the page cache. The poisoned +* page cannot be dropped and read back, and their fsync() does nothing, so +* neither expectation holds. hugetlbfs is the same, and it also poisons a +* whole huge page. shmem has its own tests below. +*/ +static bool fs_has_backing_store (int fs_type) +{ +switch ((unsigned int )fs_type) { +case 0 : +case TMPFS_MAGIC : +case RAMFS_MAGIC : +case HUGETLBFS_MAGIC : +return false; + } +return true; +} + TEST_F(memory_failure, clean_pagecache) {int fd;
@@ -311,7 +334,7 @@ TEST_F(memory_failure, clean_pagecache)if (fd <0 )SKIP (return,"failed to open test file.\n" ); fs_type =get_fs_type (fd); -if (!fs_type || fs_type ==TMPFS_MAGIC ) { +if (!fs_has_backing_store (fs_type)) {close (fd);SKIP (return,"unsupported filesystem :%x\n" , fs_type); }
@@ -353,13 +376,7 @@ TEST_F(memory_failure, dirty_pagecache)if (fd <0 )SKIP (return,"failed to open test file.\n" ); fs_type =get_fs_type (fd); -/* -* MADV_HARD poisoning of dirty page-cache data records an expected -* -EIO in the file mapping. NFS reports this error on close(), so -* skip this variant. -*/ -if (!fs_type || fs_type ==TMPFS_MAGIC || - (fs_type ==NFS_SUPER_MAGIC && variant->type ==MADV_HARD )) { +if (!fs_has_backing_store (fs_type)) {close (fd);SKIP (return,"unsupported filesystem :%x\n" , fs_type); }
@@ -386,6 +403,11 @@ TEST_F(memory_failure, dirty_pagecache)ASSERT_EQ (munmap (addr, self->page_size),0 ); +if (variant->type ==MADV_HARD ) { +ASSERT_EQ (fsync (fd),-1 ); +ASSERT_EQ (errno,EIO ); + } +ASSERT_EQ (close (fd),0 ); }
_
Andrew Morton
maintainerPATCH 2/9 selftests/mm/memory-failure: truncate poisoned FUSE page-cache before teardown
From: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: truncate poisoned FUSE page-cache before teardown
Date: Mon, 23 Nov 2026 23:18:44 -0800
FUSE has no ->error_remove_folio(), so memory_failure() cannot evict a poisoned dirty page-cache page. The folio may remain after close() and unpoison_memory() can then return -EBUSY during selftest teardown. In tests with a minimal FUSE server, this happened in 6 of 40 runs.
After checking that fsync() reports EIO, truncate the file so teardown can unpoison the page. Remove this cleanup when FUSE can evict the poisoned folio.
tools/testing/selftests/mm/memory-failure.c | 7 +++++++ 1 file changed, 7 insertions(+)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-0 +7 -0
@@ -406,6 +406,13 @@ TEST_F(memory_failure, dirty_pagecache)if (variant->type ==MADV_HARD ) {ASSERT_EQ (fsync (fd),-1 );ASSERT_EQ (errno,EIO ); +/* +* A filesystem which could not remove the poisoned page from +* its page cache (FUSE, for one) keeps it until the inode is +* evicted, which can be after close() returns. Remove it now +* so that teardown can unpoison the page. +*/ +ASSERT_EQ (ftruncate (fd,0 ),0 ); }ASSERT_EQ (close (fd),0 );
_
Andrew Morton
maintainerPATCH 4/9 selftest/mm/memory-failure: keep page-cache files linked until cleanup
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftest/mm/memory-failure: keep page-cache files linked until cleanup
Date: Sun, 22 Nov 2026 20:36:33 -0800
The page-cache tests unlink their files immediately after open. On CIFS and 9p, fstatfs() on the resulting descriptor fails with ENOENT, so all four page-cache cases skip without testing the filesystem. Keeping the file linked only through fstatfs() is insufficient: 9p also rejects the ftruncate() after hard poisoning if the file has already been unlinked.
Keep each file linked until the test completes. Unlink it before close() so a failed close assertion cannot leave the name for a later case. Also remove it on the unsupported-filesystem, NILFS2 and mmap() skip paths.
tools/testing/selftests/mm/memory-failure.c | 25 ++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-2 +18 -7
@@ -266,10 +266,8 @@ static int prepare_file(const char *fnamint fd; fd =open (fname,O_RDWR |O_CREAT ,0664 ); -if (fd >=0 ) { -unlink (fname); +if (fd >=0 )ftruncate (fd, size); - }return fd; }
@@ -329,20 +327,25 @@ TEST_F(memory_failure, clean_pagecache)char *addr;int ret;int fs_type; +const char *fname ="./clean-page-cache-test-file" ; - fd =prepare_file ("./clean-page-cache-test-file" , self->page_size); + fd =prepare_file (fname, self->page_size);if (fd <0 )SKIP (return,"failed to open test file.\n" ); fs_type =get_fs_type (fd);if (!fs_has_backing_store (fs_type)) { +unlink (fname);close (fd);SKIP (return,"unsupported filesystem :%x\n" , fs_type); } addr =mmap (0 , self->page_size,PROT_READ |PROT_WRITE ,MAP_SHARED , fd,0 ); -if (addr ==MAP_FAILED ) +if (addr ==MAP_FAILED ) { +unlink (fname); +close (fd);SKIP (return,"mmap failed, not enough memory.\n" ); + }memset (addr,0xce , self->page_size);fsync (fd);
@@ -362,6 +365,7 @@ TEST_F(memory_failure, clean_pagecache)ASSERT_EQ (munmap (addr, self->page_size),0 ); +unlink (fname);ASSERT_EQ (close (fd),0 ); }
@@ -371,12 +375,14 @@ TEST_F(memory_failure, dirty_pagecache)char *addr;int ret;int fs_type; +const char *fname ="./dirty-page-cache-test-file" ; - fd =prepare_file ("./dirty-page-cache-test-file" , self->page_size); + fd =prepare_file (fname, self->page_size);if (fd <0 )SKIP (return,"failed to open test file.\n" ); fs_type =get_fs_type (fd);if (!fs_has_backing_store (fs_type)) { +unlink (fname);close (fd);SKIP (return,"unsupported filesystem :%x\n" , fs_type); }
@@ -385,14 +391,18 @@ TEST_F(memory_failure, dirty_pagecache)* Remove this skip when its fsync() reports poisoned dirty data. */ if (fs_type ==NILFS_SUPER_MAGIC && variant->type ==MADV_HARD ) { +unlink (fname);close (fd);SKIP (return,"nilfs2 fsync() does not report poisoned dirty data\n" ); } addr =mmap (0 , self->page_size,PROT_READ |PROT_WRITE ,MAP_SHARED , fd,0 ); -if (addr ==MAP_FAILED ) +if (addr ==MAP_FAILED ) { +unlink (fname); +close (fd);SKIP (return,"mmap failed, not enough memory.\n" ); + }memset (addr,0xce , self->page_size);prepare (_metadata, self, addr);
@@ -423,6 +433,7 @@ TEST_F(memory_failure, dirty_pagecache)ASSERT_EQ (ftruncate (fd,0 ),0 ); } +unlink (fname);ASSERT_EQ (close (fd),0 ); }
_
Andrew Morton
maintainerPATCH 3/9 selftests/mm/memory-failure: skip poisoned dirty page-cache on NILFS2
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: skip poisoned dirty page-cache on NILFS2
Date: Mon, 23 Nov 2026 23:18:44 -0800
nilfs_sync_file() does not check the mapping error recorded when a dirty page-cache page is hard-poisoned, so fsync() returns 0. Skip only this NILFS2 case until fsync() reports EIO. The other NILFS2 page-cache tests still run. On NILFS2 under x86_64 QEMU, the combined selftest reported 9 passes and 1 skip.
tools/testing/selftests/mm/memory-failure.c | 8 ++++++++ 1 file changed, 8 insertions(+)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-1 +8 -0
@@ -380,6 +380,14 @@ TEST_F(memory_failure, dirty_pagecache)close (fd);SKIP (return,"unsupported filesystem :%x\n" , fs_type); } +/* +* nilfs2 does not check the mapping error in nilfs_sync_file(). +* Remove this skip when its fsync() reports poisoned dirty data. +*/ +if (fs_type ==NILFS_SUPER_MAGIC && variant->type ==MADV_HARD ) { +close (fd); +SKIP (return,"nilfs2 fsync() does not report poisoned dirty data\n" ); + } addr =mmap (0 , self->page_size,PROT_READ |PROT_WRITE ,MAP_SHARED , fd,0 );
_
Andrew Morton
maintainerPATCH 5/9 selftests/mm/memory-failure: skip hard dirty page-cache test on CephFS
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: skip hard dirty page-cache test on CephFS
Date: Mon, 23 Nov 2026 08:29:47 -0800
CephFS loses the mapping error from a hard-poisoned dirty page:file_write_and_wait_range() returns -EIO and advances the file's writeback-error cursor, but ceph_fsync() overwrites that return value with a successful ceph_wait_on_async_create(). Its later error check finds nothing, so fsync() returns zero.
In a CephFS QEMU guest, the hard-dirty selftest then failed its fsync() assertion. The page remained poisoned, teardown returned -EBUSY, and the following soft-dirty test died on the file left behind by the failed hard-dirty test. The soft-dirty test passed on a fresh file.
Skip only the CephFS hard-dirty case before poisoning the page. The other CephFS tests still run. Remove the skip when ceph_fsync() reports the writeback error.
tools/testing/selftests/mm/memory-failure.c | 9 +++++++++ 1 file changed, 9 insertions(+)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-3 +9 -0
@@ -395,6 +395,15 @@ TEST_F(memory_failure, dirty_pagecache)close (fd);SKIP (return,"nilfs2 fsync() does not report poisoned dirty data\n" ); } +/* +* ceph_fsync() loses the writeback error recorded for a poisoned +* dirty page. Remove this skip when it preserves that error. +*/ +if (fs_type ==CEPH_SUPER_MAGIC && variant->type ==MADV_HARD ) { +unlink (fname); +close (fd); +SKIP (return,"cephfs fsync() does not report poisoned dirty data\n" ); + } addr =mmap (0 , self->page_size,PROT_READ |PROT_WRITE ,MAP_SHARED , fd,0 );
_
Andrew Morton
maintainerPATCH 7/9 selftests/mm/memory-failure: extend page-cache test files with pwrite()
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: extend page-cache test files with pwrite()
Date: Mon, 23 Nov 2026 09:58:07 -0800
HPFS does not allow ftruncate() to grow a file. prepare_file() ignores the failure, so the page-cache tests mmap an empty file and die before they can inject a memory failure or check fsync().
Write a zero byte at the end of the requested size instead. This grows the file on HPFS and leaves zero-filled data for the existing tests. Open with O_TRUNC so a file left by an interrupted test starts empty, and check the write result before returning the descriptor.
On an HPFS image, the existing test passed 6 of 10 cases. With this change, a diagnostic build passed all 10, including the hard-poisoned dirty page-cache case.
tools/testing/selftests/mm/memory-failure.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-5 +10 -3
@@ -265,9 +265,16 @@ static int prepare_file(const char *fnam {int fd; - fd =open (fname,O_RDWR |O_CREAT ,0664 ); -if (fd >=0 ) -ftruncate (fd, size); + fd =open (fname,O_RDWR |O_CREAT |O_TRUNC ,0664 ); +if (fd <0 ) +return fd; + +/* HPFS cannot grow files with ftruncate(). */ +if (pwrite (fd,"\0" ,1 , size -1 ) !=1 ) { +close (fd); +unlink (fname); +return -1 ; + }return fd; }
_
Andrew Morton
maintainerPATCH 6/9 selftests/mm/memory-failure: close dirty page-cache files before unlinking them
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: close dirty page-cache files before unlinking them
Date: Mon, 23 Nov 2026 08:50:00 -0800
OrangeFS writes dirty page-cache data from close(). In the soft-offline case, unlinking the file first removes its server-side handle. Writeback then returns -ENOENT, which makes close() fail even though soft offlining itself succeeded. The hard-poison case avoids this because it truncates the file before closing it.
Close the file while it is still linked. Save the close() return value and unlink before asserting so a failed close does not leave the file behind for the next test.
tools/testing/selftests/mm/memory-failure.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-4 +9 -1
@@ -442,8 +442,16 @@ TEST_F(memory_failure, dirty_pagecache)ASSERT_EQ (ftruncate (fd,0 ),0 ); } +/* +* OrangeFS writes dirty pages from close(). Unlinking first removes +* the server's file handle, so writeback returns -ENOENT and close() +* fails. Close while the file is still linked. Remove the name +* before checking the result so a failed close cannot leave a file +* for the next test. +*/ + ret =close (fd);unlink (fname); -ASSERT_EQ (close (fd),0 ); +ASSERT_EQ (ret,0 ); }TEST_F (memory_failure, dirty_shmem)
_
Andrew Morton
maintainerPATCH 8/9 selftests/mm/memory-failure: write the whole page-cache test file for OMFS
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: write the whole page-cache test file for OMFS
Date: Mon, 23 Nov 2026 10:46:15 -0800
"selftests/mm/memory-failure: extend page-cache test files with pwrite()" grows the page-cache test file by writing one byte at the end. That works on HPFS, but leaves a hole on OMFS, whose extent allocation does not support holes. After a mapped write and fsync(), the file still has the expected contents in cache. On remount, 2048 of its 4096 bytes have changed, so the hard-clean-page test fails when poisoning drops the cached page and rereads the file.
Write a full page of zeroes from offset zero. This still grows the file on HPFS and allocates all its blocks on OMFS before the test maps it. Check the write and clean up on failure as before. In a diagnostic OMFS guest, the test passed 9 of 10 cases with fix-5 and 10 of 10 with the full-page write.
tools/testing/selftests/mm/memory-failure.c | 25 +++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-6 +19 -6
@@ -17,6 +17,7 @@#include <sys/vfs.h> #include <linux/magic.h> #include <errno.h> +#include <stdlib.h> #include "vm_util.h"
@@ -264,18 +265,30 @@ TEST_F(memory_failure, anon)static int prepare_file (const char *fname,unsigned long size) {int fd; +char *zeros; +ssize_t written; fd =open (fname,O_RDWR |O_CREAT |O_TRUNC ,0664 );if (fd <0 )return fd; -/* HPFS cannot grow files with ftruncate(). */ -if (pwrite (fd,"\0" ,1 , size -1 ) !=1 ) { -close (fd); -unlink (fname); -return -1 ; - } +/* +* HPFS cannot grow files with ftruncate(), and OMFS does not support +* holes. Write the whole page so OMFS allocates its blocks before +* mmap(). A write of only the last byte loses data after eviction. +*/ + zeros =calloc (size,1 ); +if (!zeros) + goto failed; + written =pwrite (fd, zeros, size,0 ); +free (zeros); +if (written != (ssize_t )size) + goto failed;return fd; +failed: +close (fd); +unlink (fname); +return -1 ; }static int prepare_shmem (const char *fname,unsigned long size)
_
Andrew Morton
maintainerPATCH 9/9 selftests/mm/memory-failure: accept EIO from close after poisoning dirty data
In reply to Andrew MortonFrom: Andrew Morton <[email protected]>
Subject: selftests/mm/memory-failure: accept EIO from close after poisoning dirty data
Date: Mon, 23 Nov 2026 19:38:37 -0800
On overlayfs with a virtiofs upper, poisoning a dirty page makes fsync() return -EIO as expected. close() can return -EIO again after ftruncate() removes the poisoned page. The selftest currently fails because it requires close() to return zero after fsync() has reported the error.
Accept a second -EIO from close() only in the hard-poison dirty-page test, where fsync() has already been checked for -EIO. Continue to reject other close() errors. With the virtiofs export owned by the daemon's UID and GID, all ten overlayfs tests pass with no skips; before this change the dirty hard-poison case failed at close().
tools/testing/selftests/mm/memory-failure.c | 6 ++++++ 1 file changed, 6 insertions(+)
tools/testing/selftests/mm/memory-failure.c renamed from tools/testing/selftests/mm/memory-failure.c~selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-7 +6 -0
@@ -468,8 +468,14 @@ TEST_F(memory_failure, dirty_pagecache)* fails. Close while the file is still linked. Remove the name * before checking the result so a failed close cannot leave a file * for the next test. +* +* With a virtiofs upper, overlayfs can also report -EIO from close() +* after fsync() has reported the poisoned dirty page. Accept this +* second error only for the hard-poison test and only if it is -EIO. */ ret =close (fd); +if (ret <0 && variant->type ==MADV_HARD ) + ret = errno ==EIO ?0 : ret;unlink (fname);ASSERT_EQ (ret,0 ); }
_
Sorry for the rathole, and thanks for following it all the way down.
Quoted 1 line · Andrew Morton
The FUSE server used for this test was a minimal server, not virtiofs.
I ran the whole series, as in mm-unstable c5941b1abeff, in a virtme-ng guest on an mm-new 87cdbd9bd631 kernel with hwpoison_inject loaded. memory-failure now passes 10 of 10 from virtiofs, where the hard dirty_pagecache case failed before, and still passes on ext4 (loop). 50 runs in a row on each were clean, and run_vmtests.sh -t memory-failure passes from the virtiofs directory.
Tested with the help of an AI coding assistant.
For the whole series:
[email protected]
AI reviewRe: [PATCH 4/9] selftest/mm/memory-failure: keep page-cache files linked until cleanup
In reply to Andrew MortonThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] selftests/mm: test files left linked and untruncated on ASSERT failure --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] selftests/mm: test files left linked and untruncated on ASSERT failure
--
commit ab1ec762ba7c473ad6543ed54c4b3f4498c666ae
Author: Andrew Morton <[email protected]>
selftest/mm/memory-failure: keep page-cache files linked until cleanup
This commit delays unlinking the page-cache test files until test completion or skip paths so filesystems such as CIFS and 9p do not fail fstatfs() or ftruncate() on an unlinked file.
Quoted 15 lines
tools/testing/selftests/mm/memory-failure.c +1
-3@@ -266,10 +266,8 @@ static int prepare_file(const char *fname, unsigned long size)int fd; fd =open (fname,O_RDWR |O_CREAT ,0664 ); -if (fd >=0 ) { -unlink (fname); +if (fd >=0 )ftruncate (fd, size); - }return fd; }
[ ... ]
Quoted 7 lines
tools/testing/selftests/mm/memory-failure.c +1
-0@@ -362,6 +365,7 @@ TEST_F(memory_failure, clean_pagecache)ASSERT_EQ (munmap (addr, self->page_size),0 ); +unlink (fname);ASSERT_EQ (close (fd),0 ); }
[ ... ]
tools/testing/selftests/mm/memory-failure.c TEST_F(memory_failure, dirty_pagecache) · line 438
Quoted 7 lines
tools/testing/selftests/mm/memory-failure.c +1
-0@@ -423,6 +433,7 @@ TEST_F(memory_failure, dirty_pagecache)ASSERT_EQ (ftruncate (fd,0 ),0 ); } +unlink (fname);ASSERT_EQ (close (fd),0 ); }
[Severity: Low]
Does a failed assertion in clean_pagecache or dirty_pagecache leave the test file linked and untruncated when jumping to FIXTURE_TEARDOWN(memory_failure)?
If any ASSERT_* check in prepare(), variant->inject(), check(), munmap() or fsync() fails, __bail() runs FIXTURE_TEARDOWN(memory_failure) and aborts before reaching ftruncate(fd, 0) and unlink(fname). On filesystems without error_remove_folio (such as 9p, CIFS or FUSE), cleanup() -> unpoison_memory() in teardown then runs while the poisoned dirty folio is still in the page cache and fails with -EBUSY, leaving the page hardware-poisoned. The file is also left on disk, so the next variant reopens it via prepare_file() without O_TRUNC and inherits the poisoned inode (until a later patch in the series, commit "selftests/mm/memory-failure: extend page-cache test files with pwrite()", adds O_TRUNC).
Recording the test fd and filename in FIXTURE(memory_failure) so FIXTURE_TEARDOWN(memory_failure) can truncate, close and unlink the file before calling cleanup() would handle both normal completion and assertion failures.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
Quoted 12 lines · Kurt Lin
Sorry for the rathole, and thanks for following it all the way down.
Quoted 1 line · Andrew Morton
The FUSE server used for this test was a minimal server, not virtiofs.
I ran the whole series, as in mm-unstable
c5941b1abeff, in a virtme-ng guest on an mm-new87cdbd9bd631kernel withhwpoison_injectloaded. memory-failure now passes 10 of 10 from virtiofs, where the harddirty_pagecachecase failed before, and still passes on ext4 (loop). 50 runs in a row on each were clean, andrun_vmtests.sh-t memory-failure passes from the virtiofs directory.
Quoted 6 lines
Tested with the help of an AI coding assistant.
For the whole series:
Tested-by Kurt Lin <[email protected]>.
Thanks both! The whole series looks good to me.
Thanks.
.