FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5341 Comm: syz.0.0 Not tainted 6.14.0-rc6-syzkaller-00003-g4d872d51bc9d #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x40a/0x550 lib/fault-inject.c:174 should_failslab+0xac/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4068 [inline] slab_alloc_node mm/slub.c:4144 [inline] __kmalloc_cache_noprof+0x70/0x390 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:901 [inline] ulist_add_merge+0x18c/0x4b0 fs/btrfs/ulist.c:223 add_extent_changeset fs/btrfs/extent-io-tree.c:216 [inline] clear_state_bit+0x170/0x370 fs/btrfs/extent-io-tree.c:583 __clear_extent_bit+0x530/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x5a9/0xab0 fs/btrfs/qgroup.c:4365 alloc_ordered_extent+0x112/0x5d0 fs/btrfs/ordered-data.c:168 btrfs_alloc_ordered_extent+0x1e4/0xa60 cow_file_range+0x93e/0x12e0 fs/btrfs/inode.c:1423 btrfs_run_delalloc_range+0x724/0xfe0 fs/btrfs/inode.c:2349 writepage_delalloc+0x95c/0x10e0 fs/btrfs/extent_io.c:1255 extent_writepage fs/btrfs/extent_io.c:1558 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2248 [inline] btrfs_writepages+0x13be/0x22c0 fs/btrfs/extent_io.c:2376 do_writepages+0x35f/0x880 mm/page-writeback.c:2687 filemap_fdatawrite_wbc mm/filemap.c:389 [inline] __filemap_fdatawrite_range mm/filemap.c:422 [inline] filemap_write_and_wait_range+0x283/0x3a0 mm/filemap.c:694 filemap_invalidate_pages mm/filemap.c:2795 [inline] kiocb_invalidate_pages+0xb1/0x140 mm/filemap.c:2814 __iomap_dio_rw+0xc04/0x25b0 fs/iomap/direct-io.c:670 btrfs_dio_write fs/btrfs/direct-io.c:774 [inline] btrfs_direct_write+0x610/0xa30 fs/btrfs/direct-io.c:879 btrfs_do_write_iter+0x2a0/0x7c0 fs/btrfs/file.c:1381 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa63f8d169 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:00007faa603f5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007faa641a6160 RCX: 00007faa63f8d169 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 000000000000000b RBP: 00007faa603f5090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000080000002 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007faa641a6160 R15: 00007fffdee54798 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:584! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5341 Comm: syz.0.0 Not tainted 6.14.0-rc6-syzkaller-00003-g4d872d51bc9d #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:clear_state_bit+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 18 fe e9 89 fd ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c b0 fe ff ff 48 89 ef e8 c7 98 18 fe e9 a3 fe ff ff e8 2d 53 b1 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d3b6118 EFLAGS: 00010293 RAX: ffffffff84108be3 RBX: 00000000fffffff4 RCX: ffff888035b42440 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff841089fb R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d8a88f R12: ffffc9000d3b6318 R13: ffff888040c580c0 R14: 0000000000001000 R15: 0000000000000000 FS: 00007faa603f56c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000040000003e000 CR3: 0000000043388000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x530/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x5a9/0xab0 fs/btrfs/qgroup.c:4365 alloc_ordered_extent+0x112/0x5d0 fs/btrfs/ordered-data.c:168 btrfs_alloc_ordered_extent+0x1e4/0xa60 cow_file_range+0x93e/0x12e0 fs/btrfs/inode.c:1423 btrfs_run_delalloc_range+0x724/0xfe0 fs/btrfs/inode.c:2349 writepage_delalloc+0x95c/0x10e0 fs/btrfs/extent_io.c:1255 extent_writepage fs/btrfs/extent_io.c:1558 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2248 [inline] btrfs_writepages+0x13be/0x22c0 fs/btrfs/extent_io.c:2376 do_writepages+0x35f/0x880 mm/page-writeback.c:2687 filemap_fdatawrite_wbc mm/filemap.c:389 [inline] __filemap_fdatawrite_range mm/filemap.c:422 [inline] filemap_write_and_wait_range+0x283/0x3a0 mm/filemap.c:694 filemap_invalidate_pages mm/filemap.c:2795 [inline] kiocb_invalidate_pages+0xb1/0x140 mm/filemap.c:2814 __iomap_dio_rw+0xc04/0x25b0 fs/iomap/direct-io.c:670 btrfs_dio_write fs/btrfs/direct-io.c:774 [inline] btrfs_direct_write+0x610/0xa30 fs/btrfs/direct-io.c:879 btrfs_do_write_iter+0x2a0/0x7c0 fs/btrfs/file.c:1381 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa63f8d169 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:00007faa603f5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007faa641a6160 RCX: 00007faa63f8d169 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 000000000000000b RBP: 00007faa603f5090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000080000002 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007faa641a6160 R15: 00007fffdee54798 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 18 fe e9 89 fd ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c b0 fe ff ff 48 89 ef e8 c7 98 18 fe e9 a3 fe ff ff e8 2d 53 b1 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d3b6118 EFLAGS: 00010293 RAX: ffffffff84108be3 RBX: 00000000fffffff4 RCX: ffff888035b42440 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff841089fb R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d8a88f R12: ffffc9000d3b6318 R13: ffff888040c580c0 R14: 0000000000001000 R15: 0000000000000000 FS: 00007faa603f56c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000040000003e000 CR3: 0000000043388000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400