audit: type=1804 audit(1560313547.868:609): pid=8465 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir611719796/syzkaller.4JVTO6/1581/file0/file0" dev="loop5" ino=546 res=1 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:553! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8465 Comm: syz-executor.5 Not tainted 4.19.50 #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:mark_buffer_dirty_inode fs/buffer.c:553 [inline] RIP: 0010:mark_buffer_dirty_inode+0x30f/0x410 fs/buffer.c:544 Code: 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 4d 4c 89 63 58 4c 89 ef e8 2b f0 36 05 e9 ee fd ff ff e8 91 bf b2 ff <0f> 0b 4c 89 ff e8 57 23 e9 ff e9 d3 fd ff ff e8 4d 23 e9 ff e9 5b RSP: 0018:ffff88805730f5c0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888097c7dc78 RCX: ffffc90010aad000 RDX: 0000000000040000 RSI: ffffffff81b8474f RDI: ffff88804b9df470 RBP: ffff88805730f600 R08: ffff8880893724c0 R09: 0000000000000004 R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffff88804b9df310 R13: 0000000000000000 R14: ffff8880a6f4e558 R15: ffff888056d0c4c0 FS: 00007febb1aa3700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000a986a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: fat16_ent_put+0xd2/0x110 fs/fat/fatent.c:182 fat_free_clusters+0x3de/0x990 fs/fat/fatent.c:594 fat_free fs/fat/file.c:379 [inline] fat_truncate_blocks+0x763/0xc10 fs/fat/file.c:397 fat_setattr+0x806/0xc80 fs/fat/file.c:541 notify_change+0xad7/0xfb0 fs/attr.c:334 do_truncate+0x158/0x220 fs/open.c:63 handle_truncate fs/namei.c:3008 [inline] do_last fs/namei.c:3424 [inline] path_openat+0x2cc4/0x4690 fs/namei.c:3534 do_filp_open+0x1a1/0x280 fs/namei.c:3564 do_sys_open+0x3fe/0x550 fs/open.c:1069 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1127 [inline] __se_sys_creat fs/open.c:1125 [inline] __x64_sys_creat+0x61/0x80 fs/open.c:1125 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007febb1aa2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000459279 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 000000000075bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007febb1aa36d4 R13: 00000000004bf860 R14: 00000000004d1080 R15: 00000000ffffffff Modules linked in: ---[ end trace 05ca4bedf97cb612 ]--- RIP: 0010:mark_buffer_dirty_inode fs/buffer.c:553 [inline] RIP: 0010:mark_buffer_dirty_inode+0x30f/0x410 fs/buffer.c:544 Code: 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 4d 4c 89 63 58 4c 89 ef e8 2b f0 36 05 e9 ee fd ff ff e8 91 bf b2 ff <0f> 0b 4c 89 ff e8 57 23 e9 ff e9 d3 fd ff ff e8 4d 23 e9 ff e9 5b RSP: 0018:ffff88805730f5c0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888097c7dc78 RCX: ffffc90010aad000 RDX: 0000000000040000 RSI: ffffffff81b8474f RDI: ffff88804b9df470 RBP: ffff88805730f600 R08: ffff8880893724c0 R09: 0000000000000004 R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffff88804b9df310 R13: 0000000000000000 R14: ffff8880a6f4e558 R15: ffff888056d0c4c0 FS: 00007febb1aa3700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000625208 CR3: 00000000a986a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400