syzbot
WARNING in btree_csum_one_bio (2)
Status:
upstream: reported on 2026/09/09 16:23
Subsystems:
btrfs
Labels:
prio:low
[Documentation on labels]
Reported-by: syzbot+5fd974495fd56ec60faf@syzkaller.appspotmail.com
First crash: 63d, last: 3d08h
Sample crash report:
item 2 key (260 XATTR_ITEM 653371426) itemoff 3773 itemsize 47
location key (0 0 0) type 8
transid 7 data_len 6 name_len 11
item 3 key (260 XATTR_ITEM 899767254) itemoff 3726 itemsize 47
location key (0 0 0) type 8
transid 7 data_len 6 name_len 11
item 4 key (260 EXTENT_DATA 0) itemoff 3673 itemsize 53
generation 21 type 1
extent data disk bytenr 8867840 nr 131072
extent data offset 0 nr 4096 ram 131072
extent compression 0
item 5 key (260 EXTENT_DATA 4096) itemoff 3620 itemsize 53
generation 21 type 2
extent data disk bytenr 8867840 nr 131072
extent data offset 4096 nr 126976 ram 131072
extent compression 0
item 6 key (260 EXTENT_DATA 131072) itemoff 3567 itemsize 53
generation 21 type 1
extent data disk bytenr 8859648 nr 4096
extent data offset 0 nr 4096 ram 4096
extent compression 0
item 7 key (260 EXTENT_DATA 135168) itemoff 3514 itemsize 53
generation 21 type 1
extent data disk bytenr 8863744 nr 4096
extent data offset 0 nr 4096 ram 4096
extent compression 0
item 8 key (260 EXTENT_DATA 139264) itemoff 3461 itemsize 53
generation 21 type 1
extent data disk bytenr 8998912 nr 913408
extent data offset 0 nr 16384 ram 913408
extent compression 0
item 9 key (260 EXTENT_DATA 155648) itemoff 3408 itemsize 53
generation 21 type 2
extent data disk bytenr 8998912 nr 913408
extent data offset 16384 nr 897024 ram 913408
extent compression 0
item 10 key (260 EXTENT_DATA 163840) itemoff 3355 itemsize 53
generation 21 type 2
extent data disk bytenr 8998912 nr 913408
extent data offset 24576 nr 888832 ram 913408
extent compression 0
item 11 key (18446744073709551606 EXTENT_CSUM 8859648) itemoff 3291 itemsize 64
range start 8859648 end 8867840 length 8192
item 12 key (18446744073709551606 EXTENT_CSUM 8867840) itemoff 3259 itemsize 32
range start 8867840 end 8871936 length 4096
item 13 key (18446744073709551606 EXTENT_CSUM 8998912) itemoff 3131 itemsize 128
range start 8998912 end 9015296 length 16384
BTRFS error (device loop0): block=9916416 write time tree block corruption detected
------------[ cut here ]------------
IS_ENABLED(CONFIG_BTRFS_DEBUG) || btrfs_header_owner(eb) == BTRFS_TREE_LOG_OBJECTID
WARNING: fs/btrfs/disk-io.c:337 at btree_csum_one_bio+0x9d6/0xd10 fs/btrfs/disk-io.c:336, CPU#0: syz.0.0/5348
Modules linked in:
CPU: 0 UID: 0 PID: 5348 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:btree_csum_one_bio+0x9d6/0xd10 fs/btrfs/disk-io.c:336
Code: ff 89 c6 e8 dc 8b a2 fd 45 85 f6 75 07 e8 c2 86 a2 fd eb 42 80 3d 01 ce 80 0d 01 75 15 e8 b2 86 a2 fd eb 32 e8 ab 86 a2 fd 90 <0f> 0b 90 e9 35 fc ff ff e8 9d 86 a2 fd c6 05 de cd 80 0d 01 48 c7
RSP: 0018:ffffc9000ddbe480 EFLAGS: 00010283
RAX: ffffffff842699f5 RBX: fffffffffffffffa RCX: 0000000000100000
RDX: ffffc90020001000 RSI: 00000000000143a3 RDI: 00000000000143a4
RBP: ffffc9000ddbe550 R08: ffffffff9014c68b R09: 1ffffffff20298d1
R10: dffffc0000000000 R11: fffffbfff20298d2 R12: ffffffff842696ab
R13: 00000000ffffff8b R14: ffff88805544b05f R15: ffff888040c12c28
FS: 00007f6fe45f56c0(0000) GS:ffff88808a9fe000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6fe45d3fe8 CR3: 000000000fc98000 CR4: 0000000000352ef0
Call Trace:
<TASK>
btrfs_bio_csum fs/btrfs/bio.c:565 [inline]
btrfs_submit_chunk fs/btrfs/bio.c:807 [inline]
btrfs_submit_bbio+0x1726/0x1eb0 fs/btrfs/bio.c:878
write_meta_extent_buffer fs/btrfs/extent_io.c:2544 [inline]
btree_writepages+0xc21/0x13a0 fs/btrfs/extent_io.c:2656
do_writepages+0x338/0x560 mm/page-writeback.c:2560
filemap_writeback mm/filemap.c:387 [inline]
filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:412
btrfs_write_marked_extents+0x1ac/0x2f0 fs/btrfs/transaction.c:1212
btrfs_sync_log+0x7fb/0x2850 fs/btrfs/tree-log.c:3353
btrfs_sync_file+0xe43/0x13c0 fs/btrfs/file.c:1726
generic_write_sync include/linux/fs.h:2695 [inline]
iomap_dio_complete+0x6c1/0x8e0 fs/iomap/direct-io.c:162
btrfs_direct_write+0x925/0xd50 fs/btrfs/direct-io.c:988
btrfs_do_write_iter+0x325/0x790 fs/btrfs/file.c:1427
iter_file_splice_write+0xa31/0x1240 fs/splice.c:736
do_splice_from fs/splice.c:936 [inline]
direct_splice_actor+0x101/0x160 fs/splice.c:1187
splice_direct_to_actor+0x57b/0xcb0 fs/splice.c:1096
do_splice_direct_actor fs/splice.c:1230 [inline]
do_splice_direct+0x195/0x290 fs/splice.c:1256
do_sendfile+0x52e/0x7c0 fs/read_write.c:1371
__do_sys_sendfile64 fs/read_write.c:1432 [inline]
__se_sys_sendfile64+0x144/0x1a0 fs/read_write.c:1418
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:0x7f6fe819fb19
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:00007f6fe45f4fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f6fe8426090 RCX: 00007f6fe819fb19
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000009
RBP: 00007f6fe8237b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6fe8426128 R14: 00007f6fe8426090 R15: 00007ffff44cc0a8
</TASK>
* Struck through repros no longer work on HEAD.