FAT-fs (loop0): error, fat_get_cluster: invalid cluster chain (i_pos 970769) ------------[ cut here ]------------ kernel BUG at fs/buffer.c:605! loop_reread_partitions: partition scan of loop0 (°J‚pfèÑTÆ)÷[q©ZòœY­QM:¢ {î¼hš°ZHÜW/8íè¯iL C) failed (rc=-16) FAT-fs (loop0): Filesystem has been set read-only invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 10482 Comm: syz-executor.0 Not tainted 4.14.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888034992200 task.stack: ffff88804f150000 RIP: 0010:mark_buffer_dirty_inode fs/buffer.c:605 [inline] RIP: 0010:mark_buffer_dirty_inode+0x2d8/0x3a0 fs/buffer.c:596 RSP: 0000:ffff88804f157320 EFLAGS: 00010216 RAX: 0000000000040000 RBX: ffff8880942ee690 RCX: ffffc90006025000 RDX: 000000000000e5c7 RSI: ffffffff8196c9a8 RDI: ffff888095d96ef8 RBP: ffff888095d96d98 R08: 0000000000000001 R09: 0000000000000003 R10: ffff888034992af8 R11: ffff888034992200 R12: ffff88807dcd93a0 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88804f1574a0 FS: 00007f5f193f0700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31b22000 CR3: 000000004ba5c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: fat12_ent_put+0x16f/0x370 fs/fat/fatent.c:170 fat_alloc_clusters+0x521/0xcb0 fs/fat/fatent.c:502 fat_add_cluster+0x5d/0xc0 fs/fat/inode.c:100 __fat_get_block fs/fat/inode.c:147 [inline] fat_get_block+0x28f/0x750 fs/fat/inode.c:176 __block_write_begin_int+0x337/0x1030 fs/buffer.c:2027 __block_write_begin fs/buffer.c:2077 [inline] block_write_begin+0x58/0x260 fs/buffer.c:2136 cont_write_begin+0x3f0/0x710 fs/buffer.c:2486 fat_write_begin+0x89/0x110 fs/fat/inode.c:222 generic_perform_write+0x1c9/0x420 mm/filemap.c:3047 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3172 generic_file_write_iter+0x2fa/0x650 mm/filemap.c:3200 call_write_iter include/linux/fs.h:1777 [inline] aio_write+0x2c7/0x4f0 fs/aio.c:1553 io_submit_one fs/aio.c:1641 [inline] do_io_submit+0x996/0x13f0 fs/aio.c:1709 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c849 RSP: 002b:00007f5f193efc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f5f193f06d4 RCX: 000000000045c849 RDX: 0000000020000540 RSI: 0000000000000732 RDI: 00007f5f1937a000 RBP: 000000000076bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000001f9 R14: 00000000004c422b R15: 000000000076bfac Code: fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 4d 48 89 6b 58 4c 89 ef e8 02 a8 a9 04 e9 20 fe ff ff e8 d8 7d c3 ff <0f> 0b 4c 89 ff e8 8e cf ec ff e9 05 fe ff ff e8 84 cf ec ff e9 RIP: mark_buffer_dirty_inode fs/buffer.c:605 [inline] RSP: ffff88804f157320 RIP: mark_buffer_dirty_inode+0x2d8/0x3a0 fs/buffer.c:596 RSP: ffff88804f157320 audit: type=1400 audit(1585289007.958:109): avc: denied { getrlimit } for pid=10492 comm="syz-executor.3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=process permissive=1 ---[ end trace 8cb2dcddd77626e6 ]---