Re: [PATCH 0/10 v2] ext4: Fix possible fs corruption due to xattr races

Ritesh Harjani
2022-06-16T11:55:20Z

On 22/06/14 06:05PM, Jan Kara wrote:
> Hello,
>
> this is the second version of my patches to fix the race in ext4 xattr handling
> that led to assertion failure in jbd2 Ritesh has reported. The series is
> completely reworked. This time it passes beating with "stress-ng --xattr 16".
> Also I'm somewhat happier about the current solution because, although it is
> still not trivial to use mbcache correctly, it is at least harder to use it
> in a racy way :). Please let me know what you think about this series.

I have tested this on my setup where I was able to reproduce the problem with
stress-ng. It ran for several hours and also passed fstests (quick).

So feel free to -
Tested-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>

-ritesh

>
> Changes since v1:
> * Reworked the series to fix all corner cases and make API less errorprone.
>
> Honza
>
> Previous versions:
> Link: http://lore.kernel.org/r/20220606142215.17962-1-jack@suse.cz # v1