FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5103 Comm: syz.0.0 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #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:53 [inline] should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:154 should_failslab+0xac/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4038 [inline] slab_alloc_node mm/slub.c:4114 [inline] __kmalloc_cache_noprof+0x6c/0x2c0 mm/slub.c:4290 kmalloc_noprof include/linux/slab.h:878 [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+0x51c/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 qgroup_free_reserved_data fs/btrfs/qgroup.c:4334 [inline] __btrfs_qgroup_release_data+0x387/0xab0 fs/btrfs/qgroup.c:4368 btrfs_page_mkwrite+0xbf9/0x1410 fs/btrfs/file.c:2041 do_page_mkwrite+0x198/0x480 mm/memory.c:3162 wp_page_shared mm/memory.c:3563 [inline] do_wp_page+0x23d3/0x52d0 mm/memory.c:3713 handle_pte_fault+0x10e3/0x6800 mm/memory.c:5771 __handle_mm_fault mm/memory.c:5898 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6066 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x15/0x70 arch/x86/lib/copy_user_64.S:44 Code: cc 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 83 f9 40 73 40 83 f9 08 73 21 85 c9 74 0f 8a 06 <88> 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 0f 1f 84 RSP: 0018:ffffc9000b05f800 EFLAGS: 00050202 RAX: ffffffff84bcfb00 RBX: 0000000020000144 RCX: 0000000000000004 RDX: 0000000000000000 RSI: ffffc9000b05f910 RDI: 0000000020000140 RBP: 0000000000000000 R08: 0000000000000003 R09: fffff5200160bf22 R10: dffffc0000000000 R11: fffff5200160bf22 R12: 0000000000000004 R13: 1ffff9200160bf18 R14: 0000000020000140 R15: ffffc9000b05f910 copy_user_generic arch/x86/include/asm/uaccess_64.h:121 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:142 [inline] _inline_copy_to_user include/linux/uaccess.h:188 [inline] _copy_to_user+0x86/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:216 [inline] copy_to_sockptr_offset include/linux/sockptr.h:110 [inline] copy_to_sockptr+0x65/0xa0 include/linux/sockptr.h:117 do_ip_getsockopt+0x1ff9/0x2940 ip_getsockopt+0xed/0x2e0 net/ipv4/ip_sockglue.c:1765 dccp_getsockopt+0x163/0x1910 net/dccp/proto.c:687 do_sock_getsockopt+0x3c4/0x7e0 net/socket.c:2396 __sys_getsockopt+0x267/0x330 net/socket.c:2425 __do_sys_getsockopt net/socket.c:2435 [inline] __se_sys_getsockopt net/socket.c:2432 [inline] __x64_sys_getsockopt+0xb5/0xd0 net/socket.c:2432 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:0x7f140b77dff9 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:00007f140c65e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007f140b935f80 RCX: 00007f140b77dff9 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f140c65e090 R08: 0000000020000140 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f140b935f80 R15: 00007ffc4a3d3e68 ------------[ 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: 5103 Comm: syz.0.0 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #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: 20 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 47 95 20 fe e9 a3 fe ff ff e8 dd d0 b6 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:ffffc9000b05ead8 EFLAGS: 00010293 RAX: ffffffff83de1723 RBX: 00000000fffffff4 RCX: ffff8880007dc880 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83de153b R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4a3d3 R12: ffffc9000b05ec88 R13: ffff88804d1b7f00 R14: 0000000000001000 R15: 0000000000000000 FS: 00007f140c65e6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000140 CR3: 000000004122e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x51c/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 qgroup_free_reserved_data fs/btrfs/qgroup.c:4334 [inline] __btrfs_qgroup_release_data+0x387/0xab0 fs/btrfs/qgroup.c:4368 btrfs_page_mkwrite+0xbf9/0x1410 fs/btrfs/file.c:2041 do_page_mkwrite+0x198/0x480 mm/memory.c:3162 wp_page_shared mm/memory.c:3563 [inline] do_wp_page+0x23d3/0x52d0 mm/memory.c:3713 handle_pte_fault+0x10e3/0x6800 mm/memory.c:5771 __handle_mm_fault mm/memory.c:5898 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6066 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x15/0x70 arch/x86/lib/copy_user_64.S:44 Code: cc 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 83 f9 40 73 40 83 f9 08 73 21 85 c9 74 0f 8a 06 <88> 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 0f 1f 84 RSP: 0018:ffffc9000b05f800 EFLAGS: 00050202 RAX: ffffffff84bcfb00 RBX: 0000000020000144 RCX: 0000000000000004 RDX: 0000000000000000 RSI: ffffc9000b05f910 RDI: 0000000020000140 RBP: 0000000000000000 R08: 0000000000000003 R09: fffff5200160bf22 R10: dffffc0000000000 R11: fffff5200160bf22 R12: 0000000000000004 R13: 1ffff9200160bf18 R14: 0000000020000140 R15: ffffc9000b05f910 copy_user_generic arch/x86/include/asm/uaccess_64.h:121 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:142 [inline] _inline_copy_to_user include/linux/uaccess.h:188 [inline] _copy_to_user+0x86/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:216 [inline] copy_to_sockptr_offset include/linux/sockptr.h:110 [inline] copy_to_sockptr+0x65/0xa0 include/linux/sockptr.h:117 do_ip_getsockopt+0x1ff9/0x2940 ip_getsockopt+0xed/0x2e0 net/ipv4/ip_sockglue.c:1765 dccp_getsockopt+0x163/0x1910 net/dccp/proto.c:687 do_sock_getsockopt+0x3c4/0x7e0 net/socket.c:2396 __sys_getsockopt+0x267/0x330 net/socket.c:2425 __do_sys_getsockopt net/socket.c:2435 [inline] __se_sys_getsockopt net/socket.c:2432 [inline] __x64_sys_getsockopt+0xb5/0xd0 net/socket.c:2432 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:0x7f140b77dff9 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:00007f140c65e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007f140b935f80 RCX: 00007f140b77dff9 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f140c65e090 R08: 0000000020000140 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f140b935f80 R15: 00007ffc4a3d3e68 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 20 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 47 95 20 fe e9 a3 fe ff ff e8 dd d0 b6 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:ffffc9000b05ead8 EFLAGS: 00010293 RAX: ffffffff83de1723 RBX: 00000000fffffff4 RCX: ffff8880007dc880 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83de153b R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4a3d3 R12: ffffc9000b05ec88 R13: ffff88804d1b7f00 R14: 0000000000001000 R15: 0000000000000000 FS: 00007f140c65e6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000140 CR3: 000000004122e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: cc int3 1: 0f 1f 40 00 nopl 0x0(%rax) 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: f3 0f 1e fa endbr64 19: 48 83 f9 40 cmp $0x40,%rcx 1d: 73 40 jae 0x5f 1f: 83 f9 08 cmp $0x8,%ecx 22: 73 21 jae 0x45 24: 85 c9 test %ecx,%ecx 26: 74 0f je 0x37 28: 8a 06 mov (%rsi),%al * 2a: 88 07 mov %al,(%rdi) <-- trapping instruction 2c: 48 ff c7 inc %rdi 2f: 48 ff c6 inc %rsi 32: 48 ff c9 dec %rcx 35: 75 f1 jne 0x28 37: c3 ret 38: cc int3 39: cc int3 3a: cc int3 3b: cc int3 3c: 66 data16 3d: 0f .byte 0xf 3e: 1f (bad) 3f: 84 .byte 0x84