From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f205.google.com (mail-il1-f205.google.com [209.85.166.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 520BC1114 for ; Sat, 11 Jan 2025 07:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736579072; cv=none; b=Fs4ThwWEZ1XQ7QNCqP7T8mABUEHkThyApTNq5fGOj+hNU06bsiEuWWVkwCG5Dwk4F3zFspj2GR4g9oOvt6SnV/K6W747a5SFQHjhRkKOu5w1VbQUB8eX+m3ofmm4/UPaCbs+hTy4sHyVse26mTnnTuP9QY2FIGfzb6c0M1nZTJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736579072; c=relaxed/simple; bh=xpHDXCkpIE/t9PSfH/wuLxZ8WUbRTk5tKafaVuN4VeU=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=CtGtXjMIHkiGbWD1VP0ZctNO5LTekKQzqzfh7aj1LdDY2hdyuI0Z9UOuBO6Ex15hkfejnHcmfSLs3HIkg41RMEsj02YE/DpZul5VePZtF3KOgUpU010MHlC5wGB0ROIUg/sMVoISh4M+ahRgcI6V9SgI7gZDbHUFDjbRwmkqFUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.205 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f205.google.com with SMTP id e9e14a558f8ab-3a9cefa1969so26084215ab.1 for ; Fri, 10 Jan 2025 23:04:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736579069; x=1737183869; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GpzgNqC5MsfUKOMian7qB4Fduxwpdg5GDldIDvqyUIo=; b=G7uUVhZ9RvQTpImNW/sx31RYtjjjs4GHOLuRS6+Bma3IhWljjEwZ3cWhvO7AOn4M3c 17ojx650o8atOxKkvBeae25jww8WIYo7FOGs7hKw1+RLLoHNoefeAjamzE6jSh4Jnfce lKWD42KWlFNolBivBkvfW7d3rOD+3D4oSw0UCBRHaXrr4FvWvD/E5Wwh+BLq/D7JC0bQ 4VELyks/q5AMctxz9Q6QEMFFh8EI5r17hsXhfNJviSCLjH8VN21tjgHpl3HcE+sJ4/Hc RiBfx5j7dnGstfe/HMOx2eZiu20pyMrDjzK9MU09i3pvSJCpq7/dNMdjxs3l6dopPN6x FcdQ== X-Forwarded-Encrypted: i=1; AJvYcCXzn5vKfRYR9PsJk9GjMwa1DJQ5M1yf1opTZZVizsDcDqXeFaJnzntmK6GHerHekHjl3M71p8wkEHDMvUo=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9xDEV22z2shyVOqJ6esETuVS/JOcDB8aGd/lcsLFaisGpR32o wPtMHoDzFpHbQIRcywcMVm1+QnVUbjdFo7KsOF6SaaMOYqRDTnVtLnQw8m65QHj74LsWKpH0YlR 7nZ/T6HD+BAybib4sR0QwWJJG4g7P66lQjKD2CZLQcdAcsqfmCDsbmhM= X-Google-Smtp-Source: AGHT+IF15UtVaebEbRP5XoNL+umGrDcQsLxwCMmgeFGOUJsQuZwqhlw3AhYj6CweMtHdkwbvjz+sm90IZ7CjsrvXvKFmQIcqN2Ix Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1948:b0:3a7:e4c7:ad18 with SMTP id e9e14a558f8ab-3ce3aa540d2mr89325485ab.18.1736579069461; Fri, 10 Jan 2025 23:04:29 -0800 (PST) Date: Fri, 10 Jan 2025 23:04:29 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <678217fd.050a0220.d0267.003f.GAE@google.com> Subject: [syzbot] [btrfs?] WARNING: ODEBUG bug in btrfs_free_stale_devices 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" Hello, syzbot found the following issue on: HEAD commit: 7b4b9bf203da Add linux-next specific files for 20250107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=119eb4b0580000 kernel config: https://syzkaller.appspot.com/x/.config?x=63fa2c9d5e12faef dashboard link: https://syzkaller.appspot.com/bug?extid=c2d267b16d6e52226d9e compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=159eb4b0580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=151393c4580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/c179cc0c7a3c/disk-7b4b9bf2.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/fdea80f2ec16/vmlinux-7b4b9bf2.xz kernel image: https://storage.googleapis.com/syzbot-assets/a277fcaff608/bzImage-7b4b9bf2.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/dcff07befc9d/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c2d267b16d6e52226d9e@syzkaller.appspotmail.com ------------[ cut here ]------------ ODEBUG: free active (active state 0) object: ffff88807d1259f8 object type: percpu_counter hint: 0x0 WARNING: CPU: 1 PID: 5838 at lib/debugobjects.c:615 debug_print_object+0x17a/0x1f0 lib/debugobjects.c:612 Modules linked in: CPU: 1 UID: 0 PID: 5838 Comm: udevd Not tainted 6.13.0-rc6-next-20250107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:debug_print_object+0x17a/0x1f0 lib/debugobjects.c:612 Code: e8 7b 14 39 fd 4c 8b 0b 48 c7 c7 00 0e 60 8c 48 8b 74 24 08 48 89 ea 44 89 e1 4d 89 f8 ff 34 24 e8 cb 7f 93 fc 48 83 c4 08 90 <0f> 0b 90 90 ff 05 b8 87 2e 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 RSP: 0018:ffffc90003c87a58 EFLAGS: 00010282 RAX: ac00c60cb060fa00 RBX: ffffffff8c626760 RCX: ffff88807ce51e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffffff8c600f80 R08: ffffffff817ff732 R09: fffffbfff1cfa188 R10: dffffc0000000000 R11: fffffbfff1cfa188 R12: 0000000000000000 R13: ffffffff8c600e98 R14: dffffc0000000000 R15: ffff88807d1259f8 FS: 00007f98c056ac80(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f98c00c2723 CR3: 0000000077450000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __debug_check_no_obj_freed lib/debugobjects.c:1099 [inline] debug_check_no_obj_freed+0x45b/0x580 lib/debugobjects.c:1129 slab_free_hook mm/slub.c:2284 [inline] slab_free mm/slub.c:4609 [inline] kfree+0x115/0x430 mm/slub.c:4757 btrfs_free_stale_devices+0x55b/0x5f0 fs/btrfs/volumes.c:562 btrfs_scan_one_device+0xae4/0xdb0 btrfs_control_ioctl+0x165/0x410 fs/btrfs/super.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f98c011ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007fff6cbc0e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f98c011ad49 RDX: 00007fff6cbc0e28 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff6cbc1e68 R14: 000056187570f1a0 R15: 00007fff6cbc2b88 --- 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. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title 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. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup