syzbot


kernel BUG in update_inline_extent_backref

Status: auto-obsoleted due to no activity on 2023/11/13 04:12
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+c128866d4c63fd09a097@syzkaller.appspotmail.com
First crash: 542d, last: 542d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] kernel BUG in update_inline_extent_backref 0 (1) 2023/08/09 04:15

Sample crash report:
   btrfs_ioctl_balance+0x496/0x7c0 fs/btrfs/ioctl.c:3604
   vfs_ioctl fs/ioctl.c:51 [inline]
   __do_sys_ioctl fs/ioctl.c:870 [inline]
   __se_sys_ioctl+0xf8/0x170 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
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-tree.c:1125!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 21577 Comm: syz-executor.3 Not tainted 6.5.0-rc4-syzkaller-00211-ge6fda526d9db #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:update_inline_extent_backref+0x530/0x5d0 fs/btrfs/extent-tree.c:1125
Code: a7 5d fe e9 9e fc ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 11 ff ff ff 48 89 df e8 6a a7 5d fe e9 04 ff ff ff e8 30 da 04 fe <0f> 0b e8 29 da 04 fe 4c 89 e7 e8 71 80 00 00 4c 89 e3 49 8d 7c 24
RSP: 0018:ffffc9000bee6fc8 EFLAGS: 00010246
RAX: ffffffff8386cd50 RBX: 0000000000000002 RCX: 0000000000040000
RDX: ffffc900113d3000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 00000000000000b2 R08: ffffffff8386cb53 R09: ffffffff8386ca4a
R10: 0000000000000004 R11: ffff88803763bb80 R12: 00000000fffffffe
R13: 0000000000000001 R14: ffff88801e544000 R15: 0000000000000f3e
FS:  00007ffb6820e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8f6ded71e5 CR3: 000000003561e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 remove_extent_backref fs/btrfs/extent-tree.c:1193 [inline]
 __btrfs_free_extent+0x1329/0x3250 fs/btrfs/extent-tree.c:3116
 run_delayed_data_ref fs/btrfs/extent-tree.c:1532 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1706 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1948 [inline]
 __btrfs_run_delayed_refs+0x108d/0x3f90 fs/btrfs/extent-tree.c:2009
 btrfs_run_delayed_refs+0x140/0x480 fs/btrfs/extent-tree.c:2121
 btrfs_commit_transaction+0x495/0x2ff0 fs/btrfs/transaction.c:2163
 relocate_block_group+0xb7d/0xcd0 fs/btrfs/relocation.c:3763
 btrfs_relocate_block_group+0x7ab/0xd70 fs/btrfs/relocation.c:4087
 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3283
 __btrfs_balance+0x1b06/0x2690 fs/btrfs/volumes.c:4018
 btrfs_balance+0xbd8/0x10d0 fs/btrfs/volumes.c:4395
 btrfs_ioctl_balance+0x496/0x7c0 fs/btrfs/ioctl.c:3604
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf8/0x170 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:0x7ffb6747cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffb6820e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffb6759c1f0 RCX: 00007ffb6747cae9
RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000009
RBP: 00007ffb674c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007ffb6759c1f0 R15: 00007ffeafbe6508
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:update_inline_extent_backref+0x530/0x5d0 fs/btrfs/extent-tree.c:1125
Code: a7 5d fe e9 9e fc ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 11 ff ff ff 48 89 df e8 6a a7 5d fe e9 04 ff ff ff e8 30 da 04 fe <0f> 0b e8 29 da 04 fe 4c 89 e7 e8 71 80 00 00 4c 89 e3 49 8d 7c 24
RSP: 0018:ffffc9000bee6fc8 EFLAGS: 00010246
RAX: ffffffff8386cd50 RBX: 0000000000000002 RCX: 0000000000040000
RDX: ffffc900113d3000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 00000000000000b2 R08: ffffffff8386cb53 R09: ffffffff8386ca4a
R10: 0000000000000004 R11: ffff88803763bb80 R12: 00000000fffffffe
R13: 0000000000000001 R14: ffff88801e544000 R15: 0000000000000f3e
FS:  00007ffb6820e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8f6ded71e5 CR3: 000000003561e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/05 04:11 upstream e6fda526d9db cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in update_inline_extent_backref
* Struck through repros no longer work on HEAD.