syzbot


WARNING in __btrfs_run_delayed_items

Status: auto-obsoleted due to no activity on 2023/12/16 04:42
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+90ad99829e4f013084b7@syzkaller.appspotmail.com
First crash: 186d, last: 180d
Cause bisection: introduced by (bisect log) [ignored commit]:
commit 29eefa6d0d07e185f7bfe9576f91e6dba98189c2
Author: xiaoshoukui <xiaoshoukui@gmail.com>
Date: Tue Aug 15 06:55:59 2023 +0000

  btrfs: fix BUG_ON condition in btrfs_cancel_balance

Crash: possible deadlock in __btrfs_release_delayed_node (log)
Repro: syz .config
  
Fix bisection: fixed by (bisect log) [ignored commit]:
commit 8e7f82deb0c0386a03b62e30082574347f8b57d5
Author: Filipe Manana <fdmanana@suse.com>
Date: Tue Sep 12 10:45:39 2023 +0000

  btrfs: fix race between reading a directory and adding entries to it

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in __btrfs_run_delayed_items 0 (2) 2023/09/07 04:42
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/09/21 04:51 16m retest repro upstream OK log

Sample crash report:
BTRFS info (device loop3): force zlib compression, level 3
BTRFS info (device loop3): allowing degraded mounts
BTRFS info (device loop3): using free space tree
BTRFS info (device loop3): auto enabling async discard
------------[ cut here ]------------
BTRFS: Transaction aborted (error -17)
WARNING: CPU: 1 PID: 5219 at fs/btrfs/delayed-inode.c:1158 __btrfs_run_delayed_items+0x3d3/0x430 fs/btrfs/delayed-inode.c:1158
Modules linked in:
CPU: 1 PID: 5219 Comm: syz-executor.3 Not tainted 6.5.0-syzkaller-12053-g744a759492b5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__btrfs_run_delayed_items+0x3d3/0x430 fs/btrfs/delayed-inode.c:1158
Code: fe c1 38 c1 0f 8c b5 fc ff ff 48 89 ef e8 c5 31 42 fe e9 a8 fc ff ff e8 3b 48 e8 fd 48 c7 c7 60 3c 4c 8b 89 de e8 dd c2 ae fd <0f> 0b e9 69 ff ff ff f3 0f 1e fa e8 1d 48 e8 fd 48 8b 44 24 10 42
RSP: 0018:ffffc90004d1f8f0 EFLAGS: 00010246
RAX: c983e039b4061000 RBX: 00000000ffffffef RCX: ffff888021dd8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff888077a2f8b0 R08: ffffffff81541672 R09: 1ffff920009a3e88
R10: dffffc0000000000 R11: fffff520009a3e89 R12: dffffc0000000000
R13: ffff888077a2f888 R14: 0000000000000000 R15: ffff888077a2f8b0
FS:  00007fbab9d0b6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff8cad4b028 CR3: 0000000078e4d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_commit_transaction+0xf44/0x2ff0 fs/btrfs/transaction.c:2393
 create_snapshot+0x4a5/0x7e0 fs/btrfs/ioctl.c:845
 btrfs_mksubvol+0x5d0/0x750 fs/btrfs/ioctl.c:995
 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1041
 __btrfs_ioctl_snap_create+0x344/0x460 fs/btrfs/ioctl.c:1294
 btrfs_ioctl_snap_create+0x13c/0x190 fs/btrfs/ioctl.c:1321
 btrfs_ioctl+0xbbf/0xd40
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857
 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:0x7fbab907cae9
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:00007fbab9d0b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fbab919bf80 RCX: 00007fbab907cae9
RDX: 0000000020002180 RSI: 0000000050009401 RDI: 0000000000000009
RBP: 00007fbab90c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fbab919bf80 R15: 00007ffd6831ff58
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/07 04:41 upstream 744a759492b5 72324844 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __btrfs_run_delayed_items
2023/09/07 04:07 upstream 744a759492b5 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_run_delayed_items
2023/09/07 00:13 upstream 744a759492b5 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_run_delayed_items
2023/09/01 02:29 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_run_delayed_items
* Struck through repros no longer work on HEAD.