audit: type=1804 audit(1676459412.168:43): pid=10457 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir3363253137/syzkaller.wCnsG4/48/bus" dev="sda1" ino=14092 res=1 ------------[ cut here ]------------ kernel BUG at fs/f2fs/node.c:1069! XFS (loop0): Unmounting Filesystem attempt to access beyond end of device invalid opcode: 0000 [#1] PREEMPT SMP KASAN loop0: rw=399361, want=65600, limit=65536 Modules linked in: CPU: 1 PID: 10529 Comm: syz-executor.3 Not tainted 4.14.305-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 task: ffff88804a18a600 task.stack: ffff88804b138000 XFS (loop0): metadata I/O error: block 0x10000 ("xlog_iodone") error 5 numblks 64 RIP: 0010:new_node_page+0xd1d/0x1180 fs/f2fs/node.c:1069 RSP: 0018:ffff88804b13f410 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff88804b13f6a0 RCX: ffffc90009df9000 RDX: 0000000000000ea9 RSI: ffffffff82cb436d RDI: ffff88809f4a92d8 RBP: ffff8880abf3a180 R08: 0000000000000001 R09: 0000000000000003 XFS (loop0): xfs_do_force_shutdown(0x2) called from line 1244 of file fs/xfs/xfs_log.c. Return address = 0xffffffff825f6a0b R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0002bdca00 R13: 00000000000007f9 R14: ffff88804b13f458 R15: 0000000000000001 FS: 00007f9569e79700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 XFS (loop0): Log I/O Error Detected. Shutting down filesystem CR2: 000055a24b85ba18 CR3: 000000008f6d1000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: XFS (loop0): Please umount the filesystem and rectify the problem(s) get_dnode_of_data+0x8fb/0x1ca0 fs/f2fs/node.c:633 f2fs_reserve_block+0x49/0x6c0 fs/f2fs/data.c:604 get_new_data_page+0xe6/0x1310 fs/f2fs/data.c:767 f2fs_add_regular_entry+0x42a/0xfb0 fs/f2fs/dir.c:544 __f2fs_do_add_link+0x255/0x2f0 fs/f2fs/dir.c:608 __f2fs_add_link+0x304/0x4e0 fs/f2fs/dir.c:649 f2fs_add_link fs/f2fs/f2fs.h:2501 [inline] f2fs_create+0x454/0x710 fs/f2fs/namei.c:197 lookup_open+0x77a/0x1750 fs/namei.c:3241 do_last fs/namei.c:3334 [inline] path_openat+0xe08/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f957298b0f9 RSP: 002b:00007f9569e79168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f9572aab120 RCX: 00007f957298b0f9 RDX: 0000000000000000 RSI: 0000000000143142 RDI: 0000000020002000 RBP: 00007f95729e6ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffceb45224f R14: 00007f9569e79300 R15: 0000000000022000 Code: 00 44 89 ad 78 04 00 00 be 01 00 00 00 48 89 ef e8 99 a3 f7 ff e9 ea fc ff ff 49 c7 c4 ff ff ff ff e9 de fc ff ff e8 43 13 8a fe <0f> 0b 48 89 44 24 10 e8 37 13 8a fe 48 8b 44 24 10 4c 8d 70 ff RIP: new_node_page+0xd1d/0x1180 fs/f2fs/node.c:1069 RSP: ffff88804b13f410 ---[ end trace 771c6e3682836b36 ]---