------------[ cut here ]------------ WARNING: CPU: 0 PID: 4638 at fs/buffer.c:1084 mark_buffer_dirty+0x325/0x4b0 Modules linked in: CPU: 0 PID: 4638 Comm: syz-executor.1 Not tainted 5.15.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:mark_buffer_dirty+0x325/0x4b0 fs/buffer.c:1084 Code: 89 df e8 be 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 f2 49 9b ff eb 80 e8 eb 49 9b ff <0f> 0b e9 27 fd ff ff e8 df 49 9b ff 0f 0b e9 46 fd ff ff e8 d3 49 RSP: 0018:ffffc9000474ee40 EFLAGS: 00010283 RAX: ffffffff81e4af65 RBX: ffff888087bb6e40 RCX: 0000000000040000 RDX: ffffc9000cdda000 RSI: 0000000000035aca RDI: 0000000000035acb RBP: 0000000000000000 R08: ffffffff81e4ac84 R09: ffffed100e0d22af R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888074b55d98 R13: dffffc0000000000 R14: 1ffff1100e96abb3 R15: ffff888086a716b8 FS: 00007f80ebb45700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6b2e569058 CR3: 0000000023d9f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_palloc_commit_alloc_entry+0x47/0x150 fs/nilfs2/alloc.c:585 nilfs_dat_commit_alloc+0x1a8/0x2c0 fs/nilfs2/dat.c:89 nilfs_bmap_commit_alloc_ptr fs/nilfs2/bmap.h:194 [inline] nilfs_btree_commit_insert fs/nilfs2/btree.c:1220 [inline] nilfs_btree_insert+0x14fa/0x1b70 fs/nilfs2/btree.c:1250 nilfs_bmap_do_insert fs/nilfs2/bmap.c:129 [inline] nilfs_bmap_insert+0x24d/0x3a0 fs/nilfs2/bmap.c:155 nilfs_get_block+0x424/0x8e0 fs/nilfs2/inode.c:101 __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:__clear_user arch/x86/lib/usercopy_64.c:24 [inline] RIP: 0010:clear_user+0xe0/0x150 arch/x86/lib/usercopy_64.c:54 Code: 1e 8c be 14 00 00 00 e8 ee 2c 8a fd 0f 01 cb 44 89 f8 83 e0 07 49 c1 ef 03 4c 89 f9 4c 89 f7 48 85 c9 74 15 66 0f 1f 44 00 00 <48> c7 07 00 00 00 00 48 83 c7 08 ff c9 75 f1 48 89 c1 85 c9 74 0a RSP: 0018:ffffc9000474fad8 EFLAGS: 00050202 RAX: 0000000000000000 RBX: 00000000200b7080 RCX: 0000000000000010 RDX: 0000000000000000 RSI: ffffffff8a8b0f00 RDI: 00000000200b7000 RBP: ffffc9000474fc38 R08: dffffc0000000000 R09: fffffbfff1bc7736 R10: 0000000000000000 R11: dffffc0000000001 R12: 00007ffffffff000 R13: 00000000000b6000 R14: 00000000200b6080 R15: 0000000000000200 iov_iter_zero+0x202/0xcb0 lib/iov_iter.c:956 read_iter_zero+0x83/0x210 drivers/char/mem.c:492 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:0x7f80f5836169 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:00007f80ebb45168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f80f59561f0 RCX: 00007f80f5836169 RDX: 00000000ffffff1c RSI: 0000000020000080 RDI: 0000000000000009 RBP: 00007f80f5891ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe6bec7cbf R14: 00007f80ebb45300 R15: 0000000000022000 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 8c be 14 00 00 00 mov %?,0x14(%rsi) 6: e8 ee 2c 8a fd callq 0xfd8a2cf9 b: 0f 01 cb stac e: 44 89 f8 mov %r15d,%eax 11: 83 e0 07 and $0x7,%eax 14: 49 c1 ef 03 shr $0x3,%r15 18: 4c 89 f9 mov %r15,%rcx 1b: 4c 89 f7 mov %r14,%rdi 1e: 48 85 c9 test %rcx,%rcx 21: 74 15 je 0x38 23: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) * 29: 48 c7 07 00 00 00 00 movq $0x0,(%rdi) <-- trapping instruction 30: 48 83 c7 08 add $0x8,%rdi 34: ff c9 dec %ecx 36: 75 f1 jne 0x29 38: 48 89 c1 mov %rax,%rcx 3b: 85 c9 test %ecx,%ecx 3d: 74 0a je 0x49