syzbot


kernel BUG in close_ctree (2)

Status: upstream: reported on 2025/02/20 01:29
Reported-by: syzbot+1bb366f0586d485d68d5@syzkaller.appspotmail.com
First crash: 20d, last: 20d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in close_ctree missing-backport origin:upstream C done 896 62d 729d 0/3 upstream: reported C repro on 2023/03/13 21:19
linux-6.1 kernel BUG in close_ctree origin:upstream missing-backport C done 622 63d 730d 3/3 fixed on 2025/02/10 13:25
upstream kernel BUG in close_ctree btrfs C error 6530 12d 840d 0/28 upstream: reported C repro on 2022/11/23 08:10

Sample crash report:
BTRFS info (device loop0): last unmount of filesystem ed167579-eb65-4e76-9a50-61ac97e9b59d
BTRFS warning (device loop0): transaction 14 (with 0 dirty metadata bytes) is not committed
assertion failed: !found, in fs/btrfs/disk-io.c:4584
------------[ cut here ]------------
kernel BUG at fs/btrfs/ctree.h:3722!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4301 Comm: syz-executor Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : assertfail+0x28/0x2c fs/btrfs/ctree.h:3721
lr : assertfail+0x28/0x2c fs/btrfs/ctree.h:3721
sp : ffff800021247710
x29: ffff800021247710 x28: ffff0000de71a028 x27: dfff800000000000
x26: ffff0000de71a000 x25: 1ffff00004248ef8 x24: ffff8000212477e0
x23: ffff8000212477c0 x22: 1ffff00004248efc x21: ffff0000db0b8ce8
x20: ffff8000212477a0 x19: ffff0000db0b8000 x18: 1fffe00036798976
x17: ffff800015aed000 x16: ffff80001231f9fc x15: ffff0001b3cc4bbc
x14: 1ffff00002b5e0b2 x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : c577508e6f93f300
x8 : c577508e6f93f300 x7 : ffff8000082783ec x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000ab302f8
x2 : ffff0001b3cc4cd0 x1 : 0000000100000000 x0 : 0000000000000034
Call trace:
 assertfail+0x28/0x2c fs/btrfs/ctree.h:3721
 warn_about_uncommitted_trans fs/btrfs/disk-io.c:4584 [inline]
 close_ctree+0xa70/0xb10 fs/btrfs/disk-io.c:4760
 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:397
 generic_shutdown_super+0x130/0x328 fs/super.c:501
 kill_anon_super+0x4c/0x74 fs/super.c:1128
 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2449
 deactivate_locked_super+0xac/0x124 fs/super.c:332
 deactivate_super+0xf0/0x110 fs/super.c:363
 cleanup_mnt+0x394/0x41c fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x240/0x2f0 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2080/0x2cb8 arch/arm64/kernel/signal.c:1132
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 91048000 90002c22 91100042 97fff91d (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/20 01:28 linux-6.1.y 0cbb5f65e52f b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in close_ctree
* Struck through repros no longer work on HEAD.