------------[ cut here ]------------ WARNING: CPU: 1 PID: 5220 at fs/btrfs/tree-checker.c:1545 check_extent_item fs/btrfs/tree-checker.c:1545 [inline] WARNING: CPU: 1 PID: 5220 at fs/btrfs/tree-checker.c:1545 check_leaf_item fs/btrfs/tree-checker.c:1880 [inline] WARNING: CPU: 1 PID: 5220 at fs/btrfs/tree-checker.c:1545 __btrfs_check_leaf+0x3552/0x6430 fs/btrfs/tree-checker.c:2039 Modules linked in: CPU: 1 UID: 0 PID: 5220 Comm: syz-executor Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:check_extent_item fs/btrfs/tree-checker.c:1545 [inline] RIP: 0010:check_leaf_item fs/btrfs/tree-checker.c:1880 [inline] RIP: 0010:__btrfs_check_leaf+0x3552/0x6430 fs/btrfs/tree-checker.c:2039 Code: 48 8b 44 24 60 48 89 84 24 08 01 00 00 0f b6 44 24 70 41 89 c6 e9 3b fa ff ff e8 69 ab be fd e9 38 fe ff ff e8 5f ab be fd 90 <0f> 0b 90 e9 c9 fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 91 fb RSP: 0018:ffffc9000333e7c0 EFLAGS: 00010293 RAX: ffffffff83d63a71 RBX: 0000000000000000 RCX: ffff88802d730000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000333edd8 R08: ffffffff83d6370c R09: ffffffff83d635c5 R10: 0000000000000005 R11: ffff88802d730000 R12: dffffc0000000000 R13: 0000000000000fc7 R14: ffff88807a2600bc R15: 0000000000000005 FS: 000055555cb6f500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005629b4007668 CR3: 0000000027cdc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_check_leaf+0x16/0x40 fs/btrfs/tree-checker.c:2055 btree_csum_one_bio+0x41a/0x890 fs/btrfs/disk-io.c:299 btrfs_bio_csum fs/btrfs/bio.c:526 [inline] btrfs_submit_chunk fs/btrfs/bio.c:744 [inline] btrfs_submit_bbio+0x13e1/0x18a0 fs/btrfs/bio.c:784 submit_eb_page fs/btrfs/extent_io.c:1887 [inline] btree_write_cache_pages+0x1099/0x1770 fs/btrfs/extent_io.c:1937 do_writepages+0x35d/0x870 mm/page-writeback.c:2683 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:398 __filemap_fdatawrite_range mm/filemap.c:431 [inline] filemap_fdatawrite_range+0x11a/0x180 mm/filemap.c:449 btrfs_write_marked_extents+0x27d/0x450 fs/btrfs/transaction.c:1151 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1259 [inline] btrfs_commit_transaction+0x1de1/0x3740 fs/btrfs/transaction.c:2521 sync_filesystem+0x1c8/0x230 fs/sync.c:66 generic_shutdown_super+0x72/0x2d0 fs/super.c:621 kill_anon_super+0x3b/0x70 fs/super.c:1237 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2121 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373 task_work_run+0x24f/0x310 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f888b57f327 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffd8ac42bc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f888b57f327 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd8ac42c80 RBP: 00007ffd8ac42c80 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd8ac43d00 R13: 00007f888b5f0134 R14: 000000000001433c R15: 00007ffd8ac43d40