Re: [BUG] fat: race between fat32_ent_put FAT update and mmc_spi transmit on shared page

From: OGAWA Hirofumi

Date: Thu Jul 30 2026 - 06:16:57 EST


guibing <guibing@xxxxxxxxxxxxx> writes:

> Hi Hirofumi,
>
> Thanks for the explanation. I noticed that syzbot has also reported
> similar data race issues related to this. I was wondering if there are
> any plans to support stable pages for FAT in the future?
>
> Could you help me to review the workaround ? Are there any potential
> issues with it?

Your change is unconditionally waiting the condition. However, if it
doesn't need the checksum or such, later overwrite will fix temporary
corruption.

And the issue would not be only that function. All metadata would be
target of same issue. Also, no need to wait whole page, just a buffer.

Thanks.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>