audit: type=1804 audit(1618136243.624:124): pid=5844 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.1" name="/root/syzkaller-testdir979330745/syzkaller.S0RsmS/1160/file0/file0" dev="loop1" ino=17 res=1 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:2100! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 5832 Comm: syz-executor.1 Not tainted 4.14.230-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880a5de6600 task.stack: ffff888094840000 RIP: 0010:__block_commit_write.constprop.0.isra.0+0x1a0/0x200 fs/buffer.c:2100 RSP: 0018:ffff888094847958 EFLAGS: 00010216 RAX: 0000000000040000 RBX: ffffea0000b56d00 RCX: ffffc900066d3000 RDX: 000000000000115d RSI: ffffffff819299a0 RDI: ffffea0000b56d00 RBP: 0000000000000000 R08: 0000000000000049 R09: ffffea0000b56d00 R10: ffff88802d5b4048 R11: ffff8880a5de6600 R12: 0000000000000049 R13: ffffea0000b56d00 R14: 0000000000000049 R15: 0000000000000049 FS: 00007f6269c88700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000021000000 CR3: 000000004a7ad000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: block_write_end+0x42/0xf0 fs/buffer.c:2189 ext4_write_end+0x1cc/0xca0 fs/ext4/inode.c:1431 ext4_da_write_end+0x6da/0x8e0 fs/ext4/inode.c:3177 generic_perform_write+0x268/0x420 mm/filemap.c:3066 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 ext4_file_write_iter+0x276/0xd20 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x466459 RSP: 002b:00007f6269c88188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000049 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffec0fc122f R14: 00007f6269c88300 R15: 0000000000022000 Code: 20 a8 01 75 28 e8 f1 8b c2 ff 48 8b 44 24 08 f0 80 08 08 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f e9 d5 8b c2 ff e8 d0 8b c2 ff <0f> 0b e8 c9 8b c2 ff 48 8b 7c 24 08 48 c7 c6 60 7d 93 87 e8 18 RIP: __block_commit_write.constprop.0.isra.0+0x1a0/0x200 fs/buffer.c:2100 RSP: ffff888094847958 ---[ end trace 4d5460a05c3ef1fd ]---