loop0: detected capacity change from 0 to 32768 BTRFS: device fsid ed167579-eb65-4e76-9a50-61ac97e9b59d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5329) BTRFS info (device loop0): first mount of filesystem ed167579-eb65-4e76-9a50-61ac97e9b59d BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) assertion failed: folio_order(folio) == 0, in fs/btrfs/disk-io.c:3856 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:3856! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5329 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-13423-ga8662bcd2ff1 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:write_dev_supers fs/btrfs/disk-io.c:3856 [inline] RIP: 0010:write_all_supers+0x400f/0x4090 fs/btrfs/disk-io.c:4153 Code: 1d fe 90 0f 0b e8 f1 d7 d0 fd 48 c7 c7 40 cd 8c 8c 48 c7 c6 00 16 8d 8c 48 c7 c2 c0 cd 8c 8c b9 10 0f 00 00 e8 32 8d 34 fd 90 <0f> 0b e8 ca d7 d0 fd 4c 89 f7 48 c7 c6 80 00 8d 8c e8 2b 21 1d fe RSP: 0018:ffffc9000d5173a0 EFLAGS: 00010246 RAX: 0000000000000045 RBX: 0000000000000002 RCX: 921e5da91a368700 RDX: ffffc9000df72000 RSI: 000000000000828b RDI: 000000000000828c RBP: ffffc9000d517770 R08: ffffffff81a2a49c R09: 1ffff92001aa2e10 R10: dffffc0000000000 R11: fffff52001aa2e11 R12: ffffea000153d408 R13: 1ffffd40002a7a81 R14: 1ffffd40002a7a80 R15: ffffea000153d400 FS: 00007f26c74666c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000190 CR3: 0000000043dae000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x1ded/0x3650 fs/btrfs/transaction.c:2541 insert_balance_item+0x126c/0x2090 fs/btrfs/volumes.c:3771 btrfs_balance+0x994/0x10c0 fs/btrfs/volumes.c:4647 btrfs_ioctl_balance+0x3f5/0x660 fs/btrfs/ioctl.c:3586 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f26c658d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f26c7466038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f26c67a5fa0 RCX: 00007f26c658d169 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f26c660e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f26c67a5fa0 R15: 00007ffd8b064878 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:write_dev_supers fs/btrfs/disk-io.c:3856 [inline] RIP: 0010:write_all_supers+0x400f/0x4090 fs/btrfs/disk-io.c:4153 Code: 1d fe 90 0f 0b e8 f1 d7 d0 fd 48 c7 c7 40 cd 8c 8c 48 c7 c6 00 16 8d 8c 48 c7 c2 c0 cd 8c 8c b9 10 0f 00 00 e8 32 8d 34 fd 90 <0f> 0b e8 ca d7 d0 fd 4c 89 f7 48 c7 c6 80 00 8d 8c e8 2b 21 1d fe RSP: 0018:ffffc9000d5173a0 EFLAGS: 00010246 RAX: 0000000000000045 RBX: 0000000000000002 RCX: 921e5da91a368700 RDX: ffffc9000df72000 RSI: 000000000000828b RDI: 000000000000828c RBP: ffffc9000d517770 R08: ffffffff81a2a49c R09: 1ffff92001aa2e10 R10: dffffc0000000000 R11: fffff52001aa2e11 R12: ffffea000153d408 R13: 1ffffd40002a7a81 R14: 1ffffd40002a7a80 R15: ffffea000153d400 FS: 00007f26c74666c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000190 CR3: 0000000043dae000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400