loop0: detected capacity change from 0 to 40427 F2FS-fs (loop0): build fault injection attr: rate: 771, type: 0x3fffff F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 F2FS-fs (loop0): inject inconsistent footer in sanity_check_node_footer of prepare_write_begin fs/f2fs/data.c:3380 [inline] F2FS-fs (loop0): inject inconsistent footer in sanity_check_node_footer of f2fs_write_begin+0xa88/0x2b20 fs/f2fs/data.c:3608 F2FS-fs (loop0): inconsistent node block, node_type:1, nid:10, node_footer[nid:10,ino:10,ofs:0,cpver:10241045589465957861,blkaddr:4621] ------------[ cut here ]------------ kernel BUG at fs/f2fs/f2fs.h:2521! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted 6.15.0-rc1-syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:dec_valid_block_count+0x3b2/0x3c0 fs/f2fs/f2fs.h:2521 Code: 5c 01 fe e9 80 fd ff ff e8 ab 32 97 fd 48 c7 c7 00 78 31 8f 4c 89 e6 48 89 da e8 29 ab 14 01 e9 73 fe ff ff e8 8f 32 97 fd 90 <0f> 0b 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d55ee90 EFLAGS: 00010287 RAX: ffffffff842c2291 RBX: 00000000fffffc78 RCX: 0000000000100000 RDX: ffffc9000e2ca000 RSI: 00000000000099b1 RDI: 00000000000099b2 RBP: 1ffff11008c761f4 R08: ffffffff842c1f42 R09: fffff52001aabdc0 R10: dffffc0000000000 R11: fffff52001aabdc0 R12: ffff8880463b0fa4 R13: dffffc0000000000 R14: ffff8880463b0000 R15: 000000000000039a FS: 00007f7c72bc76c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7c66bff000 CR3: 0000000036806000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_truncate_data_blocks_range+0xc8c/0x11a0 fs/f2fs/file.c:695 f2fs_do_truncate_blocks+0x81b/0x12b0 fs/f2fs/file.c:804 f2fs_truncate_blocks+0x10d/0x300 fs/f2fs/file.c:838 f2fs_write_failed+0x127/0x190 fs/f2fs/data.c:3341 f2fs_write_begin+0x251b/0x2b20 fs/f2fs/data.c:3669 generic_perform_write+0x329/0xa10 mm/filemap.c:4102 f2fs_buffered_write_iter fs/f2fs/file.c:4936 [inline] f2fs_file_write_iter+0x1450/0x2560 fs/f2fs/file.c:5164 iter_file_splice_write+0xbdf/0x1530 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1158 splice_direct_to_actor+0x595/0xc90 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x281/0x3d0 fs/splice.c:1227 do_sendfile+0x582/0x8c0 fs/read_write.c:1368 __do_sys_sendfile64 fs/read_write.c:1423 [inline] __se_sys_sendfile64+0x102/0x1e0 fs/read_write.c:1415 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7c71d8d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7c72bc7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7c71fa5fa0 RCX: 00007f7c71d8d169 RDX: 0000200000000080 RSI: 0000000000000009 RDI: 0000000000000009 RBP: 00007f7c71e0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007f03 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7c71fa5fa0 R15: 00007ffd598b2ac8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dec_valid_block_count+0x3b2/0x3c0 fs/f2fs/f2fs.h:2521 Code: 5c 01 fe e9 80 fd ff ff e8 ab 32 97 fd 48 c7 c7 00 78 31 8f 4c 89 e6 48 89 da e8 29 ab 14 01 e9 73 fe ff ff e8 8f 32 97 fd 90 <0f> 0b 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d55ee90 EFLAGS: 00010287 RAX: ffffffff842c2291 RBX: 00000000fffffc78 RCX: 0000000000100000 RDX: ffffc9000e2ca000 RSI: 00000000000099b1 RDI: 00000000000099b2 RBP: 1ffff11008c761f4 R08: ffffffff842c1f42 R09: fffff52001aabdc0 R10: dffffc0000000000 R11: fffff52001aabdc0 R12: ffff8880463b0fa4 R13: dffffc0000000000 R14: ffff8880463b0000 R15: 000000000000039a FS: 00007f7c72bc76c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7c66bff000 CR3: 0000000036806000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400