Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1680877rwr; Fri, 5 May 2023 19:20:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NP2tCasTlgycYyBeiaVNK2rwZJv7yM92bbYuRJW3NNcm5NfrdB+cXjWHpF4MQH4qU8V64 X-Received: by 2002:a17:902:ce83:b0:1a9:95fa:1fa8 with SMTP id f3-20020a170902ce8300b001a995fa1fa8mr3861059plg.41.1683339646575; Fri, 05 May 2023 19:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683339646; cv=none; d=google.com; s=arc-20160816; b=lKgPeVBV697zVl30bDkKx3/I65RPETaPs5Knf0Ll2gOmYTeIG7Nt3fSy/DYI+gI/gT /g999WdYfWKbXzoWvmbxP6xRYymNPp5bsecNyM5qutsIow0B548iL5G9DJkVk56rRkui oc7mGBQWI3peDUe/4rhLfm7T41CYf8xeT1rxG0aUi4g9cOtrDCuU5FKfJ7UIPHAjeCpU xBsgzrXxATk9PhQgpbrNiFHp6PCkZKd7YghhGSFzzVvEWp3joSwPH0xXDfkEOxup38Oi uOJ3NU4aWo/+Eae+dnZU59GWmWKyc8Zo8EXEjjAQyvGVvhrnyPH6jAck1P3PQpRysNQ1 fMtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=GEAVY+G+dyIbuZjjPxrcrCEx2E1ib4FojCVjLcKiTGM=; b=feVfDnfdaEzfiN8tTKSlRtBezrnDg2CX1f5dtSdM/d9dh7tzb6owUO9ldLdiwe00nh BbnNg6VWqlvwJpLcEOPuoTbKszga6zTfo3MDygEtUbGhv5a6D4k/vyZ86o9pMLREKVht FWP1B0SZmZzA3PZgRLuoITbskskxQfmVZMyRdCge1njxZovU421xUhPVD0XebesB5CdN YpTEHWihyevter+NTR1SQbq3QipVMmCDHBAKqBGxVHxY0/ZULHMxhTNS0r99A0DXgUxp 5r9LdR1PL3Q6uUdlQ0fdH5LOYM6MuKDaaFqRVlei7R1XQRjcjdhBEgVFkQVueIbj1CGk 2ccQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170902e5c900b001a1b0a828a8si3228124plf.621.2023.05.05.19.20.31; Fri, 05 May 2023 19:20:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230356AbjEFBn7 (ORCPT + 99 others); Fri, 5 May 2023 21:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbjEFBn6 (ORCPT ); Fri, 5 May 2023 21:43:58 -0400 Received: from mail-io1-f80.google.com (mail-io1-f80.google.com [209.85.166.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B03B49E7 for ; Fri, 5 May 2023 18:43:56 -0700 (PDT) Received: by mail-io1-f80.google.com with SMTP id ca18e2360f4ac-763646b324aso325874939f.0 for ; Fri, 05 May 2023 18:43:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683337436; x=1685929436; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GEAVY+G+dyIbuZjjPxrcrCEx2E1ib4FojCVjLcKiTGM=; b=LnyfTCfkCQY0xdHyDu9aKy+ppFYW6KMuwzFmo1z1XoEI8qKmYGiEYhQY4+/dme6Qck 0wIeACXYjavUGNyo+W8BcCl95UvSIFOPKZSWHrtPTtYR2P8L+iTDjVxyi+xK3uyh3eLH LTsBg0p3APLor9wo8eq7rrfS9l8PeWjVhz4ZZRB7JGB84dNqSEzWaygj6mRX2jr9V7cE WLiucE4MnsIgXWiPott0W5cmf9wG8TC2nT+u+W36xvjNQ28poG8U7MJcBdwsvc2MtkQz eFX8WA49ePTXCk8BGseQXKQbEPGNbVD3JkPq6OZIyWG96Gyj+Rmfd7uCZv3ZTf/+rgcn 68XQ== X-Gm-Message-State: AC+VfDz8ntXF6VFjSsHYfhYxG+fltrcQa9uQM37BumsRl1h/pmEYMJ2p gKGtxCs9ZEAMyM3vMXlGMzDI9Zk15AKnTjY3psmL/DqKIeb8 MIME-Version: 1.0 X-Received: by 2002:a02:84c1:0:b0:40f:ae69:a144 with SMTP id f59-20020a0284c1000000b0040fae69a144mr1384969jai.5.1683337435893; Fri, 05 May 2023 18:43:55 -0700 (PDT) Date: Fri, 05 May 2023 18:43:55 -0700 In-Reply-To: <000000000000725cab05f55f1bb0@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e7582c05fafc8901@google.com> Subject: Re: [syzbot] [btrfs?] kernel BUG in btrfs_exclop_balance (2) From: syzbot To: chris@chrisdown.name, clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 7163a2111f6c Merge tag 'acpi-6.4-rc1-3' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=175bb84c280000 kernel config: https://syzkaller.appspot.com/x/.config?x=73a06f6ef2d5b492 dashboard link: https://syzkaller.appspot.com/bug?extid=5e466383663438b99b44 compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12048338280000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11ff7314280000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/01051811f2fe/disk-7163a211.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/a26c68e4c8a6/vmlinux-7163a211.xz kernel image: https://storage.googleapis.com/syzbot-assets/17380fb8dad4/bzImage-7163a211.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/b30a249e8609/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5e466383663438b99b44@syzkaller.appspotmail.com assertion failed: fs_info->exclusive_operation == BTRFS_EXCLOP_BALANCE_PAUSED, in fs/btrfs/ioctl.c:463 ------------[ cut here ]------------ kernel BUG at fs/btrfs/messages.c:259! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8630 Comm: syz-executor102 Not tainted 6.3.0-syzkaller-13225-g7163a2111f6c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:btrfs_assertfail+0x18/0x20 fs/btrfs/messages.c:259 Code: df e8 2c 05 36 f7 e9 50 fb ff ff e8 b2 90 01 00 66 90 66 0f 1f 00 89 d1 48 89 f2 48 89 fe 48 c7 c7 80 32 2c 8b e8 c8 60 ff ff <0f> 0b 66 0f 1f 44 00 00 66 0f 1f 00 53 48 89 fb e8 73 31 de f6 48 RSP: 0018:ffffc9000ae27e48 EFLAGS: 00010246 RAX: 0000000000000066 RBX: 1ffff1100fa13c18 RCX: e812ce05a9b3c300 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000002 R08: ffffffff816f0fec R09: fffff520015c4f7d R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807d09e0c0 R13: ffff88807d09c000 R14: ffff88807d09c678 R15: dffffc0000000000 FS: 00007f2bb10a8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2bb0c90000 CR3: 0000000028447000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_exclop_balance+0x153/0x1f0 fs/btrfs/ioctl.c:463 btrfs_ioctl_balance+0x482/0x7c0 fs/btrfs/ioctl.c:3562 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2bb853ec69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2bb10a82f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f2bb85c87c0 RCX: 00007f2bb853ec69 RDX: 0000000020000540 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f2bb85951d0 R08: 00007f2bb10a8700 R09: 0000000000000000 R10: 00007f2bb10a8700 R11: 0000000000000246 R12: 7fffffffffffffff R13: 0000000100000001 R14: 8000000000000001 R15: 00007f2bb85c87c8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_assertfail+0x18/0x20 fs/btrfs/messages.c:259 Code: df e8 2c 05 36 f7 e9 50 fb ff ff e8 b2 90 01 00 66 90 66 0f 1f 00 89 d1 48 89 f2 48 89 fe 48 c7 c7 80 32 2c 8b e8 c8 60 ff ff <0f> 0b 66 0f 1f 44 00 00 66 0f 1f 00 53 48 89 fb e8 73 31 de f6 48 RSP: 0018:ffffc9000ae27e48 EFLAGS: 00010246 RAX: 0000000000000066 RBX: 1ffff1100fa13c18 RCX: e812ce05a9b3c300 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000002 R08: ffffffff816f0fec R09: fffff520015c4f7d R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807d09e0c0 R13: ffff88807d09c000 R14: ffff88807d09c678 R15: dffffc0000000000 FS: 00007f2bb10a8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2bb0c90000 CR3: 0000000028447000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.