------------[ cut here ]------------ WARNING: CPU: 1 PID: 4879 at fs/buffer.c:1084 mark_buffer_dirty+0x325/0x4b0 Modules linked in: CPU: 1 PID: 4879 Comm: syz-executor.5 Not tainted 5.15.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:mark_buffer_dirty+0x325/0x4b0 fs/buffer.c:1084 Code: 89 df e8 7e a4 e4 ff 48 8b 3b be 04 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d e9 e7 82 fc ff e8 d2 38 9b ff eb 80 e8 cb 38 9b ff <0f> 0b e9 27 fd ff ff e8 bf 38 9b ff 0f 0b e9 46 fd ff ff e8 b3 38 RSP: 0018:ffffc90002caeea8 EFLAGS: 00010246 RAX: ffffffff81e4c7d5 RBX: ffff888071b80158 RCX: 0000000000040000 RDX: ffffc900048d1000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff81e4c4f4 R09: ffffffff8320ad79 R10: 0000000000000002 R11: ffff8880153c3b80 R12: ffff8880719af658 R13: dffffc0000000000 R14: 1ffff1100e335ecb R15: 1ffff92000595de4 FS: 00007f14c3d3d700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000201a6030 CR3: 00000000145a4000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __nilfs_mark_inode_dirty+0x101/0x280 fs/nilfs2/inode.c:1119 nilfs_mark_inode_dirty_sync fs/nilfs2/nilfs.h:292 [inline] nilfs_get_block+0x452/0x8e0 fs/nilfs2/inode.c:120 __block_write_begin_int+0x60b/0x1650 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_page_mkwrite+0x210/0x280 fs/buffer.c:2525 nilfs_page_mkwrite+0x9d7/0xd90 fs/nilfs2/file.c:99 do_page_mkwrite+0x1a9/0x440 mm/memory.c:2883 wp_page_shared+0x179/0x690 mm/memory.c:3216 handle_pte_fault mm/memory.c:4626 [inline] __handle_mm_fault mm/memory.c:4743 [inline] handle_mm_fault+0x2a3d/0x5950 mm/memory.c:4841 do_user_addr_fault arch/x86/mm/fault.c:1397 [inline] handle_page_fault arch/x86/mm/fault.c:1485 [inline] exc_page_fault+0x271/0x740 arch/x86/mm/fault.c:1541 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206 Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 83 f8 RSP: 0018:ffffc90002caf870 EFLAGS: 00050206 RAX: ffffffff84048401 RBX: 0000000020040200 RCX: 0000000000000200 RDX: 0000000000001000 RSI: ffff88807da9ae00 RDI: 0000000020040000 RBP: ffffc90002cafd20 R08: dffffc0000000000 R09: ffffed100fb53600 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000002003f200 R13: 0000000000001000 R14: ffff88807da9a000 R15: 00007ffffffff000 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] copyout lib/iov_iter.c:157 [inline] copy_page_to_iter_iovec lib/iov_iter.c:228 [inline] __copy_page_to_iter lib/iov_iter.c:861 [inline] copy_page_to_iter+0x49a/0x10d0 lib/iov_iter.c:889 filemap_read+0x20f6/0x2980 mm/filemap.c:2689 blkdev_read_iter+0x12a/0x180 block/fops.c:560 call_read_iter include/linux/fs.h:2097 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0xa9f/0xe10 fs/read_write.c:485 ksys_read+0x1a2/0x2c0 fs/read_write.c:623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f14c57cb389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f14c3d3d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f14c58eaf80 RCX: 00007f14c57cb389 RDX: 0000003e80000000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007f14c5816493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe823bed9f R14: 00007f14c3d3d300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 89 d1 mov %edx,%ecx 2: c1 e9 03 shr $0x3,%ecx 5: 83 e2 07 and $0x7,%edx 8: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) b: 89 d1 mov %edx,%ecx d: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) f: 31 c0 xor %eax,%eax 11: 0f 01 ca clac 14: c3 retq 15: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 1c: 0f 01 cb stac 1f: 83 fa 40 cmp $0x40,%edx 22: 0f 82 70 ff ff ff jb 0xffffff98 28: 89 d1 mov %edx,%ecx * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 31 c0 xor %eax,%eax 2e: 0f 01 ca clac 31: c3 retq 32: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 39: 00 00 00 3c: 89 d1 mov %edx,%ecx 3e: 83 .byte 0x83 3f: f8 clc