Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2433420pxj; Mon, 31 May 2021 01:57:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHK3iW+ihAZ0Sll8EfidXUG4k4PRNoQigdMa3KSU5YxswLwE7RL4xrDj0PtiT1R9OUV2Ku X-Received: by 2002:a17:906:55d6:: with SMTP id z22mr22065056ejp.355.1622451432365; Mon, 31 May 2021 01:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622451432; cv=none; d=google.com; s=arc-20160816; b=NP15raa9oKLwFmydgM3kBHL8w/GThtdCD7/uRGiib1z7DsRSRY3XI/D6bWKtt+HcRH 0e8UtSZIDO9ViV+tD6JrrKwQMHgX9G17Yq9wL17FA63F/fpPdMXCkZRL3oYg5/t7MaB2 wYYBczQBnDMkgafq1JkDWVO4bD0/GjwM5xL74NFJrYo9XkmC3izCaUOuVQ4pBH69KXUa XfYXewrBXeRSjmyOop71v/GDYTFz+QL6cBG4ytDMO8CTbJBasUCZOpEuqi08jfeYNuVS DKxfjB6a8hZAQ8sgtUW2tMkCjUTz95QvvjN3xbknt/FNq81R1oQVy9+EoELVbYGv/vL6 OKBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3gNFG9ThfJffLDJZEurhBCfvsdn1oohta4PrcOHBIO8=; b=DJ4EBhdvVOG1jD47BBwnVj41+yHbpWMwCFfQndi4XKrZb7aHilJ+dYE1w11GSYC7eV NZ2MFmzHKt4muX4P87eSIvzh0xzxiaSl6yqwAeip6KxssGarAxrgDWbu14X4bdyBqZl1 nPtZe7I/TDBt5xxrFXAkR5adq/2EMWSO7wrpbZ+gofq36lJcLQzg6Hhnx88k441VIZu8 g5P2WWVBwoItstalyf/iRtzWfqZmmyvH95LwBFYNztXsEqtcYGDcSzpaCf/TLm4QKXP6 zEfTBFN6C4G7+0BxL+1JF62jCQakOOEdnteNOu6yLxOKM0ybo0Z5R3UWupv6vvsEaMVC NHSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MGJsovRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si8310400edr.251.2021.05.31.01.56.49; Mon, 31 May 2021 01:57:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MGJsovRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbhEaI53 (ORCPT + 99 others); Mon, 31 May 2021 04:57:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbhEaI51 (ORCPT ); Mon, 31 May 2021 04:57:27 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C21F7C061574 for ; Mon, 31 May 2021 01:55:46 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id u33so5172156qvf.9 for ; Mon, 31 May 2021 01:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3gNFG9ThfJffLDJZEurhBCfvsdn1oohta4PrcOHBIO8=; b=MGJsovRl/lgaZogYpniaQh2IKwAMrLzrTfFVlLgdeUfRQFiv+rod/Wkb4sHScHKUm3 4Ir/nJD6jPTFZUD6XCn7Ee6KqbkNnRuyZLxLCPcC15ktW9Cmoqd/fAr1vX9/TyrgqWnb cw9WtdOFEze74JjhP6JYrn3Sf7WT+rJPA9SW+QrBLevZEf/EXCzZ3U7T7sbjeIo8nIZ+ 3pG+lLA/RED/QXZqMSzR42Z+4wuowoSH9VhtH6G1jS49UayZ4eeP85NYF1eF0VEzn+1m tqUs66JmG16zly+t0NkMjE0Qi0o2mRokQefwbpsWVHr57EeIElzo/9NIqmhwgFNpYeUN NdvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3gNFG9ThfJffLDJZEurhBCfvsdn1oohta4PrcOHBIO8=; b=tng5CAzxHxBXCknVGt6xol7Yje5m7q/hQfPvRBunhSofobtU4zIYq/q6vUGQA2Sdb/ bmMiYJ1IfCjMSVFYc7R19e9si5oiig2spL38hWaARwXIlkQb/24LBRWsHKBpbEE239d/ ZrIaaauB5a0VkgAwZw4o0cOI4wdi9w0uAm9Zk1sw/t0+dHTSqYVwEMgU+cQhbFIPtxBx IdgXrzny+nGJycr/LBIqEF6c5lPtAgNP4YboBOe88bkw6wj9gguzNGvJxC6G7j5lr2m8 fLgktQj9Y+8/l4/SbNUdBwNoM8AxcVLVtUNM88jBRHxBAei4bKlnbYtFu0k/r6yaYtig 9pjg== X-Gm-Message-State: AOAM5319QhpbJfYQy0y/WVs+eU/y9v7QMgkSGDqnB9RAaoujE8JipwmD Vrs6Jo+kpHAgtWRFG7+BGJCIy9X1BdQW6DvZdRpSMg== X-Received: by 2002:a05:6214:6f1:: with SMTP id bk17mr15932892qvb.37.1622451345749; Mon, 31 May 2021 01:55:45 -0700 (PDT) MIME-Version: 1.0 References: <000000000000f9136f05c39b84e4@google.com> <21666193-5ad7-2656-c50f-33637fabb082@suse.com> In-Reply-To: <21666193-5ad7-2656-c50f-33637fabb082@suse.com> From: Dmitry Vyukov Date: Mon, 31 May 2021 10:55:34 +0200 Message-ID: Subject: Re: [syzbot] kernel BUG in assertfail To: Nikolay Borisov Cc: syzbot , Chris Mason , dsterba@suse.com, Josef Bacik , linux-btrfs@vger.kernel.org, LKML , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 31, 2021 at 10:44 AM 'Nikolay Borisov' via syzkaller-bugs wrote: > On 31.05.21 =D0=B3. 10:53, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 1434a312 Merge branch 'for-5.13-fixes' of git://git.ker= nel.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=3D162843f3d00= 000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=3D9f3da44a018= 82e99 > > dashboard link: https://syzkaller.appspot.com/bug?extid=3Da6bf271c02e4f= e66b4e4 > > > > Unfortunately, I don't have any reproducer for this issue yet. > > > > IMPORTANT: if you fix the issue, please add the following tag to the co= mmit: > > Reported-by: syzbot+a6bf271c02e4fe66b4e4@syzkaller.appspotmail.com > > > > assertion failed: !memcmp(fs_info->fs_devices->fsid, fs_info->super_cop= y->fsid, BTRFS_FSID_SIZE), in fs/btrfs/disk-io.c:3282 > > This means a device contains a btrfs filesystem which has a different > FSID in its superblock than the fsid which all devices part of the same > fs_devices should have. This can happen in 2 ways - memory corruption > where either of the ->fsid member are corrupted or if there was a crash > while a filesystem's fsid was being changed. We need more context about > what the test did? Hi Nikolay, From a semantic point of view we can consider that it just mounts /dev/rand= om. If syzbot comes up with a reproducer it will post it, but you seem to already figure out what happened, so I assume you can write a unit test for this.