syzbot


WARNING in btrfs_block_rsv_release

Status: upstream: reported C repro on 2022/10/21 04:45
Reported-by: syzbot+dde7e853812ed57835ea@syzkaller.appspotmail.com
First crash: 37d, last: 2h35m

Cause bisection: failed (bisect log)
Patch testing requests:
Created Duration User Patch Repo Result
2022/10/28 15:32 25m yin31149@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 493ffd6605b2d3d4dc7008ab927dba319f36671f OK log
2022/10/28 15:06 0m yin31149@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 493ffd6605b2d3d4dc7008ab927dba319f36671f error
2022/10/28 11:14 30m yin31149@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master error

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3663 at fs/btrfs/space-info.h:122 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline]
WARNING: CPU: 1 PID: 3663 at fs/btrfs/space-info.h:122 block_rsv_release_bytes fs/btrfs/block-rsv.c:151 [inline]
WARNING: CPU: 1 PID: 3663 at fs/btrfs/space-info.h:122 btrfs_block_rsv_release+0x5d1/0x730 fs/btrfs/block-rsv.c:295
Modules linked in:
CPU: 1 PID: 3663 Comm: syz-executor429 Not tainted 6.1.0-rc6-syzkaller-00012-g4312098baf37 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/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 ab ca 32 fe 49 8b 1e 48 89 df 48 8b 2c 24 48 89 ee e8 e9 b4 de fd 48 39 eb 73 0b e8 9f b2 de fd <0f> 0b 31 db eb 25 e8 94 b2 de fd 48 b8 00 00 00 00 00 fc ff df 41
RSP: 0018:ffffc90003ddfa88 EFLAGS: 00010293
RAX: ffffffff83abe5d1 RBX: 00000000000df000 RCX: ffff88801d670000
RDX: 0000000000000000 RSI: 00000000000e0000 RDI: 00000000000df000
RBP: 00000000000e0000 R08: ffffffff83abe5c7 R09: fffffbfff1cebe0e
R10: fffffbfff1cebe0e R11: 1ffffffff1cebe0d R12: 1ffff1100471b30c
R13: 00000000000e0000 R14: ffff8880238d9860 R15: 0000000000000000
FS:  000055555704f300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcc37c78250 CR3: 000000007696b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_release_global_block_rsv+0x2f/0x250 fs/btrfs/block-rsv.c:463
 btrfs_free_block_groups+0xb67/0xfd0 fs/btrfs/block-group.c:4051
 close_ctree+0x6c5/0xbde fs/btrfs/disk-io.c:4710
 generic_shutdown_super+0x130/0x310 fs/super.c:492
 kill_anon_super+0x36/0x60 fs/super.c:1086
 btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2441
 deactivate_locked_super+0xa7/0xf0 fs/super.c:332
 cleanup_mnt+0x494/0x520 fs/namespace.c:1186
 task_work_run+0x243/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f01e4f47e37
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:00007fffa14e5f48 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f01e4f47e37
RDX: 00007fffa14e6009 RSI: 000000000000000a RDI: 00007fffa14e6000
RBP: 00007fffa14e6000 R08: 00000000ffffffff R09: 00007fffa14e5de0
R10: 0000555557050653 R11: 0000000000000206 R12: 00007fffa14e7080
R13: 00005555570505f0 R14: 00007fffa14e5f70 R15: 0000000000000001
 </TASK>

Crashes (54):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/24 09:06 upstream 4312098baf37 ff68ff8f .config log report syz C WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/10/21 00:57 upstream 493ffd6605b2 a0fd4dab .config log report syz C WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/25 15:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 74a66371 .config log report syz C WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/26 08:44 upstream 08ad43d554ba f4470a7b .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/25 23:47 upstream 08ad43d554ba f4470a7b .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/25 22:26 upstream 08ad43d554ba f4470a7b .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/25 21:04 upstream 08ad43d554ba f4470a7b .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-kasan-gce-smack-root 2022/11/25 14:41 upstream 08ad43d554ba 74a66371 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/25 07:01 upstream c3eb11fbb826 74a66371 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/25 03:41 upstream c3eb11fbb826 74a66371 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 20:58 upstream 4312098baf37 ff68ff8f .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 18:37 upstream 4312098baf37 ff68ff8f .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 16:37 upstream 4312098baf37 ff68ff8f .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 14:43 upstream 4312098baf37 ff68ff8f .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 14:24 upstream 4312098baf37 ff68ff8f .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-kasan-gce-smack-root 2022/11/24 12:25 upstream 4312098baf37 12c66417 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-kasan-gce-smack-root 2022/11/24 07:56 upstream 4312098baf37 12c66417 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 02:28 upstream eb7081409f94 52fdf57a .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/24 00:55 upstream eb7081409f94 52fdf57a .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/23 18:38 upstream eb7081409f94 52fdf57a .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-kasan-gce-smack-root 2022/11/23 18:06 upstream eb7081409f94 75740b3f .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/23 10:01 upstream eb7081409f94 52fdf57a .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/23 05:25 upstream eb7081409f94 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/23 04:30 upstream eb7081409f94 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/23 02:47 upstream eb7081409f94 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/23 00:34 upstream eb7081409f94 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/22 21:15 upstream eb7081409f94 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/22 18:11 upstream eb7081409f94 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-kasan-gce-smack-root 2022/11/22 16:52 upstream eb7081409f94 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-kasan-gce-smack-root 2022/11/22 09:57 upstream eb7081409f94 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/22 05:11 upstream eb7081409f94 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/21 22:08 upstream eb7081409f94 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/21 21:38 upstream eb7081409f94 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/21 17:32 upstream eb7081409f94 5bb70014 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/21 06:12 upstream eb7081409f94 5bb70014 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/18 17:38 upstream 84368d882b96 5bb70014 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/15 14:34 upstream e01d50cbd6ee 97de9cfc .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/13 23:05 upstream af7a05689189 7ba4d859 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/11/03 16:51 upstream b229b6ca5abb 7a2ebf95 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/10/26 08:26 upstream 1a2dcbdde82e 2159e4d2 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/10/25 21:47 upstream 337a0a0b63f1 45645420 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/10/23 01:20 upstream 440b7895c990 c0b80a55 .config log report info WARNING in btrfs_block_rsv_release
ci2-upstream-fs 2022/10/21 00:40 upstream 493ffd6605b2 a0fd4dab .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/26 22:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/26 17:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/24 11:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 12c66417 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/24 06:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 12c66417 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/23 21:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 12c66417 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/23 03:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/23 03:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/22 23:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/22 09:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/22 08:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config log report info WARNING in btrfs_block_rsv_release
ci-upstream-gce-arm64 2022/11/03 22:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info WARNING in btrfs_block_rsv_release
* Struck through repros no longer work on HEAD.