Re: KCSAN: data-race in __fat_write_inode / fat12_ent_get

From: OGAWA Hirofumi
Date: Sat Apr 04 2020 - 02:24:17 EST


Dmitry Vyukov <dvyukov@xxxxxxxxxx> writes:

> On Fri, Apr 3, 2020 at 3:36 PM OGAWA Hirofumi
> <hirofumi@xxxxxxxxxxxxxxxxxx> wrote:
>>
>> Hm, looks like the race between a directory entry vs a FAT entry. This
>> bug was happened with the corrupted image? Or the image passes the check
>> of dosfsck?
>>
>> If the corrupted image, it may be hard to prevent the all races. Well,
>> anyway, the corrupted image of the report will help to detect this
>> corruption.
>
> From the log, it's this program.
> My bet on a corrupted image. syzkaller does not have format
> descriptions for fat, so it's just random bytes.

You meant I can regenerate a disk image from that log (if so, how)?

If not, for next time, it would be helpful if syzkaller provides the log
to regenerate the corrupted image (or saving a corrupted image) to
reproduce this, then I can try to detect the corruption pattern early.

Thanks.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>