FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5329 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 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x410/0x560 lib/fault-inject.c:174 should_failslab+0xa8/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4638 [inline] slab_alloc_node mm/slub.c:4974 [inline] kmem_cache_alloc_noprof+0xa1/0x600 mm/slub.c:5010 alloc_ordered_extent+0x273/0x8a0 fs/btrfs/ordered-data.c:189 btrfs_alloc_ordered_extent+0x1f1/0xad0 fs/btrfs/ordered-data.c:-1 btrfs_create_dio_extent+0x7c/0x160 fs/btrfs/direct-io.c:156 btrfs_new_extent_direct fs/btrfs/direct-io.c:205 [inline] btrfs_get_blocks_direct_write+0x8cb/0xea0 fs/btrfs/direct-io.c:330 btrfs_dio_iomap_begin fs/btrfs/direct-io.c:540 [inline] iomap_iter_next include/linux/iomap.h:382 [inline] btrfs_dio_iomap_next+0x1075/0x16c0 fs/btrfs/direct-io.c:807 iomap_iter+0xe2/0xec0 fs/iomap/iter.c:122 __iomap_dio_rw+0xc87/0x1c40 fs/iomap/direct-io.c:815 btrfs_dio_write fs/btrfs/direct-io.c:861 [inline] btrfs_direct_write+0x7fe/0xce0 fs/btrfs/direct-io.c:965 btrfs_do_write_iter+0x325/0x790 fs/btrfs/file.c:1427 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 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:0x7f352b39e159 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:00007f352c264fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f352b626090 RCX: 00007f352b39e159 RDX: 00000000ffffffd7 RSI: 0000200000000000 RDI: 0000000000000006 RBP: 00007f352c265050 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f352b626128 R14: 00007f352b626090 R15: 00007ffc7e79a178 ------------[ cut here ]------------ 1 WARNING: fs/btrfs/space-info.h:286 at btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:286 [inline], CPU#0: syz.0.0/5329 WARNING: fs/btrfs/space-info.h:286 at btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:323 [inline], CPU#0: syz.0.0/5329 WARNING: fs/btrfs/space-info.h:286 at btrfs_free_reserved_data_space_noquota+0x3df/0x680 fs/btrfs/delalloc-space.c:191, CPU#0: syz.0.0/5329 Modules linked in: CPU: 0 UID: 0 PID: 5329 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_space_info_update_bytes_may_use fs/btrfs/space-info.h:286 [inline] RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:323 [inline] RIP: 0010:btrfs_free_reserved_data_space_noquota+0x3df/0x680 fs/btrfs/delalloc-space.c:191 Code: 00 74 08 48 89 ef e8 00 de f8 fd 4c 8b 7d 00 4c 89 ff 4c 8b 64 24 08 4c 89 e6 e8 4c 42 87 fd 4d 39 e7 73 16 e8 72 3f 87 fd 90 <0f> 0b 90 45 31 ff 41 80 7c 1d 00 00 75 94 eb 9a e8 5c 3f 87 fd 41 RSP: 0018:ffffc9000ed1f548 EFLAGS: 00010293 RAX: ffffffff84409c4e RBX: dffffc0000000000 RCX: ffff888000bd8000 RDX: 0000000000000000 RSI: 0000000008800000 RDI: 0000000000260000 RBP: ffff888052878080 R08: ffffffff907a567f R09: 1ffffffff20f4acf R10: dffffc0000000000 R11: fffffbfff20f4ad0 R12: 0000000008800000 R13: 1ffff1100a50f010 R14: ffff888052878000 R15: 0000000000260000 FS: 00007f352c2656c0(0000) GS:ffff88808c2c7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f352c264ff8 CR3: 0000000043c0e000 CR4: 0000000000352ef0 Call Trace: btrfs_free_reserved_data_space+0x9f/0xe0 fs/btrfs/delalloc-space.c:211 btrfs_dio_iomap_begin fs/btrfs/direct-io.c:613 [inline] iomap_iter_next include/linux/iomap.h:382 [inline] btrfs_dio_iomap_next+0xeb4/0x16c0 fs/btrfs/direct-io.c:807 iomap_iter+0xe2/0xec0 fs/iomap/iter.c:122 __iomap_dio_rw+0xc87/0x1c40 fs/iomap/direct-io.c:815 btrfs_dio_write fs/btrfs/direct-io.c:861 [inline] btrfs_direct_write+0x7fe/0xce0 fs/btrfs/direct-io.c:965 btrfs_do_write_iter+0x325/0x790 fs/btrfs/file.c:1427 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 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:0x7f352b39e159 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:00007f352c264fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f352b626090 RCX: 00007f352b39e159 RDX: 00000000ffffffd7 RSI: 0000200000000000 RDI: 0000000000000006 RBP: 00007f352c265050 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f352b626128 R14: 00007f352b626090 R15: 00007ffc7e79a178