Re: [PATCH v4 5/7] mm: selftests: Add shmem into memory failure test
From: Miaohe Lin
Date: Tue Jun 16 2026 - 23:24:42 EST
On 2026/6/3 5:55, Lisa Wang wrote:
> Add a shmem memory failure selftest to test the shmem memory failure is
> correct after modifying shmem return value.
>
> Specifically, test the expected behavior under various scenarios
> combining page dirtiness (dirty vs clean) and failure types (hard vs
> soft):
> + Dirty + Hard: Trigger a SIGBUS on injection, and trigger another
> SIGBUS when reading the page again.
> + Dirty + Soft: No SIGBUS is triggered, and the original value can be
> read successfully.
> + Clean + Hard: No SIGBUS is triggered on injection, but trigger a
> SIGBUS when trying to read the page again.
> + Clean + Soft: No SIGBUS is triggered, and the page can be read
> successfully.
>
> Signed-off-by: Lisa Wang <wyihan@xxxxxxxxxx>
With David's comment addressed:
Acked-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Thanks.
.