Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3300499pxk; Mon, 21 Sep 2020 10:03:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyUdK1sJDGPKB20zqED2hc6HLLU84f0wuIcbr+MBWbJsJSTgJunSayLvylY2P7YFuNUZok X-Received: by 2002:a17:906:4cc6:: with SMTP id q6mr388998ejt.201.1600707813700; Mon, 21 Sep 2020 10:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707813; cv=none; d=google.com; s=arc-20160816; b=cZ2up1xOWiWzzrxyhZyn2DuoRzbBDoUEByfLp1yiXlclvoIlzazNW46MbgN2VMEMTB pPPV0cHVVnuzZ71yBErkaZTl6TNl8jyxXZhx7WtLfXhQlsPWyICJW6Bbp+HvFj1SN2KY lhUbCqr7fI3RDQRLXCuP5AniEGBKj/ya+bp+N8dLWZBAOSLn7DtBiImurI0KFklV7kgc bk8lMFveBU1JOuoJDCuALJ6YBlmwGo6I6QShQfNsj5eynvzZs+6TibpXlvQ1m6UhT1V2 p7ySS5T3N6kcwkvhcAQu03LPck6rv+p7RFaAoIO5s8bqLqNMWmH8728Lm4Z+Oky06v2g NWpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=EsnxF/JjYsc36LuO3Bn+3XJ1Y+/EGgSRuB10c4//LfY=; b=ttvqflUwAU1paengfTWQImFgHvxxf1qi7a4rtxPC7dQIdmaU8EGGTK/qMvx+llx6vd B4ruGYLwIxv/vcZ+t56kmkzf8djFckEZCzB4E31Q1vX7mrDBCFqOYq78RWVbcII5sXzP Z4gN327sA/OeNEsLP1rNXY/aelkSiTO6+JqkXjiUkjf4ZeVjNYusJMnmKbvrnMqX/jnA NSgFsJqsV0f0OsINFRbxwaKj18JTIxZC3nhFTtKz25uDP7NpAgsgQuke4YslYoZpX8Vw Zl/ADm79Pn4lJnOcMZ4KnPbwrlI7ekNv8eAnmW6A/DgRcXwy2VAFxnB8FeUIHOt5WohE sbzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si9049854eju.401.2020.09.21.10.03.09; Mon, 21 Sep 2020 10:03:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730423AbgIURCO (ORCPT + 99 others); Mon, 21 Sep 2020 13:02:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:34854 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729268AbgIURCN (ORCPT ); Mon, 21 Sep 2020 13:02:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3B2ECAF32; Mon, 21 Sep 2020 17:02:47 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id C41B2DA6E0; Mon, 21 Sep 2020 19:00:55 +0200 (CEST) Date: Mon, 21 Sep 2020 19:00:55 +0200 From: David Sterba To: syzbot Cc: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: WARNING in btrfs_alloc_chunk Message-ID: <20200921170055.GJ6756@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, syzbot , clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <00000000000059837b05afcff275@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00000000000059837b05afcff275@google.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 03:02:22AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 325d0eab Merge branch 'akpm' (patches from Andrew) > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=142c89ab900000 > kernel config: https://syzkaller.appspot.com/x/.config?x=8d39f8ae68f9dcd5 > dashboard link: https://syzkaller.appspot.com/bug?extid=f54bbed7adc7c7729120 > compiler: gcc (GCC) 10.1.0-syz 20200507 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+f54bbed7adc7c7729120@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > gather_device_info: found more than 0 devices > WARNING: CPU: 1 PID: 26278 at fs/btrfs/volumes.c:4967 gather_device_info fs/btrfs/volumes.c:4967 [inline] > WARNING: CPU: 1 PID: 26278 at fs/btrfs/volumes.c:4967 btrfs_alloc_chunk+0x1a43/0x2000 fs/btrfs/volumes.c:5194 > Kernel panic - not syncing: panic_on_warn set ... > CPU: 1 PID: 26278 Comm: syz-executor.2 Not tainted 5.9.0-rc5-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:77 [inline] > dump_stack+0x198/0x1fd lib/dump_stack.c:118 > panic+0x382/0x7fb kernel/panic.c:231 > __warn.cold+0x20/0x4b kernel/panic.c:600 > report_bug+0x1bd/0x210 lib/bug.c:198 > handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234 > exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254 > asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536 > RIP: 0010:gather_device_info fs/btrfs/volumes.c:4967 [inline] > RIP: 0010:btrfs_alloc_chunk+0x1a43/0x2000 fs/btrfs/volumes.c:5194 > Code: ff ff 44 8b 7c 24 78 4c 89 0c 24 e8 17 06 67 fe 4c 8b 0c 24 48 c7 c6 c0 79 a6 88 48 c7 c7 40 67 a6 88 4c 89 ca e8 ff 41 37 fe <0f> 0b 4c 8b 0c 24 e9 f8 f0 ff ff 44 8b 7c 24 78 e8 e8 05 67 fe 31 > RSP: 0018:ffffc900049072a8 EFLAGS: 00010286 > RAX: 0000000000000000 RBX: ffff88809cbee000 RCX: 0000000000000000 > RDX: ffff8880645462c0 RSI: ffffffff815f5a85 RDI: fffff52000920e47 > RBP: dffffc0000000000 R08: 0000000000000001 R09: ffff8880ae7318e7 > R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 > R13: 0000000002800000 R14: 0000000000010000 R15: 0000000000000001 > btrfs_chunk_alloc+0x3fe/0xaa0 fs/btrfs/block-group.c:3136 > find_free_extent_update_loop fs/btrfs/extent-tree.c:3796 [inline] > find_free_extent+0x2090/0x2e60 fs/btrfs/extent-tree.c:4127 > btrfs_reserve_extent+0x166/0x460 fs/btrfs/extent-tree.c:4206 > btrfs_alloc_tree_block+0x203/0xee0 fs/btrfs/extent-tree.c:4603 > alloc_tree_block_no_bg_flush+0x1b6/0x250 fs/btrfs/ctree.c:987 > __btrfs_cow_block+0x3e0/0x10c0 fs/btrfs/ctree.c:1042 > btrfs_cow_block+0x2c1/0x8a0 fs/btrfs/ctree.c:1487 > commit_cowonly_roots+0x129/0xc70 fs/btrfs/transaction.c:1184 > btrfs_commit_transaction+0xde0/0x2830 fs/btrfs/transaction.c:2272 > btrfs_commit_super+0xc1/0x100 fs/btrfs/disk-io.c:4021 > close_ctree+0x2cd/0x6cb fs/btrfs/disk-io.c:4084 > generic_shutdown_super+0x144/0x370 fs/super.c:464 > kill_anon_super+0x36/0x60 fs/super.c:1108 > btrfs_kill_super+0x38/0x50 fs/btrfs/super.c:2265 > deactivate_locked_super+0x94/0x160 fs/super.c:335 > deactivate_super+0xad/0xd0 fs/super.c:366 > cleanup_mnt+0x3a3/0x530 fs/namespace.c:1118 > task_work_run+0xdd/0x190 kernel/task_work.c:141 > tracehook_notify_resume include/linux/tracehook.h:188 [inline] > exit_to_user_mode_loop kernel/entry/common.c:163 [inline] > exit_to_user_mode_prepare+0x1e1/0x200 kernel/entry/common.c:190 > syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:265 > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > RIP: 0033:0x460027 > Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 > RSP: 002b:00007ffd0b14c408 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 > RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460027 > RDX: 0000000000403188 RSI: 0000000000000002 RDI: 00007ffd0b14c4b0 > RBP: 00000000000000ce R08: 0000000000000000 R09: 000000000000000a > R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffd0b14d540 > R13: 0000000002358a60 R14: 0000000000000000 R15: 00007ffd0b14d540 > Kernel Offset: disabled > Rebooting in 86400 seconds.. #syz test: git://github.com/kdave/btrfs-devel.git misc-5.9