NILFS (loop3): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds SQUASHFS error: squashfs_read_data failed to read block 0x736 audit: type=1804 audit(1677691574.391:161): pid=20649 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3948590508/syzkaller.PVUhYT/521/file1/bus" dev="loop3" ino=12 res=1 NILFS (loop5): invalid segment: Checksum error in segment payload WARNING: CPU: 1 PID: 20649 at include/linux/backing-dev.h:340 inode_to_wb include/linux/backing-dev.h:340 [inline] WARNING: CPU: 1 PID: 20649 at include/linux/backing-dev.h:340 account_page_dirtied+0x8cc/0xbb0 mm/page-writeback.c:2420 SQUASHFS error: Unable to read metadata cache entry [736] Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 20649 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 panic+0x26a/0x50e kernel/panic.c:186 NILFS (loop5): trying rollback from an earlier position NILFS (loop5): recovery complete __warn.cold+0x20/0x5a kernel/panic.c:541 NILFS (loop5): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds report_bug+0x262/0x2b0 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296 WARNING: CPU: 0 PID: 20686 at include/linux/backing-dev.h:340 inode_to_wb include/linux/backing-dev.h:340 [inline] WARNING: CPU: 0 PID: 20686 at include/linux/backing-dev.h:340 __test_set_page_writeback+0x1366/0x1750 mm/page-writeback.c:2783 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:inode_to_wb include/linux/backing-dev.h:340 [inline] RIP: 0010:account_page_dirtied+0x8cc/0xbb0 mm/page-writeback.c:2420 Modules linked in: Code: 88 01 00 00 be ff ff ff ff 48 8d 78 70 e8 ec e1 ca ff 31 ff 89 c3 89 c6 e8 f1 b3 e2 ff 85 db 0f 85 39 f9 ff ff e8 74 b2 e2 ff <0f> 0b e9 2d f9 ff ff e8 68 b2 e2 ff 4c 89 e6 4c 89 ef e8 9d b3 2d CPU: 0 PID: 20686 Comm: segctord Not tainted 4.19.211-syzkaller #0 RSP: 0018:ffff88804fd2ebd0 EFLAGS: 00010012 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90005c4c000 RIP: 0010:inode_to_wb include/linux/backing-dev.h:340 [inline] RIP: 0010:__test_set_page_writeback+0x1366/0x1750 mm/page-writeback.c:2783 RDX: 0000000000006e74 RSI: ffffffff817fd2fc RDI: 0000000000000005 Code: ff ff ff 48 8d 78 70 e8 98 8c ca ff 31 ff 89 c6 89 44 24 18 e8 9b 5e e2 ff 8b 44 24 18 85 c0 0f 85 47 fb ff ff e8 1a 5d e2 ff <0f> 0b e9 3b fb ff ff e8 0e 5d e2 ff 4c 8b 74 24 08 49 83 ee 01 e9 RBP: ffff88804b2c4b88 R08: 0000000000000001 R09: 0000000000000000 RSP: 0018:ffff888046b6fa88 EFLAGS: 00010093 R10: 0000000000000005 R11: 0000000000000000 R12: ffffea0002866180 RAX: ffff8880558ea140 RBX: ffff88808c98b930 RCX: ffffffff81802845 R13: ffff88804b2c4a00 R14: ffff88804b2c4878 R15: ffffea0002866188 RDX: 0000000000000000 RSI: ffffffff81802856 RDI: 0000000000000005 RBP: ffffea00025c9180 R08: 0000000000000001 R09: 0000000000000000 __set_page_dirty+0x7f/0x3e0 fs/buffer.c:582 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88808c98bac0 R15: ffff88808c98b938 mark_buffer_dirty+0x424/0x5c0 fs/buffer.c:1111 FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 nilfs_btree_commit_convert_and_insert fs/nilfs2/btree.c:1812 [inline] nilfs_btree_convert_and_insert+0xed5/0x1250 fs/nilfs2/btree.c:1877 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f81d4b1c000 CR3: 00000000afe02000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 nilfs_bmap_do_insert fs/nilfs2/bmap.c:111 [inline] nilfs_bmap_insert+0x2a1/0x3f0 fs/nilfs2/bmap.c:147 Call Trace: set_page_writeback include/linux/page-flags.h:497 [inline] nilfs_begin_page_io+0x18a/0x250 fs/nilfs2/segment.c:1639 nilfs_mdt_insert_new_block fs/nilfs2/mdt.c:44 [inline] nilfs_mdt_create_block fs/nilfs2/mdt.c:93 [inline] nilfs_mdt_get_block+0x59a/0xd40 fs/nilfs2/mdt.c:254 nilfs_segctor_prepare_write fs/nilfs2/segment.c:1689 [inline] nilfs_segctor_do_construct+0x484f/0x8360 fs/nilfs2/segment.c:2065 nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216 nilfs_palloc_get_entry_block+0x17b/0x230 fs/nilfs2/alloc.c:318 nilfs_dat_prepare_entry fs/nilfs2/dat.c:43 [inline] nilfs_dat_prepare_alloc fs/nilfs2/dat.c:69 [inline] nilfs_dat_prepare_alloc+0x61/0xb0 fs/nilfs2/dat.c:61 nilfs_segctor_construct+0x764/0xae0 fs/nilfs2/segment.c:2372 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2480 [inline] nilfs_segctor_thread+0x3cb/0xf50 fs/nilfs2/segment.c:2563 nilfs_bmap_prepare_alloc_ptr fs/nilfs2/bmap.h:183 [inline] nilfs_direct_insert+0x3cb/0x4e0 fs/nilfs2/direct.c:122 nilfs_bmap_do_insert fs/nilfs2/bmap.c:121 [inline] nilfs_bmap_insert+0x27a/0x3f0 fs/nilfs2/bmap.c:147 kthread+0x33f/0x460 kernel/kthread.c:259 nilfs_get_block+0x4d5/0x970 fs/nilfs2/inode.c:96 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 irq event stamp: 232 hardirqs last enabled at (231): [] mod_lruvec_page_state include/linux/memcontrol.h:713 [inline] hardirqs last enabled at (231): [] dec_lruvec_page_state include/linux/memcontrol.h:1215 [inline] hardirqs last enabled at (231): [] clear_page_dirty_for_io+0xb3b/0xee0 mm/page-writeback.c:2699 hardirqs last disabled at (232): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (232): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:152 softirqs last enabled at (42): [] __do_softirq+0x678/0x980 kernel/softirq.c:318 __block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978 softirqs last disabled at (23): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (23): [] irq_exit+0x215/0x260 kernel/softirq.c:412 ---[ end trace 2881fb3686c21f25 ]--- WARNING: CPU: 0 PID: 20686 at include/linux/backing-dev.h:340 inode_to_wb include/linux/backing-dev.h:340 [inline] WARNING: CPU: 0 PID: 20686 at include/linux/backing-dev.h:340 test_clear_page_writeback+0xeab/0x1300 mm/page-writeback.c:2731 Modules linked in: CPU: 0 PID: 20686 Comm: segctord Tainted: G W 4.19.211-syzkaller #0 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 nilfs_write_begin+0xa5/0x1b0 fs/nilfs2/inode.c:267 RIP: 0010:inode_to_wb include/linux/backing-dev.h:340 [inline] RIP: 0010:test_clear_page_writeback+0xeab/0x1300 mm/page-writeback.c:2731 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 Code: 78 70 48 89 44 24 18 e8 e3 fc c9 ff 31 ff 89 c6 89 44 24 18 e8 e6 ce e1 ff 8b 44 24 18 85 c0 0f 85 f4 f6 ff ff e8 65 cd e1 ff <0f> 0b e9 e8 f6 ff ff e8 59 cd e1 ff 49 8d 6c 24 ff e9 0e fe ff ff RSP: 0018:ffff888046b6fa58 EFLAGS: 00010093 RAX: ffff8880558ea140 RBX: ffff88808c98b930 RCX: ffffffff8180b7fa RDX: 0000000000000000 RSI: ffffffff8180b80b RDI: 0000000000000005 RBP: ffffea00025c9180 R08: 0000000000000001 R09: 0000000000000000 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88813be824c0 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323 R13: ffff8880b59f68c0 R14: 0000000000000001 R15: ffff88808c98b938 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005584da2d02d8 CR3: 00000000afe02000 CR4: 00000000003406f0 __kernel_write+0x109/0x370 fs/read_write.c:506 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 write_pipe_buf+0x153/0x1f0 fs/splice.c:798 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: end_page_writeback+0x1b3/0x410 mm/filemap.c:1252 nilfs_end_page_io+0x415/0x800 fs/nilfs2/segment.c:1737 nilfs_segctor_complete_write fs/nilfs2/segment.c:1887 [inline] nilfs_segctor_wait fs/nilfs2/segment.c:1920 [inline] nilfs_segctor_do_construct+0x321f/0x8360 fs/nilfs2/segment.c:2083 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] default_file_splice_write+0xd8/0x180 fs/splice.c:810 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 nilfs_segctor_construct+0x764/0xae0 fs/nilfs2/segment.c:2372 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2480 [inline] nilfs_segctor_thread+0x3cb/0xf50 fs/nilfs2/segment.c:2563 do_splice_direct+0x1a7/0x270 fs/splice.c:1068 do_sendfile+0x550/0xc30 fs/read_write.c:1447 kthread+0x33f/0x460 kernel/kthread.c:259 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 irq event stamp: 658 hardirqs last enabled at (657): [] mod_lruvec_state include/linux/memcontrol.h:687 [inline] hardirqs last enabled at (657): [] dec_lruvec_state include/linux/memcontrol.h:1203 [inline] hardirqs last enabled at (657): [] test_clear_page_writeback+0xcef/0x1300 mm/page-writeback.c:2753 hardirqs last disabled at (658): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (658): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:152 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 softirqs last enabled at (582): [] __do_softirq+0x678/0x980 kernel/softirq.c:318 entry_SYSCALL_64_after_hwframe+0x49/0xbe softirqs last disabled at (235): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (235): [] irq_exit+0x215/0x260 kernel/softirq.c:412 RIP: 0033:0x7f181a20d0f9 ---[ end trace 2881fb3686c21f26 ]--- Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 audit: type=1800 audit(1677691574.461:162): pid=20674 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.4" name="file1" dev="loop4" ino=5 res=0 RSP: 002b:00007f181877f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f181a32cf80 RCX: 00007f181a20d0f9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007f181a268ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff7febc04f R14: 00007f181877f300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds.. ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 retq b: e8 f1 19 00 00 callq 0x1a01 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W