XFS (loop3): Torn write (CRC failure) detected at log block 0x10. Truncating head block from 0x20. XFS (loop1): First 128 bytes of corrupted metadata buffer: XFS (loop3): Ending clean mount kasan: GPF could be caused by NULL-ptr deref or user memory access XFS (loop0): Please umount the filesystem and rectify the problem(s) general protection fault: 0000 [#1] PREEMPT SMP KASAN XFS (loop3): Metadata corruption detected at xfs_allocbt_verify+0x327/0x4a0 fs/xfs/libxfs/xfs_alloc_btree.c:329, xfs_allocbt block 0x4 CPU: 1 PID: 19175 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 XFS (loop3): Unmount and run xfs_repair Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 XFS (loop3): First 128 bytes of corrupted metadata buffer: RIP: 0010:__read_once_size include/linux/compiler.h:263 [inline] RIP: 0010:errseq_set+0x26/0x150 lib/errseq.c:71 Code: 1f 44 00 00 41 57 41 56 41 89 f6 41 55 41 54 55 53 48 89 fb e8 3b 6a ec fd 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 f4 RSP: 0018:ffff888096ffef40 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000168 RCX: ffffc90006e7f000 000000007d9c4160: 07 42 54 42 00 00 00 01 ff ff ff ff ff ff ff ff .BTB............ RDX: 000000000000002d RSI: ffffffff83761b35 RDI: 0000000000000168 RBP: 00000000ffffff8b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 00000000ffffff8b R15: ffff888096fff280 FS: 00007ff0da1af700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 0000000089286b73: 00 00 00 42 00 00 7f be 00 00 00 42 00 00 7f be ...B.......B.... CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 00000000e63cf96f: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ CR2: 0000001b2e131000 CR3: 00000000af4ff000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_set_wb_err+0x21/0x280 mm/filemap.c:700 filemap_set_wb_err include/linux/fs.h:2707 [inline] mapping_set_error include/linux/pagemap.h:54 [inline] xfs_writepage_map fs/xfs/xfs_aops.c:796 [inline] xfs_do_writepage+0xb87/0xfa0 fs/xfs/xfs_aops.c:908 00000000ea44e816: 07 42 54 42 00 00 00 01 ff ff ff ff ff ff ff ff .BTB............ write_cache_pages+0x802/0x12d0 mm/page-writeback.c:2240 0000000054132e93: 00 00 00 42 00 00 7f be 00 00 00 42 00 00 7f be ...B.......B.... xfs_vm_writepages+0xe9/0x170 fs/xfs/xfs_aops.c:943 00000000354d4107: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ audit: type=1800 audit(1671150981.051:347): pid=19264 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="loop3" ino=41 res=0 do_writepages+0xe5/0x290 mm/page-writeback.c:2344 0000000021f59129: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000063d590c8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ __filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446 000000007e1d15e1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ file_write_and_wait_range+0x93/0x100 mm/filemap.c:776 00000000e320211f: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ xfs_file_fsync+0x161/0xa40 fs/xfs/xfs_file.c:118 00000000ed849804: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ vfs_fsync_range+0x13a/0x220 fs/sync.c:197 generic_write_sync include/linux/fs.h:2750 [inline] xfs_file_buffered_aio_write+0xa0f/0xbf0 fs/xfs/xfs_file.c:686 00000000192b5c29: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000085799994: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000a5be0275: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000033999a62: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ XFS (loop3): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x4 len 1 error 117 xfs_file_write_iter+0x346/0x450 fs/xfs/xfs_file.c:726 00000000d76f2f02: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x668/0x790 fs/read_write.c:681 XFS (loop1): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x4 len 1 error 117 do_iter_write+0x182/0x5d0 fs/read_write.c:960 vfs_iter_write+0x70/0xa0 fs/read_write.c:973 XFS (loop1): xfs_do_force_shutdown(0x8) called from line 439 of file fs/xfs/libxfs/xfs_defer.c. Return address = 00000000916256f9 iter_file_splice_write+0x60d/0xbb0 fs/splice.c:750 XFS (loop3): xfs_do_force_shutdown(0x8) called from line 439 of file fs/xfs/libxfs/xfs_defer.c. Return address = 00000000916256f9 XFS (loop1): Corruption of in-memory data detected. Shutting down filesystem XFS (loop3): Corruption of in-memory data detected. Shutting down filesystem do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 XFS (loop1): Please umount the filesystem and rectify the problem(s) do_splice_direct+0x1a7/0x270 fs/splice.c:1068 XFS (loop3): Please umount the filesystem and rectify the problem(s) do_sendfile+0x550/0xc30 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff0dbc3d0d9 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:00007ff0da1af168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007ff0dbd5cf80 RCX: 00007ff0dbc3d0d9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007ff0dbc98ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 000100000020100f R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcb9f880af R14: 00007ff0da1af300 R15: 0000000000022000 Modules linked in: XFS (loop0): Unmounting Filesystem ---[ end trace bf0f7efb4f9d87d8 ]--- XFS (loop3): Unmounting Filesystem RIP: 0010:__read_once_size include/linux/compiler.h:263 [inline] RIP: 0010:errseq_set+0x26/0x150 lib/errseq.c:71 Code: 1f 44 00 00 41 57 41 56 41 89 f6 41 55 41 54 55 53 48 89 fb e8 3b 6a ec fd 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 f4 RSP: 0018:ffff888096ffef40 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000168 RCX: ffffc90006e7f000 RDX: 000000000000002d RSI: ffffffff83761b35 RDI: 0000000000000168 RBP: 00000000ffffff8b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 00000000ffffff8b R15: ffff888096fff280 FS: 00007ff0da1af700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0e1d67b008 CR3: 00000000af4ff000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 44 00 00 add %r8b,(%rax) 3: 41 57 push %r15 5: 41 56 push %r14 7: 41 89 f6 mov %esi,%r14d a: 41 55 push %r13 c: 41 54 push %r12 e: 55 push %rbp f: 53 push %rbx 10: 48 89 fb mov %rdi,%rbx 13: e8 3b 6a ec fd callq 0xfdec6a53 18: 48 89 da mov %rbx,%rdx 1b: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 22: fc ff df 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2d: 48 89 d8 mov %rbx,%rax 30: 83 e0 07 and $0x7,%eax 33: 83 c0 03 add $0x3,%eax 36: 38 d0 cmp %dl,%al 38: 7c 08 jl 0x42 3a: 84 d2 test %dl,%dl 3c: 0f .byte 0xf 3d: 85 f4 test %esi,%esp