------------[ cut here ]------------ WARNING: CPU: 0 PID: 5328 at mm/page-writeback.c:2716 __folio_mark_dirty+0x202/0xe30 mm/page-writeback.c:2716 Modules linked in: CPU: 0 UID: 0 PID: 5328 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~bpo12+1 04/01/2014 RIP: 0010:__folio_mark_dirty+0x202/0xe30 mm/page-writeback.c:2716 Code: 3c 20 00 74 08 48 89 df e8 7b be 2a 00 4c 8b 33 4c 89 f6 48 83 e6 08 31 ff e8 6a 84 c3 ff 49 83 e6 08 75 20 e8 7f 7f c3 ff 90 <0f> 0b 90 eb 1a e8 74 7f c3 ff 48 8b 2c 24 e9 74 07 00 00 e8 66 7f RSP: 0018:ffffc9000d3275b0 EFLAGS: 00010087 RAX: ffffffff81fc9491 RBX: ffffea00010dd200 RCX: 0000000000100000 RDX: ffffc9000eac3000 RSI: 00000000000002f8 RDI: 00000000000002f9 RBP: ffff8880427897d8 R08: ffffea00010dd207 R09: 1ffffd400021ba40 R10: dffffc0000000000 R11: fffff9400021ba41 R12: dffffc0000000000 R13: ffff8880427897e0 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f662e54e6c0(0000) GS:ffff88808d733000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000080 CR3: 00000000120a2000 CR4: 0000000000352ef0 Call Trace: block_dirty_folio+0x17a/0x1d0 fs/buffer.c:754 ext4_block_page_mkwrite fs/ext4/inode.c:6649 [inline] ext4_page_mkwrite+0xf07/0x1190 fs/ext4/inode.c:6746 do_page_mkwrite+0x14d/0x310 mm/memory.c:3488 wp_page_shared mm/memory.c:3889 [inline] do_wp_page+0x268d/0x5800 mm/memory.c:4108 handle_pte_fault mm/memory.c:6193 [inline] __handle_mm_fault+0x1033/0x5400 mm/memory.c:6318 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6487 do_user_addr_fault+0x764/0x1380 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x82/0x100 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0010:rep_movs_alternative+0x33/0x90 arch/x86/lib/copy_user_64.S:61 Code: 73 25 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 e9 cd 31 04 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb RSP: 0018:ffffc9000d327dc8 EFLAGS: 00050246 RAX: 0000000c0000000b RBX: 0000000000000008 RCX: 0000000000000008 RDX: 0000000000000000 RSI: ffffc9000d327e20 RDI: 0000200000000080 RBP: ffffc9000d327ec0 R08: ffffc9000d327e27 R09: 1ffff92001a64fc4 R10: dffffc0000000000 R11: fffff52001a64fc5 R12: 0000200000000088 R13: 00007ffffffff000 R14: ffffc9000d327e20 R15: 0000200000000080 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] _inline_copy_to_user include/linux/uaccess.h:197 [inline] _copy_to_user+0x8a/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] do_pipe2+0xc2/0x170 fs/pipe.c:1040 __do_sys_pipe fs/pipe.c:1061 [inline] __se_sys_pipe fs/pipe.c:1059 [inline] __x64_sys_pipe+0x3a/0x50 fs/pipe.c:1059 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f662d78efc9 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:00007f662e54e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000016 RAX: ffffffffffffffda RBX: 00007f662d9e6090 RCX: 00007f662d78efc9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000080 RBP: 00007f662d811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f662d9e6128 R14: 00007f662d9e6090 R15: 00007ffd8c41bee8 ---------------- Code disassembly (best guess): 0: 73 25 jae 0x27 2: 85 c9 test %ecx,%ecx 4: 74 0f je 0x15 6: 8a 06 mov (%rsi),%al 8: 88 07 mov %al,(%rdi) a: 48 ff c7 inc %rdi d: 48 ff c6 inc %rsi 10: 48 ff c9 dec %rcx 13: 75 f1 jne 0x6 15: e9 cd 31 04 00 jmp 0x431e7 1a: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 21: 00 00 00 24: 0f 1f 00 nopl (%rax) 27: 48 8b 06 mov (%rsi),%rax * 2a: 48 89 07 mov %rax,(%rdi) <-- trapping instruction 2d: 48 83 c6 08 add $0x8,%rsi 31: 48 83 c7 08 add $0x8,%rdi 35: 83 e9 08 sub $0x8,%ecx 38: 74 db je 0x15 3a: 83 f9 08 cmp $0x8,%ecx 3d: 73 e8 jae 0x27 3f: eb .byte 0xeb