syzbot


WARNING in lookup_inline_extent_backref

Status: upstream: reported C repro on 2022/12/05 08:13
Reported-by: syzbot+d6f9ff86c1d804ba2bc6@syzkaller.appspotmail.com
First crash: 64d, last: 5h26m

Cause bisection: failed (bisect log)

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5750 at fs/btrfs/extent-tree.c:872 lookup_inline_extent_backref+0xd28/0x10e0 fs/btrfs/extent-tree.c:872
Modules linked in:
CPU: 0 PID: 5750 Comm: syz-executor414 Not tainted 6.2.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:lookup_inline_extent_backref+0xd28/0x10e0 fs/btrfs/extent-tree.c:872
Code: f9 ff ff e8 fa fd 21 fe 8b b4 24 40 01 00 00 31 ff e8 9c fa 21 fe 8b b4 24 40 01 00 00 85 f6 0f 84 10 02 00 00 e8 d8 fd 21 fe <0f> 0b 41 bd fb ff ff ff e8 cb fd 21 fe 48 8b 44 24 18 48 8d 78 6a
RSP: 0018:ffffc9000a9bee08 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88801c23d7c0 RSI: ffffffff835f5468 RDI: 0000000000000005
RBP: ffffc9000a9bee98 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88801dc4adc0
R13: 0000000000000001 R14: 0000000000001000 R15: ffff8880767c3150
FS:  00007eff7cb01700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a00746a960 CR3: 0000000028e2d000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 insert_inline_extent_backref+0xb3/0x1b0 fs/btrfs/extent-tree.c:1159
 __btrfs_inc_extent_ref.isra.0+0xdb/0x3e0 fs/btrfs/extent-tree.c:1462
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1679 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1706 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1950 [inline]
 __btrfs_run_delayed_refs+0x2017/0x3760 fs/btrfs/extent-tree.c:2015
 btrfs_run_delayed_refs+0x19a/0x490 fs/btrfs/extent-tree.c:2146
 qgroup_account_snapshot fs/btrfs/transaction.c:1551 [inline]
 create_pending_snapshot+0x11ce/0x2110 fs/btrfs/transaction.c:1824
 create_pending_snapshots+0x174/0x2c0 fs/btrfs/transaction.c:1894
 btrfs_commit_transaction+0xaa6/0x36c0 fs/btrfs/transaction.c:2351
 prepare_to_relocate+0x41d/0x6b0 fs/btrfs/relocation.c:3600
 relocate_block_group+0x123/0xd60 fs/btrfs/relocation.c:3625
 btrfs_relocate_block_group+0x51a/0xda0 fs/btrfs/relocation.c:4087
 btrfs_relocate_chunk+0x14a/0x350 fs/btrfs/volumes.c:3240
 __btrfs_balance fs/btrfs/volumes.c:3968 [inline]
 btrfs_balance+0x1caf/0x3b50 fs/btrfs/volumes.c:4352
 btrfs_ioctl_balance fs/btrfs/ioctl.c:3591 [inline]
 btrfs_ioctl+0xfda/0x5830 fs/btrfs/ioctl.c:4622
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7eff7cb55a69
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:00007eff7cb012f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007eff7cbe07e0 RCX: 00007eff7cb55a69
RDX: 0000000020000480 RSI: 00000000c4009420 RDI: 0000000000000008
RBP: 00007eff7cbad26c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 8000000000000000
R13: 00007eff7cbac270 R14: 0000000100000000 R15: 00007eff7cbe07e8
 </TASK>

Crashes (31):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/12/29 04:42 upstream 1b929c02afd3 44712fbc .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in lookup_inline_extent_backref
ci-upstream-kasan-gce-root 2022/12/18 20:03 upstream f9ff5644bcc0 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/03 04:58 upstream a4412fdd49dc e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in lookup_inline_extent_backref
ci-upstream-linux-next-kasan-gce-root 2023/01/22 17:57 linux-next d514392f17fd 559a440a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in lookup_inline_extent_backref
ci-upstream-linux-next-kasan-gce-root 2023/01/15 15:39 linux-next 0a093b2893c7 a63719e7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/02/05 05:32 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/02/02 09:38 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/02/02 06:39 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/02/02 03:48 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/01/30 20:34 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/01/30 08:07 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/01/30 02:40 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/01/26 16:53 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/01/26 07:14 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2023/01/16 14:06 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/30 02:43 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/28 07:05 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/27 12:01 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/26 14:36 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/24 07:32 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/21 02:15 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/19 11:59 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/18 01:59 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/17 16:47 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/16 04:09 upstream 041fae9c105a 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/15 13:38 upstream 041fae9c105a 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/12 08:28 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/12 03:46 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/03 13:49 upstream 97ee9d1c1696 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/03 02:08 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
ci2-upstream-fs 2022/12/03 01:19 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in lookup_inline_extent_backref
* Struck through repros no longer work on HEAD.