Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4358048ybb; Tue, 7 Apr 2020 06:04:40 -0700 (PDT) X-Google-Smtp-Source: APiQypIkdvnkRWEOkgF+Xm5wknux1o5HEffZEBKDXzslbUdPQ5Oaf1YJeNtWKcJk2gy6JnuQBzpK X-Received: by 2002:aca:4d86:: with SMTP id a128mr1617560oib.96.1586264680267; Tue, 07 Apr 2020 06:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586264680; cv=none; d=google.com; s=arc-20160816; b=xkYmM7tNmCrtbYGX52qMgjz2mSvrPFn3Ge3PR8bCGUPJ/90IfV0FP8QWzQRl5GlyEc YGzBpXO1hWbxrjt14acc2yJ6RqxEOrIVtMNOgVfREJiEt083PZ9LmMBrwRFJfFQ551wI 9nqasstnST0x7/vl/oW+nl8uD30j0qQrzpE2rqvrV3noyO8VLQQVdnB3F7R7oYRSSvLu b9qGcOEefp+mvciElitDjThgzbouTucxfvmPdbr4d+wgHIT/ZgBSaCOjE344F/B4X00k CDq0B6zWIZSkgwLqpzOsoP1MNXCDFdXLndrTgCClaH8qmXOb1C41sM2E/rxYNZcTf0+O KIXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=62TOZGiZj0ddgli8LhXraweeQHOPhOJ6bkVEKgd5SQc=; b=QIRFioI62LC1MiuHQp7Z7/2H9teVtNG0LMrg1qTuFu2fm5OGyvgAJlzpcaXrlGIoE4 LdHzmw1UP7+CMFBjMgHPomSq7Zyp1Cb4nUn6EZujo9QOy6jGERxaMQf0ydM6L/+U2JLy ptDk77DSY8EOamRIMgguuXT78poBfv1KIL6c0R4NReG8PBnZPCz/XqAKiUGZJwqRZvkd qwcsm+BYDM8Xwq3sgoqUGpFc2VBG2w8FWTDeRMcs9u/WyBIPGG/U9ta1zTnsKJ5g0oM/ zONaZ+mcxmm2WeYNzhL5+WJasGdCFkSTEaNaxWJqquOJIvaMokVspK3oVuzOX99hg1XN 7lOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v108si1125699otb.136.2020.04.07.06.04.20; Tue, 07 Apr 2020 06:04:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728697AbgDGNDV (ORCPT + 99 others); Tue, 7 Apr 2020 09:03:21 -0400 Received: from mail.parknet.co.jp ([210.171.160.6]:37260 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbgDGNDU (ORCPT ); Tue, 7 Apr 2020 09:03:20 -0400 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id BC50A12F211; Tue, 7 Apr 2020 22:03:19 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-18) with ESMTPS id 037D3I3Z154581 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 7 Apr 2020 22:03:19 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-18) with ESMTPS id 037D3H6D892892 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 7 Apr 2020 22:03:17 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id 037D3Gpb892808; Tue, 7 Apr 2020 22:03:16 +0900 From: OGAWA Hirofumi To: Dmitry Vyukov Cc: syzbot , Marco Elver , LKML , syzkaller-bugs , syzkaller Subject: Re: KCSAN: data-race in __fat_write_inode / fat12_ent_get References: <0000000000000cfff005a26226ce@google.com> <874ku0sncc.fsf@mail.parknet.co.jp> <877dyveq1h.fsf@mail.parknet.co.jp> Date: Tue, 07 Apr 2020 22:03:16 +0900 In-Reply-To: (Dmitry Vyukov's message of "Tue, 7 Apr 2020 12:39:28 +0200") Message-ID: <874ktva1nv.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dmitry Vyukov writes: >> 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. > > > I've converted the program to C using syz-prog2c: > https://github.com/google/syzkaller/blob/master/docs/syzbot.md#syzkaller-reproducers > then slightly changed the generated program to dump the file to disk > rather than mounting. > > The resulting image is attached (archived because it's mostly zeros). Thank you! I think I can see now why the generated image became the cause of this. -- OGAWA Hirofumi