kernel BUG in btrfs_subpage_assert

Status: upstream: reported on 2026/08/24 11:08
Subsystems: btrfs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+d490d04560554e6259b9@syzkaller.appspotmail.com
First crash: 51d, last: 5d17h
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
6e13ecfd assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ ❓ kernel BUG in btrfs_subpage_assert 2026/08/22 01:10 2026/08/22 01:10 2026/08/22 01:57 1e72964b
▶ ▼ Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly btrfs report (Oct 2026) 0 (1) 2026/10/06 04:33
[syzbot] [btrfs?] kernel BUG in btrfs_subpage_assert 0 (1) 2026/08/24 11:08

Sample crash report:
assertion failed: folio_test_private(folio) && folio_get_private(folio), in fs/btrfs/subpage.c:154
------------[ cut here ]------------
kernel BUG at fs/btrfs/subpage.c:154!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5326 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:btrfs_subpage_assert+0x43f/0x4e0 fs/btrfs/subpage.c:154
Code: dc 83 fd eb 05 e8 31 dc 83 fd 48 c7 c7 a0 d7 5c 8c 48 c7 c6 40 dd 5c 8c 48 c7 c2 40 d8 5c 8c b9 9a 00 00 00 e8 42 7e e3 fc 90 <0f> 0b e8 0a dc 83 fd 4c 89 ff 48 c7 c6 a0 de 5c 8c e8 7b e0 e3 fc
RSP: 0018:ffffc9000e297438 EFLAGS: 00010246
RAX: 0000000000000062 RBX: 0000000000000000 RCX: 96736d62eaf70e00
RDX: ffffc9000f7d9000 RSI: 00000000000fffff RDI: 0000000000100000
RBP: ffffea00003a3900 R08: ffffc9000e2971c7 R09: 1ffff92001c52e38
R10: dffffc0000000000 R11: fffff52001c52e39 R12: 1ffffd4000074721
R13: ffff888051eb4000 R14: 1ffffd4000074720 R15: ffffea00003a3900
FS:  00007fd1f8b8d6c0(0000) GS:ffff88808c2bb000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd1f7faff00 CR3: 000000001f6d0000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 btrfs_subpage_set_fixup_dirty fs/btrfs/subpage.c:529 [inline]
 btrfs_folio_set_fixup_dirty+0x475/0xc70 fs/btrfs/subpage.c:568
 btrfs_data_dirty_folio+0x1c7/0x240 fs/btrfs/inode.c:10818
 bio_set_pages_dirty+0x372/0xa70 block/bio.c:1734
 __blkdev_direct_IO+0x821/0xf60 block/fops.c:249
 blkdev_direct_IO+0x121e/0x17c0 block/fops.c:440
 blkdev_read_iter+0x223/0x420 block/fops.c:821
 aio_read+0x33a/0x4d0 fs/aio.c:1656
 __io_submit_one fs/aio.c:-1 [inline]
 io_submit_one+0x774/0x13d0 fs/aio.c:2106
 __do_sys_io_submit fs/aio.c:2165 [inline]
 __se_sys_io_submit+0x195/0x340 fs/aio.c:2135
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd1f7d9e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd1f8b8cfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1
RAX: ffffffffffffffda RBX: 00007fd1f8026090 RCX: 00007fd1f7d9e159
RDX: 00002000000000c0 RSI: 00000000000000ca RDI: 00007fd1f8b6c000
RBP: 00007fd1f7e3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd1f8026128 R14: 00007fd1f8026090 R15: 00007ffed7f0c608
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:btrfs_subpage_assert+0x43f/0x4e0 fs/btrfs/subpage.c:154
Code: dc 83 fd eb 05 e8 31 dc 83 fd 48 c7 c7 a0 d7 5c 8c 48 c7 c6 40 dd 5c 8c 48 c7 c2 40 d8 5c 8c b9 9a 00 00 00 e8 42 7e e3 fc 90 <0f> 0b e8 0a dc 83 fd 4c 89 ff 48 c7 c6 a0 de 5c 8c e8 7b e0 e3 fc
RSP: 0018:ffffc9000e297438 EFLAGS: 00010246
RAX: 0000000000000062 RBX: 0000000000000000 RCX: 96736d62eaf70e00
RDX: ffffc9000f7d9000 RSI: 00000000000fffff RDI: 0000000000100000
RBP: ffffea00003a3900 R08: ffffc9000e2971c7 R09: 1ffff92001c52e38
R10: dffffc0000000000 R11: fffff52001c52e39 R12: 1ffffd4000074721
R13: ffff888051eb4000 R14: 1ffffd4000074720 R15: ffffea00003a3900
FS:  00007fd1f8b8d6c0(0000) GS:ffff88808c2bb000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c8741a5a3 CR3: 000000001f6d0000 CR4: 0000000000352ef0

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/05 05:54 upstream a90ee4305c4a 57bbd979 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/29 21:25 upstream 6f8319e3e9a4 328436b3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/27 22:40 upstream d266640c6c76 a3c7249d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/27 11:39 upstream fd179f8a05be a3c7249d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/27 11:39 upstream fd179f8a05be a3c7249d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/26 07:01 upstream f14572c203d5 a3c7249d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/26 06:49 upstream f14572c203d5 a3c7249d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/18 23:32 upstream 5dd1818b15d9 853b104b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/18 01:15 upstream 4982d3552a3b 8d7d05f1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/12 19:22 upstream 5225b8eec4c9 70a60e12 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/12 19:17 upstream 5225b8eec4c9 70a60e12 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/11 00:30 upstream 50d05c7c76c9 1fe56c0a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/08 13:00 upstream 28924df2a08f 351387c4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/08 12:10 upstream 28924df2a08f 351387c4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/07 13:07 upstream df2908090cda 5e4626f5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/07 09:26 upstream df2908090cda 4f7b22a0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/09/05 15:38 upstream 4d7d9486c04d 4f7b22a0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/08/27 00:59 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/08/26 19:29 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/08/20 11:10 upstream a4ff2be345d0 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
2026/08/20 11:06 upstream a4ff2be345d0 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in btrfs_subpage_assert
* Struck through repros no longer work on HEAD.