syzbot


kernel BUG in find_free_extent

Status: upstream: reported C repro on 2022/11/28 06:01
Reported-by: syzbot+002d5a495e384b9bf0d1@syzkaller.appspotmail.com
First crash: 754d, last: 741d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in find_free_extent C 1 660d 747d 0/1 upstream: reported C repro on 2022/12/05 04:16

Sample crash report:
RDX: 0000000000000000 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fff4e007b70 R08: 0000000000000001 R09: 00007fff4e007b80
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007fff4e007bb0 R14: 00007fff4e007b90 R15: 0000000000000002
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-tree.c:7391!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8165 Comm: syz-executor397 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:ffff88809c456f80 EFLAGS: 00010293
RAX: ffff8880941c6400 RBX: 00000000fffffff4 RCX: ffffffff82e2938d
RDX: 0000000000000000 RSI: ffffffff82e29e15 RDI: 0000000000000005
RBP: ffff8880afad9380 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000005
R13: ffff8880afad9200 R14: 0000000000000000 R15: ffff8880afad9200
FS:  0000555555d10300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056059ed168b8 CR3: 0000000097056000 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:0x7fc9ef229aa9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff4e007b48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fc9ef229aa9
RDX: 0000000000000000 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fff4e007b70 R08: 0000000000000001 R09: 00007fff4e007b80
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007fff4e007bb0 R14: 00007fff4e007b90 R15: 0000000000000002
Modules linked in:
---[ end trace 7c87b5cf65b26561 ]---
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:ffff88809c456f80 EFLAGS: 00010293
RAX: ffff8880941c6400 RBX: 00000000fffffff4 RCX: ffffffff82e2938d
RDX: 0000000000000000 RSI: ffffffff82e29e15 RDI: 0000000000000005
RBP: ffff8880afad9380 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000005
R13: ffff8880afad9200 R14: 0000000000000000 R15: ffff8880afad9200
FS:  0000555555d10300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056059ed168b8 CR3: 0000000097056000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/28 06:15 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in find_free_extent
2022/12/11 10:58 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in find_free_extent
2022/11/28 06:00 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in find_free_extent
* Struck through repros no longer work on HEAD.