Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2049925rwi; Thu, 20 Oct 2022 22:11:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ya8tSXcLwphU4fQh2FCkLQI7P50WsEcmXnz69HEsQEGWKigZgLHlVll/Nkq7nd9xLinkH X-Received: by 2002:a17:906:4795:b0:794:8b93:2e33 with SMTP id cw21-20020a170906479500b007948b932e33mr8599205ejc.265.1666329070249; Thu, 20 Oct 2022 22:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666329070; cv=none; d=google.com; s=arc-20160816; b=zWsw6s3JonMx5ieDdsgNNdMlY2RArCMIcbXNTNXKz6DNonC3q2VSc3U/ebY/DJWPIT xCOki28T17YD76MYdNU0PpsHBOYVeXHZ+HR6LLz4MdRM77eTjUvmV9kRXVIh/hQwzMr+ YFeO3oriPIvwXkf2lGGc4nJVKRxlPEwGkOiVLhYouJdhols7fEoZjd+IiuR0zX1E3lJB JlCkephJCVGrqKFFGN+8C6NrCUdl9TAe86omRGnK/ZgghZFEI/oReUltwbcNTOPXdN05 PLvov98F/eNG8BOoRBphdHupWv19JbJJBNtBGmclt59HZ88jFRKgs0HgTLGqWVuhoWqx xt9A== 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:date:mime-version; bh=lb/knrwJcvc4TpWJc1KQA7sNbZt1oKWE8AfVeW6LmRw=; b=wek2yn/R6En+JO2wWhgiXlYhdER0ByptwQv8IxlisHLiGYp9q+652iWGd03qJFA/Ut nF5ZEE1VjaAIrmEc1J626BzN/faXdcCKPzG5lH3N03tFoUNSjIRyQP3xi+KrO3Fybtpg axuFmfsaKMdcvfHwFVi2L0lOdtun++Lm9UNBvFLBnxLJRaxAalM3XOMHin2oGM+Z8xuV 1Yt3eI70fMKdk3fr/XfiWzlQKfArQEXTrep/XflXCTjGpR0GqnjokHMteDpDLFW3iWTr aRG2wNQuZJ1RJ3DIVXFTH9DiKSq6SU2mzQrB39L6tqJ0B4scOEQqm1m9sqUcC/+U0ejU XNDA== 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 g14-20020a056402180e00b0045102ae16dasi16624448edy.198.2022.10.20.22.10.45; Thu, 20 Oct 2022 22:11:10 -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 S229664AbiJUEpt (ORCPT + 99 others); Fri, 21 Oct 2022 00:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbiJUEpq (ORCPT ); Fri, 21 Oct 2022 00:45:46 -0400 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F6C8156278 for ; Thu, 20 Oct 2022 21:45:41 -0700 (PDT) Received: by mail-il1-f199.google.com with SMTP id u2-20020a056e021a4200b002f9ecfa353cso2202845ilv.20 for ; Thu, 20 Oct 2022 21:45:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lb/knrwJcvc4TpWJc1KQA7sNbZt1oKWE8AfVeW6LmRw=; b=McLrY8eCfR+gKA3tvN4skszh4WsGnv9q7sxJC37fCJtNTMtQBQl3UkbsVqe6xI7uMO 0UhaxFkunDyUy+3iAXSTVwwW3PbQr+U4VJaTfOhWZqflapwYOo4EKtNYNNRgoFXp0bKN wEnetaryJN7rG0lmlRfLPY3zoyt7RnfEYU4KihKP9i79pu03OD/KcmeZHa1GDKB6pGpq XPCFRiVFbkZ2jrhZcB2na+oxs52+Jh29Dn6rWa7J+EGQg6xBpx5RQ6VqoKL9lDgIJBNb VqOvia7J4685c96XYdJ3mnJ1MQuurSYHubmdweO5ybat4KlgGNv9ki6arR2Eteucz+8b 9bUA== X-Gm-Message-State: ACrzQf2EF0aYo4g+2dAOI4YTkZyx41Cuj++sjcPRVy4fFQfIKHqdDvXv ElVVspRJKa24dCFucTLZT4X1WtuM0dX/VKFGvRNyHfkBwiD3 MIME-Version: 1.0 X-Received: by 2002:a05:6638:1311:b0:363:cb56:ed82 with SMTP id r17-20020a056638131100b00363cb56ed82mr13161007jad.98.1666327541090; Thu, 20 Oct 2022 21:45:41 -0700 (PDT) Date: Thu, 20 Oct 2022 21:45:41 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002a909705eb841dda@google.com> Subject: [syzbot] WARNING in btrfs_block_rsv_release From: syzbot To: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,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 Hello, syzbot found the following issue on: HEAD commit: 493ffd6605b2 Merge tag 'ucount-rlimits-cleanups-for-v5.19'.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1025dd72880000 kernel config: https://syzkaller.appspot.com/x/.config?x=d19f5d16783f901 dashboard link: https://syzkaller.appspot.com/bug?extid=dde7e853812ed57835ea compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d16e6e880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1672873c880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/f1ff6481e26f/disk-493ffd66.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/101bd3c7ae47/vmlinux-493ffd66.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/df89d50ed284/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dde7e853812ed57835ea@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3612 at fs/btrfs/space-info.h:122 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] WARNING: CPU: 0 PID: 3612 at fs/btrfs/space-info.h:122 block_rsv_release_bytes fs/btrfs/block-rsv.c:151 [inline] WARNING: CPU: 0 PID: 3612 at fs/btrfs/space-info.h:122 btrfs_block_rsv_release+0x5d1/0x730 fs/btrfs/block-rsv.c:295 Modules linked in: CPU: 0 PID: 3612 Comm: syz-executor894 Not tainted 6.0.0-syzkaller-09423-g493ffd6605b2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:122 [inline] RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] RIP: 0010:block_rsv_release_bytes fs/btrfs/block-rsv.c:151 [inline] RIP: 0010:btrfs_block_rsv_release+0x5d1/0x730 fs/btrfs/block-rsv.c:295 Code: 8b 7c 24 10 74 08 4c 89 f7 e8 2b 94 33 fe 49 8b 1e 48 89 df 48 8b 2c 24 48 89 ee e8 a9 2b e0 fd 48 39 eb 73 0b e8 5f 29 e0 fd <0f> 0b 31 db eb 25 e8 54 29 e0 fd 48 b8 00 00 00 00 00 fc ff df 41 RSP: 0000:ffffc90003baf9e8 EFLAGS: 00010293 RAX: ffffffff83a657f1 RBX: 00000000000d0000 RCX: ffff888020c59d80 RDX: 0000000000000000 RSI: 00000000000e0000 RDI: 00000000000d0000 RBP: 00000000000e0000 R08: ffffffff83a657e7 R09: fffffbfff1c19fde R10: fffffbfff1c19fde R11: 1ffffffff1c19fdd R12: 1ffff11004f2190c R13: 00000000000e0000 R14: ffff88802790c860 R15: 0000000000000000 FS: 000055555651b300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f207ed54000 CR3: 0000000026ea2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_release_global_block_rsv+0x2f/0x250 fs/btrfs/block-rsv.c:463 btrfs_free_block_groups+0xb67/0xfd0 fs/btrfs/block-group.c:4053 close_ctree+0x6c5/0xbde fs/btrfs/disk-io.c:4710 generic_shutdown_super+0x130/0x310 fs/super.c:491 kill_anon_super+0x36/0x60 fs/super.c:1085 btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2441 deactivate_locked_super+0xa7/0xf0 fs/super.c:331 cleanup_mnt+0x4ce/0x560 fs/namespace.c:1186 task_work_run+0x146/0x1c0 kernel/task_work.c:177 ptrace_notify+0x29a/0x340 kernel/signal.c:2354 ptrace_report_syscall include/linux/ptrace.h:420 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:482 [inline] syscall_exit_work+0x8c/0xe0 kernel/entry/common.c:249 syscall_exit_to_user_mode_prepare+0x63/0xc0 kernel/entry/common.c:276 __syscall_exit_to_user_mode_work kernel/entry/common.c:281 [inline] syscall_exit_to_user_mode+0xa/0x60 kernel/entry/common.c:294 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f694614c2f7 Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffee1dcd8e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f694614c2f7 RDX: 00007ffee1dcd9a9 RSI: 000000000000000a RDI: 00007ffee1dcd9a0 RBP: 00007ffee1dcd9a0 R08: 00000000ffffffff R09: 00007ffee1dcd780 R10: 000055555651c653 R11: 0000000000000206 R12: 00007ffee1dcea20 R13: 000055555651c5f0 R14: 00007ffee1dcd910 R15: 0000000000000004 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches