Re: [PATCH RFC v2 5/7] mm: selftests: Add shmem memory failure test

From: Baolin Wang

Date: Sat Mar 21 2026 - 02:30:43 EST




On 3/20/26 7:30 AM, Lisa Wang wrote:
Add a shmem memory failure selftest to test the shmem memory failure is
correct after modifying shmem return value.

Test that
+ madvise() call returns 0 at the first time
+ trigger a SIGBUS when the poisoned shmem page is fault-in again.

Signed-off-by: Lisa Wang <wyihan@xxxxxxxxxx>
---

Why not move the shmem memory failure test into memory-failure.c?