Hello,
syzbot found the following issue on:
HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=137b0187880000
kernel config:
https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link:
https://syzkaller.appspot.com/bug?extid=002d5a495e384b9bf0d1
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+002d5a...@syzkaller.appspotmail.com
RDX: 0000000000000000 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fa1a895b1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc9cb8d99f R14: 00007fa1a895b300 R15: 0000000000022000
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-tree.c:7391!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 16101 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:find_free_extent+0x2995/0x3b50 fs/btrfs/extent-tree.c:7391
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 06 0f 00 00 49 8b 7d 30 4c 89 e1 48 89 ea e8 65 cb 13 00 e9 38 e6 ff ff e8 5b e7 7f fe <0f> 0b e8 54 e7 7f fe 65 ff 05 2d 41 1f 7d 48 c7 c0 48 39 10 8b 48
RSP: 0018:ffff8880aa4fef80 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 00000000fffffff4 RCX: ffffc9000602c000
RDX: 0000000000040000 RSI: ffffffff82e29e15 RDI: 0000000000000005
RBP: ffff888095761cc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000005
R13: ffff888095761b40 R14: 0000000000000000 R15: ffff888095761b40
FS: 00007fa1a895b700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4560010d20 CR3: 000000004aafa000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
btrfs_reserve_extent+0x296/0x440 fs/btrfs/extent-tree.c:7820
btrfs_alloc_tree_block+0x3f2/0x15f0 fs/btrfs/extent-tree.c:8279
alloc_tree_block_no_bg_flush+0x1b6/0x250 fs/btrfs/ctree.c:1039
__btrfs_cow_block+0x3c7/0x10a0 fs/btrfs/ctree.c:1094
btrfs_cow_block+0x276/0x840 fs/btrfs/ctree.c:1557
btrfs_search_slot+0x66a/0x1ee0 fs/btrfs/ctree.c:2881
btrfs_insert_empty_items+0xba/0x180 fs/btrfs/ctree.c:4910
btrfs_insert_empty_item fs/btrfs/ctree.h:2923 [inline]
insert_balance_item.isra.0+0x112/0x1430 fs/btrfs/volumes.c:3060
btrfs_balance+0xd8f/0x3f30 fs/btrfs/volumes.c:3865
btrfs_ioctl_balance+0x620/0x750 fs/btrfs/ioctl.c:5141
btrfs_ioctl+0xd80/0x76d0 fs/btrfs/ioctl.c:6001
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa1aa3e90d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007fa1a895b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa1aa508f80 RCX: 00007fa1aa3e90d9
RDX: 0000000000000000 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fa1a895b1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc9cb8d99f R14: 00007fa1a895b300 R15: 0000000000022000
Modules linked in:
---[ end trace 4a81312fc1df3b17 ]---
RIP: 0010:find_free_extent+0x2995/0x3b50 fs/btrfs/extent-tree.c:7391
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 06 0f 00 00 49 8b 7d 30 4c 89 e1 48 89 ea e8 65 cb 13 00 e9 38 e6 ff ff e8 5b e7 7f fe <0f> 0b e8 54 e7 7f fe 65 ff 05 2d 41 1f 7d 48 c7 c0 48 39 10 8b 48
RSP: 0018:ffff8880aa4fef80 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 00000000fffffff4 RCX: ffffc9000602c000
RDX: 0000000000040000 RSI: ffffffff82e29e15 RDI: 0000000000000005
RBP: ffff888095761cc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000005
R13: ffff888095761b40 R14: 0000000000000000 R15: ffff888095761b40
FS: 00007fa1a895b700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4564011078 CR3: 000000004aafa000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
---
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
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.