syzbot


general protection fault in btrfs_cache_block_group (2)

Status: moderation: reported on 2024/11/29 16:58
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+943c86f35a80e9793a37@syzkaller.appspotmail.com
First crash: 59d, last: 15d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in btrfs_cache_block_group btrfs 4 213d 244d 0/28 auto-obsoleted due to no activity on 2024/09/22 14:49

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xee001bfff110035c: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: maybe wild-memory-access in range [0x7000ffff88801ae0-0x7000ffff88801ae7]
CPU: 0 UID: 0 PID: 7353 Comm: syz.1.230 Not tainted 6.13.0-rc6-syzkaller-00038-g09a0fa92e5b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__lock_acquire+0x6a/0x2100 kernel/locking/lockdep.c:5089
Code: b6 04 30 84 c0 0f 85 f8 16 00 00 45 31 f6 83 3d db d4 9d 0e 00 0f 84 c8 13 00 00 89 54 24 60 89 5c 24 38 4c 89 f8 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 ff e8 28 97 88 00 48 be 00 00 00 00 00 fc
RSP: 0018:ffffc900049ee630 EFLAGS: 00010006
RAX: 0e001ffff110035c RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 7000ffff88801ae2
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff2030aef R12: ffff888029805a00
R13: 0000000000000000 R14: 0000000000000000 R15: 7000ffff88801ae2
FS:  00007fb0008d96c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f26e62ec000 CR3: 0000000050c86000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 __queue_work+0x759/0xf50
 queue_work_on+0x1c2/0x380 kernel/workqueue.c:2390
 btrfs_cache_block_group+0x540/0x6f0 fs/btrfs/block-group.c:962
 find_free_extent+0x4a09/0x5810 fs/btrfs/extent-tree.c:4490
 btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4672
 btrfs_alloc_tree_block+0x202/0x1440 fs/btrfs/extent-tree.c:5127
 btrfs_force_cow_block+0x526/0x1fd0 fs/btrfs/ctree.c:573
 btrfs_cow_block+0x371/0x830 fs/btrfs/ctree.c:755
 btrfs_search_slot+0xc01/0x3180 fs/btrfs/ctree.c:2153
 btrfs_insert_empty_items+0x9c/0x1a0 fs/btrfs/ctree.c:4351
 btrfs_create_new_inode+0xe27/0x1f60 fs/btrfs/inode.c:6344
 btrfs_create_common+0x1d4/0x2e0 fs/btrfs/inode.c:6578
 lookup_open fs/namei.c:3649 [inline]
 open_last_lookups fs/namei.c:3748 [inline]
 path_openat+0x1c03/0x3590 fs/namei.c:3984
 do_filp_open+0x27f/0x4e0 fs/namei.c:4014
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1402
 do_sys_open fs/open.c:1417 [inline]
 __do_sys_open fs/open.c:1425 [inline]
 __se_sys_open fs/open.c:1421 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1421
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fafffb85d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb0008d9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fafffd75fa0 RCX: 00007fafffb85d29
RDX: 0000000000000000 RSI: 0000000400141042 RDI: 0000000020000080
RBP: 00007fafffc01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fafffd75fa0 R15: 00007fff0b2f0cb8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0x6a/0x2100 kernel/locking/lockdep.c:5089
Code: b6 04 30 84 c0 0f 85 f8 16 00 00 45 31 f6 83 3d db d4 9d 0e 00 0f 84 c8 13 00 00 89 54 24 60 89 5c 24 38 4c 89 f8 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 ff e8 28 97 88 00 48 be 00 00 00 00 00 fc
RSP: 0018:ffffc900049ee630 EFLAGS: 00010006
RAX: 0e001ffff110035c RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 7000ffff88801ae2
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff2030aef R12: ffff888029805a00
R13: 0000000000000000 R14: 0000000000000000 R15: 7000ffff88801ae2
FS:  00007fb0008d96c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f26e62ec000 CR3: 0000000050c86000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	b6 04                	mov    $0x4,%dh
   2:	30 84 c0 0f 85 f8 16 	xor    %al,0x16f8850f(%rax,%rax,8)
   9:	00 00                	add    %al,(%rax)
   b:	45 31 f6             	xor    %r14d,%r14d
   e:	83 3d db d4 9d 0e 00 	cmpl   $0x0,0xe9dd4db(%rip)        # 0xe9dd4f0
  15:	0f 84 c8 13 00 00    	je     0x13e3
  1b:	89 54 24 60          	mov    %edx,0x60(%rsp)
  1f:	89 5c 24 38          	mov    %ebx,0x38(%rsp)
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 30 00          	cmpb   $0x0,(%rax,%rsi,1) <-- trapping instruction
  2e:	74 12                	je     0x42
  30:	4c 89 ff             	mov    %r15,%rdi
  33:	e8 28 97 88 00       	call   0x889760
  38:	48                   	rex.W
  39:	be 00 00 00 00       	mov    $0x0,%esi
  3e:	00 fc                	add    %bh,%ah

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/08 12:32 upstream 09a0fa92e5b4 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_cache_block_group
2024/11/25 16:46 linux-next 85a2dd7d7c81 a84878fc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in btrfs_cache_block_group
* Struck through repros no longer work on HEAD.